-- script written by Emilia Groß-Hardt -- with `local` keywords added by me local pos = 0 local move = true local full = false while move do pos = pos + 1 local _, info = turtle.inspect() if info ~= nil and info.name == "minecraft:lava" then turtle.place() if turtle.getFuelLevel() + 1000 - pos >= turtle.getFuelLimit() then full = true else turtle.refuel() end end if full then move = false else move = turtle.forward() end end turtle.turnLeft() turtle.turnLeft() for i=1,pos-1 do turtle.forward() end turtle.turnLeft() turtle.turnLeft() if full then turtle.refuel() end