mojira.dev
MC-257312

SpawnData and SpawnPotentials doesn't work with /give

SpawnData and SpawnPotentials doesn't work with /give.

  1. Use the following command to generate camel monster spawner:

    /setblock ~ ~1 ~ minecraft:spawner{MaxNearbyEntities: 6s, RequiredPlayerRange: 16s, SpawnCount: 4s, SpawnData: {entity: {id: "minecraft:camel"}}, MaxSpawnDelay: 800s, Delay: 719s, x: 61, y: 67, z: -4, id: "minecraft:mob_spawner", SpawnRange: 4s, MinSpawnDelay: 200s, SpawnPotentials: [{data: {entity: {id: "minecraft:camel"}}, weight: 1}]} destroy
  2. Notice that it works.

  3. However, it will not works if the monster spawner is given with the following command:

    /give @p minecraft:spawner{MaxNearbyEntities: 6s, RequiredPlayerRange: 16s, SpawnCount: 4s, SpawnData: {entity: {id: "minecraft:camel"}}, MaxSpawnDelay: 800s, Delay: 719s, x: 61, y: 67, z: -4, id: "minecraft:mob_spawner", SpawnRange: 4s, MinSpawnDelay: 200s, SpawnPotentials: [{data: {entity: {id: "minecraft:camel"}}, weight: 1}]} 1

Linked issues

Attachments

Comments 2

Um, buddy, you need to put all that data in BlockEntityTag, it being in the main tag has no effect...

Invalid.

@@unknown oh, thanks.

[Mod]Les3awe

(Unassigned)

Unconfirmed

Commands

22w44a

Retrieved