Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("V nadrzi zbyva " .. turtle.getFuelLevel() .. ".")
- print("Jestli chces naplnit nadrz, dej palivo do slotu 1 a napis 'a'")
- local nadrz = io.read()
- if nadrz == "a" then
- turtle.select(1)
- turtle.refuel()
- end
- print("Ted je v nadrzi " .. turtle.getFuelLevel() .. ".")
- print("Do slotu 2 dej saplinky do slotu 3 bonemeal")
- write"Kolik cyklu ? (1 cyklus = 2 stromy) "
- local kolik = io.read()
- write"Pauza mezi cykly v sekundach ? "
- local spat = io.read()
- for x=1,kolik do
- turtle.forward()
- turtle.select (2)
- turtle.place()
- turtle.select (3)
- turtle.place()
- turtle.back()
- turtle.select (2)
- turtle.place()
- turtle.select (3)
- turtle.place()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- for a=1,6 do
- turtle.digUp()
- turtle.up()
- turtle.dig()
- end
- for a=1,6 do
- turtle.dig()
- turtle.down()
- end
- turtle.back()
- print("Ted je v nadrzi " .. turtle.getFuelLevel() .. ".")
- print("Hotovo " .. x .. " cyklu z " .. kolik .. ".")
- sleep(spat)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement