Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-278283

damage_on_hurt is working wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 24w45a
    • None
    • OS: Arch Linux x86_64
      Kernel: Linux 6.11.5-arch1-1
      Java: jdk 21.0.5
    • Unconfirmed
    • (Unassigned)

      What I expected:
      Since the item has the specified minecraft:max_damage component, it would break if the entity it was worn on took damage
      What happened:
      The item is not damaged when the entity is wounded

      Steps to reproduce:

      1. Give an item that has no durability by default with the minecraft:max_damage and minecraft:equippable components:
        /give @s minecraft:diamond[minecraft:equippable={slot:feet,damage_on_hurt:1b},minecraft:max_damage=91,minecraft:max_stack_size=1]
        
      2. Equip this item
      3. Get damaged several times

            Unassigned Unassigned
            JustJabka JustJabka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: