So i'm trying to build a Five Nights at Freddy's 2 map on Minecraft but bats keep spawning I tried to kill them but there are to many to kill and I tried this command /gamerule Domobspawning false but that didn't work and /kill @e[type=bat] I have no idea how to get rid of bats

  • damn Zubats, they're everywhere! :P – SysDragon Jul 29 '16 at 15:35

Gamerules are case-sensitive, and you can create your own gamerules. The correct gamerule is "doMobSpawning", while you've created a custom gamerule called "Domobspawning".

/gamerule doMobSpawning false

Savegame IDs are also case-sensitive. The correct ID is "Bat", not "bat".

/kill @e[type=Bat]

To get the bats to stop spawning try putting some source of light if you can in the area. To kill the bats I would just use splash potions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.