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

Spawner's NBT SpawnPotentials doesn't overwrite EntityId.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8.7
    • None
    • Unconfirmed

      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.

            Unassigned Unassigned
            McDic McDic
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: