Skip to content

Instantly share code, notes, and snippets.

@maxihafer
Last active January 3, 2023 17:24
Show Gist options
  • Save maxihafer/508350cf4b32d8393a069c1045e3f131 to your computer and use it in GitHub Desktop.
Save maxihafer/508350cf4b32d8393a069c1045e3f131 to your computer and use it in GitHub Desktop.
print("starting mob slaughter...")
while true do
while redstone.getInput("front") do
turtle.attack();
sleep(0.5);
end
turtle.turnRight()
turtle.turnRight()
for i = 16,1,-1 do
turtle.select(i)
turtle.drop()
end
turtle.turnLeft()
turtle.turnLeft()
os.pullEvent("redstone")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment