Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("left")
- ID_REQUETE = 0
- LOX = 0
- DRAK = 0
- CLOCK = 24*60*60
- DROP_LOX = 24
- DROP_DRAK = 16
- while true do
- if ready then
- ID_REQUETE = ID_REQUETE+1
- -- la turtle ecrit une nouvelle page dans le printer
- monitor.write("Iridium envoyées")
- monitor.setCursorPos(1, 3)
- monitor.write("Requetes: ", ID_REQUETE)
- sleep(1)
- turtle.turnRight()
- turtle.turnRight()
- sleep(1)
- -- la turtle drop les items puis print
- turtle.drop(DROP_DRAK)
- DRAK = DRAK+1
- monitor.setCursorPos(1, 4)
- monitor.write("Iridium Drak: ",DRAK)
- sleep(1)
- turtle.turnRight()
- turtle.turnRight()
- sleep(1)
- -- la turtle drop les items puis print
- turtle.drop(DROP_LOX)
- LOX = LOX+1
- monitor.setCursorPos(1, 5)
- monitor.write("Iridium LOX: ",LOX)
- sleep(CLOCK)
- else
- error("Le monitor n'est pas disponible.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement