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

Item modifier "set_damage" does not work correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21
    • None
    • Windows 11
    • Unconfirmed
    • (Unassigned)

      PLEASE KEEP IN MIND THAT THE DATAPACK IS PURELY FOR DEMINSTRATION PURPOSES AND IS NOT WHAT I AM REPORTING.  PLEASE READ MY REPORT IN FULL TO GRASP A COMPLETE UNDERSTANDING.

      I have the following data:
       

      [  {    "function": "minecraft:set_damage",    "damage": {      "type": "minecraft:score",      "target": "this",      "score": "itp_balanced_transport.elytra.extra_damage",      "scale": 0.01    },    "add": true  }]

      If the score is equal to zero, I should expect there to be no extra damage to the item.  However, the item just doesn't take damage at all.  The "add" property should allow the item to take extra damage on top of the damage already provided.  I know this is to change the damage precisely, so I propose adding another property called "ignore_damage_requests" to tell Minecraft if it should ignore default damage requests or allow them to come threw.
       

      THE STEPS BELOW ASSUME THAT YOU HAVE INSTALLED THE DATAPACK

      Steps to Reproduce:

      1. Equip an elytra
      2. Change gamemode to survival
      3. Fly with elytra until expected durability to decrease

      Expected Result: The elytra durability should decrease.

      Observed Behavior: The elytra durability is constant/unchanging.

            Unassigned Unassigned
            InTheProcess Michael Stratton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: