Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = turtle
- local c = true
- rednet.open("right")
- while true do
- id,message = rednet.receive()
- if id == 12 then
- if message == "su" then
- t.digUp()
- t.up()
- elseif message == "giu" then
- t.digDown()
- t.down()
- elseif message == "w" then
- t.dig()
- t.forward()
- elseif message == "s" then
- t.back()
- elseif message == "a" then
- t.turnLeft()
- elseif message == "d" then
- t.turnRight()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement