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

Mob spawner BlockEntityTag does not copy SpawnData data to missing SpawnPotentials

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: Minecraft 16w32a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      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 ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"minecraft: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:{id:"minecraft:zombie"},SpawnPotentials:[{Weight:1,Entity:{id:"minecraft:zombie"}}]}

      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:mob_spawner 1 0 {BlockEntityTag:{SpawnData:{id:"minecraft:zombie"}}}

      The data becomes:

      {SpawnData:{id:"minecraft:zombie"},SpawnPotentials:[{Weight:1,Entity:{id:"minecraft:pig"}}]}

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                skylinerw [Mod] Skylinerw
              • Votes:
                9 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: