Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local success, findCoal = 1
- function refuel()
- if turtle.getFuelLevel() < 200 then
- print("refueling now... I can only move ", turtle.getFuelLevel(), "more blocks...")
- turtle.select(1)
- while turtle.select("minecraft:coal") == false do
- findCoal = findCoal + 1
- turtle.select(findCoal)
- end
- print("I found coal in slot ", turtle.select(), ". Eating it now!")
- turtle.refuel()
- print("done! I can now move ", turtle.getFuelLevel(), "more blocks!")
- else
- print("I dont need fuel right now! I can still move ", turtle.getFuelLevel(), " more blocks!")
- end
- end
- refuel()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement