By using the /summon command I tried to summon a mob riding a bat, and that worked out fine, but when I tried to make a monster spawner which would spawn those two mobs, it didn't work. At first I thought that spawners don't spawn riding mobs but I changed the bat to a zombie and it worked out fine. The bat is the problem.
Attachments
Comments 6
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"Bat",Passengers:[{id:"Skeleton",CustomName:"Bloodfly",CustomNameVisible:1,ArmorItems:[{},{id:feather,Count:1,tag:{display:{Name:"Bloodfly Stinger",Lore:[It's sharp and pointy]}}},{id:leather_chestplate,Count:1,tag:{display:{color:5463590}}},{id:skull,Damage:3,Count:1,tag:{display:{Name:"Bloodfly Head",Lore:[It's ugly]},SkullOwner:{Id:"014df015-7eba-4ad0-a0e0-83164b7a45f2",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmZmYzZiZWMzM2M1ODFiMmVlODdlNThiYjMxMGJkZjJkMDQxZDI0ZDkzYWRkM2Q4NmE2ZTQ5NmY3ZDlmZTMifX19"}]}}}}],HandItems:[{id:bow,Count:1},{}],ArmorDropChances:[0.0F,0.025F,0.0F,0.025F],HandDropChances:[0.0F,0.0F],Attributes:[{Name:generic.maxHealth,Base:26},{Name:generic.movementSpeed,Base:0.3},{Name:generic.followRange,Base:40}],Health:26.0f,Team:"Predator1",ActiveEffects:[{Id:14,Amplifier:2,Duration:199980,ShowParticles:0b}]}]}}
Mobs from spawners need to meet specified conditions. Pigs can spawn only on grass, zombie at light lvl of 7 or below etc. Bats have hard conditions to spawn. As wiki says:
Spawn
Below layer 63
Light level of 3 or less in neighboring blocks
October 20 – November 3: light level of 6 or less in neighboring blocks
When condition for bats was met (light lvl 0 and many blocks nearby) Bats started to spawn (screenshot). If you want spawner to work at any light lvl, height lvl and without surrounding blocks, you can modify spawner to summon XPOrb that despawns instantly:
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"XPOrb",Age:10000,Passengers:[{id:"Bat",Passengers:[{id:"Skeleton",CustomName:"Bloodfly",CustomNameVisible:1,ArmorItems:[{},{id:feather,Count:1,tag:{display:
{Name:"Bloodfly Stinger",Lore:[It's sharp and pointy]}
}},{id:leather_chestplate,Count:1,tag:{display:}},{id:skull,Damage:3,Count:1,tag:{display:
{Name:"Bloodfly Head",Lore:[It's ugly]}
,SkullOwner:{Id:"014df015-7eba-4ad0-a0e0-83164b7a45f2",Properties:{textures:[
{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmZmYzZiZWMzM2M1ODFiMmVlODdlNThiYjMxMGJkZjJkMDQxZDI0ZDkzYWRkM2Q4NmE2ZTQ5NmY3ZDlmZTMifX19"}
]}}}}],HandItems:[
{id:bow,Count:1}
,{}],ArmorDropChances:[0.0F,0.025F,0.0F,0.025F],HandDropChances:[0.0F,0.0F],Attributes:[
{Name:generic.maxHealth,Base:26}
,
{Name:generic.movementSpeed,Base:0.3}
,
{Name:generic.followRange,Base:40}
],Health:26.0f,Team:"Predator1",ActiveEffects:[
{Id:14,Amplifier:2,Duration:199980,ShowParticles:0b}
]}]}]}}
Have fun.=]
You have to provide us with the command you used to create the spawner.