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

Damage values don't work in non-tool items without both explicit damage and max_damage components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 24w12a
    • None
    • Windows 11 Home, Java 17.0.8 64-Bit
    • Confirmed
    • Items

      Items with "damage_per_block" and "max_damage" that aren't originally tools or have durability settings, don't seem to get damaged at all.

      Examples:

      Expected: item breaks after 6 uses
      Result: item doesn't take durability

      /give ChimeraDev stick[minecraft:max_damage=12,minecraft:tool={damage_per_block:2,rules:[

      {blocks:"minecraft:stone",speed:5,correct_for_drops:true}

      ]}]

      Expected: item breaks after one use
      Result: item doesn't take durability

      /give ChimeraDev stick[minecraft:max_damage=6,minecraft:tool={damage_per_block:6,rules:[

      {blocks:"minecraft:stone",speed:5,correct_for_drops:true}

      ]}]

      These examples do work if you use an item that originally has damage values.

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

              Created:
              Updated:
              Resolved:
              CHK: