en 1.8+ /commands Tutorials

1.Type in chat:

/gamerule doMobSpawning false

2.Type in chat:

/give @p command_block

3.Set the command block to repeat mode.

4.Type in Repeat mode command block:

/execute @e[type=!Player] ~ ~ ~ /kill @s

5.Activate the command block and you are done!


The command

Note: Minify the command to avoid issues :)


Created: Tue, 08 Aug 2017 07:29:21, Updated: Tue, 08 Aug 2017 07:30:47, Views: 71

Share on: