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

"Dimension" NBT tag no longer exists for non-player entities

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: 1.16 Release Candidate 1, 1.16
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands

      Description

      The NBT tag for Dimension changed in snapshot 20w21a, from a number to namespace ID, {Dimension:-1} to {Dimension:"minecraft:the_nether"} and no longer appears to be detectable by execute commands targeting non-player entities.

      Previously this command would work in 1.15: 

      execute as @e[type=minecraft:creeper,nbt={Dimension:-1}] at @s run say test

      But the new 1.16 command does not work:

      execute as @e[type=minecraft:creeper,nbt={Dimension:"minecraft:the_nether"}] at @s run say test

      However the same command targeting the player does work in 1.16:

      execute as @e[type=minecraft:player,nbt={Dimension:"minecraft:the_nether"}] at @s run say test

      An easy way to test this is to make a new world, turn off mob spawning, kill all creepers, then go to the nether and spawn a single creeper and try the commands on it.

      If there is a new syntax I am missing and this is not a bug, that would also be highly appreciated to be told, as the documentation is very sparse right now.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Crabmaster Jonathan Isaac Moss
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: