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

NBT link/reference when using /fill

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w45a
    • 1.19.2, 23w06a
    • Confirmed
    • Commands, Networking
    • Important
    • Platform

      Hi,
      I've expirenced simmilar issues that MC-114104 and MC-163953 describe.
      Hoewer, this issue is not present in 1.17.x. Perhaps the spawner syntax change broke something.

      How to reproduce:
      1. Launch minecraft in versions 1.18 and above

      2. Run
      /fill ~1 ~ ~ ~1 ~1 ~ minecraft:spawner{SpawnData:{entity:{id:"minecraft:armor_stand"}},RequiredPlayerRange:0s,MaxNearbyEntities:0s}

      3. Run
      /data modify block ~1 ~ ~ SpawnData.entity.id set value "minecraft:bat"

      4. Observe how the mob inside the bottom spawner changes to a bat, and the top spawner is still an armorstand

      5. Run
      /data get block ~1 ~1 ~ SpawnData.entity.id
      It returns "minecraft:bat"! Notice that client is still displaying an armor stand.

       

      Once again, it works only in 1.18 and above

            Unassigned Unassigned
            krypek Kryppek krypus
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: