Mojira Archive
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
    

Invalid

[Mod] Les3awe

2022-11-08, 06:19 AM

2022-11-08, 07:57 AM

2022-11-08, 07:55 AM

0

1

Unconfirmed

Commands

22w44a

-