Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- rednet.open("left")
- while 1
- do
- local SenderID,Ordre,Portocol=rednet.receive(600)
- if Ordre==1
- then
- turtle.forward()
- end
- if Ordre==2
- then
- turtle.back()
- end
- if Ordre==3
- then
- turtle.up()
- end
- if Ordre==4
- then turtle.down()
- end
- if Ordre==5
- then turtle.turnLeft()
- end
- if Ordre==6
- then turtle.turnRight()
- end
- if Ordre==7
- then turtle.dig()
- end
- if Ordre==8
- then turtle.digDown()
- end
- if Ordre==9
- then turtle.digUp()
- end
- if Ordre==10
- then turtle.place()
- end
- if Ordre==11
- then turtle.placeDown()
- end
- if Ordre==12
- then turtle.placeUp()
- end
- if Ordre==13
- then redstone.setOutput("front",true)
- redstone.setOutput("left",true)
- redstone.setOutput("right",true)
- redstone.setOutput("back",true)
- redstone.setOutput("top",true)
- redstone.setOutput("bottom",true)
- end
- if Ordre==14
- then redstone.setOutput("front",false)
- redstone.setOutput("left",false)
- redstone.setOutput("right",false)
- redstone.setOutput("back",false)
- redstone.setOutput("top",false)
- redstone.setOutput("bottom",false)
- end
- if Ordre==15
- then local SenderID,Ordre,Protocol=rednet.receive(600)
- local a=0
- while a<Ordre
- do turtle.dig()
- turtle.forward()
- turtle.digUp()
- a=a+1
- end
- end
- if Ordre==16
- then local SenderID,Ordre,Protocol=rednet.receive(600)
- local a=0
- while a<Ordre
- do turtle.forward()
- a=a+1
- end
- end
- if Ordre==17
- then turtle.refuel()
- end
- if Ordre==18
- then
- break
- end
- end
- rednet.close("left")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement