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

'/data remove' does not delete BeamTarget tag in End Crystals, instead 'zeroes' it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 17w48a, 20w10a, 20w11a, 20w12a, 20w13a, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w20a, 1.16.4, 20w48a, 20w51a, 21w03a, 21w05b, 21w06a, 1.17.1
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands

      Description

      Attempting to delete a compound tag does not delete its children, attempting to delete a child merely changes the value to 0.

      How to recreate:

      1. /summon end_crystal ~ ~ ~
      2. /data merge entity @e[type=end_crystal,limit=1,sort=nearest] {BeamTarget:{X:100,Y:100,Z:100}}
      3. /data remove entity @e[type=end_crystal,limit=1,sort=nearest] BeamTarget
      4. /data get entity @e[type=end_crystal,limit=1,sort=nearest]

      Notice the beam still exists, and the NBT still has the BeamTarget tag, with the appropriate unmodified children.

      Attempting to remove the children simply 'zeroes' the values:
      /data remove entity @e[type=end_crystal,limit=1,sort=nearest] BeamTarget.X

      Thus there is no way to remove the BeamTarget tag that I am aware of, aside from deleting the entity.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ChaosNemisis ChaosNemisis
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: