Spawner's NBT SpawnPotentials doesn't overwrite EntityId.
1. Spawner's NBT SpawnerPotentials doesn't overwrite EntityId.
/setblock ~ ~1 ~ minecraft:mob_spawner 0 destroy {EntityId:"Zombie", SpawnCount:2, Delay:0, SpawnRange:20, MaxNearbyEntities:5, MinSpawnDelay:0, MaxSpawnDelay:0,RequiredPlayerRange:40,SpawnPotentials:[{Type:PigZombie,Weight:100}]}
This code doesn't spawn any entities.
/setblock ~ ~1 ~ minecraft:mob_spawner 0 destroy {EntityId:"PigZombie", SpawnCount:2, Delay:0, SpawnRange:20, MaxNearbyEntities:5, MinSpawnDelay:0, MaxSpawnDelay:0,RequiredPlayerRange:40,SpawnPotentials:[{Type:PigZombie,Weight:100}]}
But this code works.
2. Spawner cannot spawn multiple different entities.
This problem is related to Problem 1.
/setblock ~ ~1 ~ minecraft:mob_spawner 0 destroy {EntityId:"Zombie", SpawnCount:1, Delay:0, SpawnRange:20, MaxNearbyEntities:5, MinSpawnDelay:0, MaxSpawnDelay:0, RequiredPlayerRange:40,SpawnPotentials:[
{Type:PigZombie,Weight:100,Properties:{CustomName:"AI_Lv1", DropChances:[1.0f,0.0f,0.0f,0.0f,0.0f],Equipment:[{id:"minecraft:iron_sword",Count:1b,tag:{display:{Name:"AI Lv.1의 검"}}}]}},
{Type:Zombie,Weight:100,Properties:{CustomName:"AI_Lv1", DropChances:[1.0f,0.0f,0.0f,0.0f,0.0f],Equipment:[{id:"minecraft:iron_sword",Count:1b,tag:{display:{Name:"AI Lv.1의 검"}}}]}}]}
Not work.
2015-07-08, 09:31 AM
2015-08-29, 02:01 AM
2015-08-23, 09:45 PM
0
4
-