mojira.dev
MC-228644

The DealtDamage NBT cannot be changed

The bug

If a Trident has its DealtDamage NBT set to something other than 1, it will immediately be set back to 1. This is different than the previous behavior in 1.16.5 where the DealtDamage NBT would change.

How to reproduce

  1. Summon a Trident with

    /summon trident
  2. Then run the command

    /data merge entity @e[type=trident,limit=1] {DealtDamage:0b}
  3. Finally run

    /data get entity @e[type=minecraft:trident,limit=1] DealtDamage

    → ❌  Notice DealtDamage is still set to 1b despite being set to 0b.

Comments 2

It seems like DealtDamage cannot be changed at all.

The description is incorrect, the exact same thing happens in 1.16.5.

DealtDamage gets set every tick if a trident has been stuck in the ground for more than 4 ticks.

Aldinyx

(Unassigned)

Confirmed

Commands

1.17

Retrieved