Skip to content

Instantly share code, notes, and snippets.

@1rover1
1rover1 / commands.txt
Last active September 21, 2019 06:52
Minecraft command line tools
# Tail server logs for people joining the game
# Send to SNS, SMS, Hue, etc
tail -n 0 -F MineCraft_server/logs/latest.log | grep --line-buffered "joined the game" | while read line; do echo "joined $line"; done
# Caps lock
# Use at a mob spawner when AFK to attack every x seconds. Obvs update the sleep time and window name as required
while sleep 3; do if [[ `xdotool getactivewindow getwindowname` == "Minecraft 1.13.2" && $( xset q | grep Caps | awk '{print $4}' ) == "on" ]]; then xdotool click 1; fi; done
# AFK fishing