Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local event, key, isHeld = os.pullEvent("key")
- if key == 17 then turtle.dig()
- turtle.forward()
- end
- if key == 30 then turtle.turnLeft() end
- if key == 31 then turtle.back() end
- if key == 32 then turtle.turnRight() end
- if key == 42 then turtle.attack() end
- if key == 29 then turtle.place() end
- if key == 19 then turtle.refuel() end
- if key == 23 then turtle.digUp()
- turtle.up() end
- if key == 37 then turtle.digDown()
- turtle.down()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement