Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Nome: Turtle Ricarica Propellente
- -- Programmatore: Vorakh
- -- Data: 16/8/2013
- -- Ricarica Propellente [refp3]
- local tArgs = {...}
- local nTNT = tonumber(tArgs[1])
- turtle.back()
- turtle.down()
- turtle.down()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- --Caricamento pistone Destro
- i = 1
- turtle.select(1)
- while (i <= nTNT) do
- turtle.place(1)
- sleep(0.2)
- shell.run("redpulse", "top", 1, 0.1)
- i = i + 1
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- -- Caricamento Pistone sinistro
- j = 1
- turtle.select(2)
- while (j <= nTNT) do
- turtle.place()
- sleep(0.2)
- shell.run("redpulse", "top", 1, 0.1)
- j = j + 1
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.up()
- turtle.up()
- turtle.forward()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement