Ok, so I am trying to make a dungeon crawler map, but creepers keep spawning. I want to have certaint mobs spawn (like skeletons, and zombies) but not others (like creepers.) Is there a way to do this? I know that some map makers, like the one who did the minelight zone (awesome map BTW) are able to do this. Any help will be apreciated! :-)
You can also do /kill @e[type=creeper] in a repeat always active command block. The creepers will die instantly. They will leave gunpowder laying around unless you do another command to stop it.
You can kill every creeper automatically with this command:
tp @e[type=Creeper] ~ -500 ~
They don't drop anything and the white particles don't show.
If you don't want to completely remove creepers from your world, you can tag the ones you need (spawners can spawn tagged creepers so you can make them spawning from spawners only) and kill non-tagged ones with this command:
tp @e[type=Creeper,tag=!YOUR_TAGS_NAME] ~ -500 ~
Replace YOUR_TAGS_NAME with the tag you're using.
Both commands MUST run in a repeating command block or a function called every tick to work.
/gamerule doMobSpawning false
This will disable natural spawns, but will not disable any spawners.
Hope it helped!
Eᴠᴇʀʏ 60 sᴇᴄᴏɴᴅs ɪɴ Aғʀɪᴄᴀ, ᴀ ᴍɪɴᴜᴛᴇ ᴘᴀssᴇs. Tᴏɢᴇᴛʜᴇʀ ᴡᴇ ᴄᴀɴ sᴛᴏᴘ ᴛʜɪs. Pʟᴇᴀsᴇ sᴘʀᴇᴀᴅ ᴛʜᴇ ᴡᴏʀᴅ
You can also do /kill @e[type=creeper] in a repeat always active command block. The creepers will die instantly. They will leave gunpowder laying around unless you do another command to stop it.
You can kill every creeper automatically with this command:
They don't drop anything and the white particles don't show.
If you don't want to completely remove creepers from your world, you can tag the ones you need (spawners can spawn tagged creepers so you can make them spawning from spawners only) and kill non-tagged ones with this command:
Replace YOUR_TAGS_NAME with the tag you're using.
Both commands MUST run in a repeating command block or a function called every tick to work.
^^^^^^ Awesome Gdavid04! I really needed that command. Thank you - this is a sincere comment.
You can just type this:
/gamerule doMobSpawning false
then, after that, type this:
/kill @e[type=creeper]
By doing this, you will get rid of all creepers, and they won't spawn more. Also, to stop other mobs from naturally despawning, type this:
/gamerule doMobDespawning false
Hope it helped!