mojira.dev

KIPO4

Assigned

No issues.

Reported

MC-276478 Using an item with the max_damage component does not reduce its damage, and problems in implementing this through use_remainder Invalid

Comments

That is, if an item has durability, but it is not used when using the item, is it not a bug?

And the fact that the "use_reminder" component should work when changing the stack of an item is also not an bug? That is, for example, when a bow uses an arrow, it does not change the stack of the item?
https://www.minecraft.net/en-us/article/minecraft-snapshot-24w34a :
MINECRAFT:USE_REMAINDER

  • If present, will replace the item with a remainder item if its stack count has decreased after use
      - If the item has a stack count higher than 0 after use, the remainder item will be added to the inventory instead
      - If the inventory is full when trying to add a remainder item to it, it will be dropped on the ground instead

  • Format: single value as an item stack
      - e.g. use_remainder={id:'minecraft:stick', count:1}

Or does my translator incorrectly translate "If present, will replace the item with a remaining item if its stack count has decreased after use" and I do not understand the meaning correctly?

The same probably applies to the items used, for example:
Throw Ender's pearl, snowball, potions, etc.
The use of spawn eggs, totem of undying, fireworks, bone meal, fire charge, etc.
And there may also be: projectiles that must be fired with a bow or crossbow, the installation of a block.
P.S. After looking for similar problems (there are none), I decided that this is the closest and there is no point in splitting it into several bugs.
(Translated through a translator)