local islog = false local slot = 0 --//////////////////////////////////////-- function findSlot(name) for i=1,16 do --[[ print(i) print(turtle.getItemDetail().name) ]]-- turtle.select(i) if turtle.getItemDetail().name == name then slot = i else end end return slot end function checkFuelNrefuel() if turtle.getFuelLevel() < 10 then turtle.select(1) turtle.refuel(1) print("refueling") end end --/////////////////-- function chop() end --//////////////////////////////////////-- --[[ while true do checkFuelNrefuel() if turtle.inspect().name == "minecraft:log" then chop() end end ]]-- print(findSlot("minecraft:coal"))