Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Choix
- local ID=2539
- rednet.open("back")
- while 1
- do
- term.clear()
- term.setCursorPos(1,1)
- print("Control the turtle")
- print("1.Forward")
- print("2.Back")
- print("3.Up")
- print("4.Down")
- print("5.Turn left")
- print("6.Turn Right")
- print("7.Break")
- print("8.Break Down")
- print("9.Break Up")
- print("10.Place")
- print("11.Place Down")
- print("12.Place Up")
- print("13.Open Redstone")
- print("14.Close Redstone")
- print("15.Tunnel")
- print("16.Forward +")
- print("17.Refuel")
- print("18.Exit")
- Choix=io.read()
- Choix=tonumber(Choix)
- rednet.send(ID,Choix)
- if Choix==18
- then
- term.clear()
- term.setCursorPos(1,1)
- print("Tank for using")
- break
- end
- if Choix==16 or Choix==15
- then term.clear()
- term.setCursorPos(1,1)
- print("How many block ?")
- Choix=io.read()
- Choix=tonumber(Choix)
- rednet.send(ID,Choix)
- end
- end
- rednet.close("back")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement