Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refuel
- if turtle.getFuelLevel() ~= "unlimited" and turtle.getFuelLevel() < 1 then
- for i = 1, 16 do
- turtle.select(i)
- if turtle.getItemCount() > 0 then
- local data = turtle.getItemDetail()
- if data.name = "minecraft:coal" then
- turtle.refuel()
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement