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

spawners ignore data if placed in survival

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.1
    • None
    • Unconfirmed
    • (Unassigned)

      I would like to add the ability to silk touch and keep the data of spawners, but nothing I try seems to be working. I instead decided to give the player an empty spawner so they can just use a spawn egg without having free access to a pig spawner in the meantime. I used the following command/nbt data:

       

      /give @p spawner{BlockEntityTag:{SpawnData:

      {id:""}

      ,SpawnPotentials:[\{id:""}]}}

       

      This spawner works fine if placed in creative. It is empty and does not spawn mobs.

       

      The EXACT same spawner ignores nbt data and defaults to a pig spawner if placed in survival.

            Unassigned Unassigned
            aceplante aceplante
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: