Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- funcraft burger crafting
- DONT USE 4, 8, 12, FOR CRAFTING
- os.sleep([seconds])
- STILL NEEDS CRAFT FUNCTION
- --]]
- function forwardNum(blocks)
- for i= 1, blocks do
- turtle.forward()
- end
- end
- local minimumFuel = 17
- local minimumGrowth = 16
- while true do
- turtle.select(2)
- if turtle.getFuelLevel() < minimumFuel
- then if turtle.suckUp(1) == false then
- print("No fuel available")
- return
- end
- turtle.refuel(1)
- end
- turtle.turnLeft()
- turtle.turnLeft()
- if turtle.getItemCount(1) < minimumGrowth
- then if turtle.suckDown() == false then
- print("Out of growth item")
- turtle.turnLeft()
- turtle.turnLeft()
- return
- end
- end
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(1)
- turtle.turnRight()
- forwardNum(4)
- turtle.turnRight()
- turtle.place()
- turtle.place()
- turtle.turnRight()
- forwardNum(1)
- turtle.turnLeft()
- turtle.place()
- turtle.place()
- turtle.turnRight()
- forwardNum(1)
- turtle.turnLeft()
- turtle.place()
- turtle.place()
- turtle.turnRight()
- forwardNum(1)
- turtle.turnLeft()
- turtle.place()
- turtle.place()
- turtle.turnRight()
- forwardNum(2)
- turtle.turnLeft()
- turtle.place()
- turtle.place()
- turtle.turnRight()
- forwardNum(1)
- turtle.turnLeft()
- turtle.place()
- turtle.place()
- turtle.turnRight()
- forwardNum(1)
- turtle.turnLeft()
- turtle.place()
- turtle.place()
- turtle.turnRight()
- forwardNum(1)
- turtle.turnLeft()
- turtle.place()
- turtle.place()
- turtle.turnLeft()
- forwardNum(4)
- turtle.turnLeft()
- os.sleep(20)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement