Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.dig()
- while true do
- local rawCmd = read()
- for _, cmd in ipairs(rawCmd) do
- if (cmd == "w") then
- turtle.dig()
- turtle.forward()
- elseif (cmd == "d") then
- turtle.turnRight()
- turtle.dig()
- elseif (cmd == "s") then
- turtle.back()
- elseif (cmd == "a") then
- turtle.turnLeft()
- turtle.dig()
- elseif (cmd == "e") then
- turtle.digUp()
- turtle.up()
- elseif (cmd == "q") then
- turtle.digDown()
- turtle.down()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement