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

Command Blocks with a setblock command don't place spawners properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19
    • None
    • Windows 10
      Bundled Java Runtime
      Vanilla Minecraft 1.19
    • Unconfirmed
    • Creative
    • (Unassigned)

      When placing a command block with the auto tag that has a command to set a spawner with a specific entity in, the spawner will instead be a default pig spawner.

      Steps to reproduce:

      1. Use this command to get a command block with a command to /setblock a spawner with an armour stand that is automatically run when it is placed.
        /give @p command_block{BlockEntityTag:{Command:"/setblock ~ ~ ~ spawner{SpawnCount:0,SpawnRange:0,MaxNearbyEntities:0,RequiredPlayerRange:0,SpawnData:{entity:{id:\"minecraft:armor_stand\",ArmorItems:[{},{},{},{id:\"minecraft:stone\",Count:1b}]}}} replace",auto:1b}} 1
        
      1. Now place the command block you were given and notice it will place a spawner with a spinning pig.
      2. Expected result (do the same steps above in 1.18): Placing the command block will place a spawner that has an armour stand with stone on its head.

      Note:

      Spawners show correctly after a relog

        1. actual result.png
          1.29 MB
          ioblackshaw
        2. expected result.png
          1019 kB
          ioblackshaw

            Unassigned Unassigned
            Enchanted_Games ioblackshaw
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: