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

Custom damage type are not updated when /reloading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.4 Pre-release 2
    • None
    • Unconfirmed
    • (Unassigned)

      When creating a new damage type it is not enough to /reload, like it is for other custom data like loot tables, tags, etc, but a world reload is needed to see changes to the custom damage type.

      Reproduction:

      Create a datapack with a new damage type

      { "exhaustion": 0.1, "message_id": "arrow", "scaling": "when_caused_by_living_non_player" }

      Use the command /reload to reload the datapack

      The new damage type will only appear once the world is reopened

      Then change the field "message_id" from "arrow" to "cactus", this should make it so that the death message is the cactus death message instead of the arrow.

      Use the command /reload to reload the datapack

      Use the command /damage to deal lethal damage with your newly created damage type, it is still the arrow death message. 

      If you reopen the world and try dealing lethal damage with the new damage type, the death message should have changed to the cactus one.

            Unassigned Unassigned
            S4l4kin S4l4kin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: