mojira.dev

Michael Stratton

Assigned

No issues.

Reported

MC-274365 Incorrect resolution for bug report Invalid MC-274362 Item modifier "set_damage" does not work correctly Invalid MC-274334 item modify command does not work correctly Invalid MC-259100 Datapack doesn't work correctly unless zipped Cannot Reproduce MC-254057 Falling sand entity fails to align with decimal coords Awaiting Response MC-254056 Teleporting item(s) rapidly results in delayed execution & item(s) occasionally fall Duplicate MC-206518 Skeletons break in large amounts Duplicate MC-203733 Pumpkins are not shearable when using dispensers Duplicate

Comments

[Mod] tryashtar,

 

You are mistaken.  This is not datapack help.  Please read the report in full to grasp an understanding of the issue.  This is an issue with the item modifier "set_damage", not an issue with the datapack.  The datapack is valid and is only used for demonstration purposes.

 

Thank you.

Another thing I just discovered is that the item modifier does not work consistently.  For example:

 

{
  "function": "minecraft:set_components",
  "components": {
    "minecraft:max_damage": 1000,
    "minecraft:custom_data": {tag:"datapack_example.elytra"}
  }
}

Let's say that this is in a file called "set_durability.json".  Then to use it, we we call the command:

 

/item modify entity @s armor.chest datapack_example:set_durability

This however throws an error because Minecraft failed to parse the file.  But if instead of storing the item modifier in a file, we store it in the command, we get a different result:

/item modify entity @s armor.chest {  "function": "minecraft:set_components",  "components": {    "minecraft:max_damage": 1000,    "minecraft:custom_data": {tag:"datapack_example.elytra"}  }}

This works, but for some reason, the file does not.

[media]

Above is a datapack that proves my point.  Let me know if you guys have any more questions!

Is there a way I can delete this duplicate myself?

Looks like you have some things to update.

 

This also appears on version 1.19.1 Pre-release 4.

It also can be recreated using a datapack loop.