"/data remove" cannot delete beam_target tag in End Crystals
Attempting to remove the beam_target tag from an End Crystal returns "Modified entity data of End Crystal" but does not in fact remove the tag. (prior to 24w06a, removing BeamTarget instead reset its X, Y, and Z values to 0, but likewise did not remove the data).
Steps to reproduce:
- /summon end_crystal ~ ~ ~
- /data merge entity @e[type=end_crystal,limit=1,sort=nearest] {beam_target:[I; 100, 100, 100]}
- /data remove entity @e[type=end_crystal,limit=1,sort=nearest] beam_target
- /data get entity @e[type=end_crystal,limit=1,sort=nearest]
Notice the beam still exists, and the NBT still shows the beam_target unchanged, despite the command returning successful. Other methods to remove the data, such as /data merge, likewise have no effect.
The only way currently to "remove" the beam_target tag is to delete the entity altogether and re-summon an identical one in its place, sans target data, which is not ideal as this causes a noticeable jump in animation when the entity is replaced.
2017-12-03, 08:59 AM
2025-01-30, 10:02 AM
16
8
/data, command, end_crystal, nbt
Minecraft 17w48a - 25w05a
Minecraft 17w48a, 20w10a, 20w11a, 20w12a, 20w13a, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w20a, 1.16.4, 20w48a, 20w51a, 21w03a, 21w05b, 21w06a, 1.17.1, 1.18.1, 1.18.2, 1.19 Pre-release 2, 1.19 Pre-release 3, 1.19, 23w33a, 1.20.4, 24w11a, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 3, 1.20.5 Release Candidate 1, 1.20.5, 1.20.6, 1.21 Pre-Release 4, 1.21, 1.21.1, 1.21.2 Pre-Release 3, 1.21.2 Pre-Release 4, 1.21.3, 24w46a, 1.21.4 Pre-Release 1, 1.21.4, 25w05a
-