Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Basic
- local unloaded = 0
- local collected = 0
- sleep(1)
- rednet.open("right")
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Ready to Receve Commands")
- local id, mgs, dis = rednet.receive()
- if mgs == "5Forward" then
- turtle.forward()
- end
- if mgs == "5Back" then
- turtle.back()
- end
- if mgs == "5TurnLeft" then
- turtle.turnLeft()
- end
- if mgs == "5TurnRight" then
- turtle.turnRight()
- end
- if mgs == "5Up" then
- turtle.up()
- end
- if mgs == "5Down" then
- turtle.down()
- end
- if mgs == "5Place" then
- turtle.place()
- end
- if mgs == "5PlaceDown" then
- turtle.placeDown()
- end
- if mgs == "5PlaceUp" then
- turtle.placeUp()
- end
- if mgs == "5Suck" then
- turtle.suck()
- end
- if mgs == "5Drop" then
- for n=1,16 do
- unloaded = unloaded + turtle.getItemCount(n)
- turtle.select(n)
- turtle.drop()
- end
- collected = 0
- turtle.select(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment