Last active
December 13, 2015 20:49
-
-
Save inertia186/4973180 to your computer and use it in GitHub Desktop.
[Minecraft, SMP] Butchers all hostile mobs by switching to Peaceful then back to Normal.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd="difficulty 0" | |
bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" | |
sleep 1 # This is required so that the commands happen in different game ticks. | |
cmd="difficulty 2" | |
bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment