Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script to plant trees in minecraft world
- tiempoAgua=150
- tiempoAgua2=120
- shell.run("clear")
- os.loadAPI("tortu")
- pimpoLleno = false
- print("Please put log in slot 1 and sapplings in slot 16")
- print("Number of files to plant?")
- local numFilas = io.read()
- -- A la posicion
- for i=1,5 do
- tortu.avanza()
- end
- turtle.turnLeft()
- for i=1,7 do
- tortu.avanza()
- end
- turtle.turnRight()
- turtle.forward()
- for i=1,numFilas-1 do
- turtle.turnRight()
- turtle.select(1)
- if turtle.compare() then
- tortu.tala()
- -- turtle.select(16) turtle.place()
- end
- turtle.turnLeft()
- for i=1,6 do
- tortu.avanza()
- end
- end
- turtle.turnRight()
- turtle.select(1)
- if turtle.compare(1) then
- tortu.tala()
- -- turtle.select(16) turtle.place()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- for i=1,8 do
- tortu.avanza()
- end
- turtle.turnRight()
- turtle.forward()
- for i=1,numFilas do
- turtle.turnRight()
- turtle.select(1)
- if turtle.compare() then
- tortu.tala() turtle.select(16)
- -- turtle.place()
- end
- turtle.turnLeft()
- for i=1,6 do
- tortu.avanza()
- end
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- function chupamelamingadominga()
- tortu.avanza(4)
- turtle.turnLeft()
- tortu.avanza(8)
- turtle.turnRight()
- tortu.suca(11,numFilas*6-1)
- tortu.avanza(4)
- turtle.turnRight()
- tortu.avanza(2)
- turtle.turnRight()
- end
- redstone.setOutput("front",true)
- tortu.sube(7)
- turtle.turnLeft()
- tortu.avanza(3)
- turtle.turnRight()
- tortu.avanza(2)
- os.sleep(tiempoAgua)
- turtle.back()
- os.sleep(20)
- tortu.sube(2)
- os.sleep(tiempoAgua2)
- turtle.back()
- turtle.turnRight()
- tortu.avanza(3)
- turtle.turnLeft()
- tortu.baja(9)
- redstone.setOutput("front",false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement