1

Help With Server Mobs Spawning

EmeraldEclipse 1/8/16 9:15 pm
275
1/16/2016 1:07 pm
So I made this small, simple Survival server for me and a few friends to play on. So far, everything's running smoothly. However, loads of monsters spawn near the server Spawn, and wait just outside the Spawn doors, ready to kill the new players. Does anyone know any commands for preventing monsters spawning, at least near the Spawn and the Kiddie Corner? (It's a place I'm planning for the younger players, like my little brother and his friend) I'm asking for commands because I don't want to add plug-ins, my reasons being, A: I want to stay Vanilla if possible, and B: I know absolutely nothing about plug-ins. I tried using a command block with the /kill @e command, but the mobs just came back stronger.

Thanks in advance!
Posted by
EmeraldEclipse
Level 23 : Expert Dolphin
45

  Have something to say?

JoinSign in

2

EmeraldEclipse
01/16/2016 1:07 pm
Level 23 : Expert Dolphin
Thank you so much! I actually saw this a while ago, it just took a while to be able to get on my server for long enough.

I used the command you gave me in option # 2 to create a machine underneath the Spawn. The machine has command blocks with pressure plates on top, and a collection of chickens running around on top of it. The chickens activate the blocks about every couple minutes, killing all hostile mobs within 50 blocks.

Thanks again!! (And cool profile picture BTW)
1
Skaldas
01/10/2016 2:33 am
Level 10 : Journeyman Scribe
Hello EmeraldEclipse,

Yes! There are multiple ways that I can help you fix this. Bellow are a list of optional solutions to your choosing. I hope I've helped you in the best way possible. If not, let me know and I can try again!

Option # 1


You can completely disable mobs from spawning by doing a couple of things. The most easiest way would be to turn your server to the peaceful gamemode. In order to do this type the command bellow:

/gamerule set Peaceful

However, based on an assumption, your server is most likely set on the Normal or Hard difficulty. If you'd still like mobs please type the command bellow:

/gamerule set Easy

Option # 2


I noticed you tried command blocks. If you'd like to use a command block solution you can create one by typing this in the command block:

/kill @e[type=Slime,r=60] <--- Slime is an example, you may set it to any monster.

If you've noticed the "r=60" this means that it will kill any slime that spawns near the commandblock in a 60 block radius. You can change the radius numbers higher or lower if you'd like too.
1

Welcome