Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- w = 16
- s = 15
- k = 14
- i = 1
- function stone()
- if turtle.getItemCount(s) == 0 then
- turtle.turnRight()
- turtle.select(k)
- elseif turtle.compare() then
- turtle.select(s)
- turtle.suck()
- turtle.turnLeft()
- end
- end
- function paliwo()
- if turtle.getFuelLevel() < 1000 or turtle.getItemCount(w) == 0 then
- turtle.turnLeft()
- turtle.select(w)
- turtle.suck()
- turtle.turnRight()
- else
- if turtle.getFuelLevel() <1000 then
- turtle.select(w)
- turtle.refuel()
- end
- end
- end
- function kop()
- turtle.select(s)
- if not turtle.compare() then
- turtle.dig()
- end
- end
- function staw()
- turtle.select(s)
- turtle.place()
- end
- function rozladunek()
- if
- turtle.getItemCount(i) > 0 then
- turtle.select(i)
- turtle.dropDown()
- end
- end
- function main()
- while true do
- paliwo()
- stone()
- staw()
- kop()
- rozladunek()
- end
- end
- return main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement