Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refuelWithLava()
- for slot = 1, 16 do
- turtle.select(slot)
- local item = turtle.getItemDetail()
- if item and item.name == "minecraft:lava_bucket" then
- if turtle.refuel() then
- print("Refueled with a lava bucket.")
- else
- print("Error: Could not refuel with a lava bucket.")
- end
- end
- end
- end
- refuelWithLava()
- turtle.select(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement