Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Slot 1: Wood : 8 pezzi
- Slot 2: Charcoal: 1 pezzo
- ]]
- local tArgs = {...}
- local cicli = tArgs[1]
- for i=1,cicli do
- -- Raccolta Wood da Chest
- turtle.turnLeft()
- turtle.select(1)
- turtle.suck(8)
- -- Raccolta Charcoal da Chest
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(2)
- turtle.suck(1)
- -- carica Wood nella Fornace
- turtle.turnLeft()
- turtle.up()
- turtle.up()
- turtle.forward()
- turtle.select(1)
- turtle.dropDown(8)
- -- Carica Charcoal nella Fornace
- turtle.back()
- turtle.down()
- turtle.select(2)
- turtle.drop(2)
- -- Recupero Carbonella Prodotta
- sleep(80)
- turtle.down()
- turtle.forward()
- turtle.select(2)
- turtle.suckUp()
- turtle.back()
- -- Deposito Legno nella Chest
- turtle.turnLeft()
- turtle.select(1)
- turtle.drop()
- -- Deposito Charcoal nella Chest
- turtle.turnRight()
- turtle.turnRight()
- for i = 2, 16 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.turnLeft()
- print("ciclo terminato")
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement