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

Mob spawner BlockEntityTag does not copy SpawnData data to missing SpawnPotentials



    • Bug
    • Resolution: Unresolved
    • Minecraft 16w32a
    • Minecraft 15w45a, Minecraft 15w46a, Minecraft 15w47a, Minecraft 15w47b, Minecraft 15w47c, Minecraft 15w49a, Minecraft 15w49b, Minecraft 15w50a, Minecraft 15w51a, Minecraft 15w51b, Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b, Minecraft 16w06a, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.11.2, Minecraft 17w17b, Minecraft 1.12.2, Minecraft 1.13-pre1, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w13a, Minecraft 1.14.2, 1.14.4, 1.15.2, 20w07a, 20w20b, 1.16.1, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 4, 1.17, 1.17.1 Pre-release 1, 1.17.1, 23w04a
    • None
    • Confirmed
    • Commands
    • Low


      When using /setblock to create a spawner with only "SpawnData" supplied, that data is automatically copied into "SpawnPotentials" such that the same entity will always spawn.

      For example, the following /setblock command shows the intended behavior:

      /setblock ~ ~ ~ spawner{SpawnData:{id:zombie}}

      A rough example of what the spawner's data becomes, indicating that the list of entities to spawn is only that which was defined in SpawnData:


      However, the BlockEntityTag tag does not cause this copy to happen. Instead, given the following /give command (which is expected to have the exact same result as /setblock when placed):

      /give @p minecraft:spawner{BlockEntityTag:{SpawnData:{id:"minecraft:zombie"}}} 1

      The data becomes:


      The difference being that the SpawnPotentials did not copy the zombie over like it does with /setblock, and instead defaulted to a pig.


        Issue Links



              Unassigned Unassigned
              skylinerw [Mod] Skylinerw
              35 Vote for this issue
              17 Start watching this issue