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

Mob spawner block_entity_data does not copy SpawnData data to missing SpawnPotentials

XMLWordPrintable

    • Icon: Bug 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, 1.19.3, 23w04a, 23w05a, 23w06a, 23w07a, 1.19.4 Pre-release 3, 1.19.4, 23w13a, 23w14a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20.1, 23w31a, 23w32a, 23w33a, 23w35a, 1.20.2 Pre-release 1, 1.20.2 Pre-release 2, 1.20.2, 23w40a, 23w41a, 23w42a, 23w44a, 1.20.4, 24w03b, 24w04a, 24w05a, 24w11a, 24w12a, 1.20.6, 1.21, 1.21.3
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      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:{entity:{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:

      {SpawnData:{entity:{id:"minecraft:zombie"}},SpawnPotentials:[{weight:1,data:{entity:{id:"minecraft:zombie"}}}]}

      However, the block_entity_data component 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 @s spawner[block_entity_data={id:spawner,SpawnData:{entity:{id:zombie}}}]

      The data becomes:

      {SpawnData:{entity:{id:"minecraft:zombie"}},SpawnPotentials:[]}

      The difference being that the SpawnPotentials did not copy the zombie over like it does with /setblock.

            Unassigned Unassigned
            skylinerw [Mod] Skylinerw
            Votes:
            35 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              CHK: