Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.select(1)
- local fl = turtle.getFuelLevel()
- if fl == 0 then
- fl = turtle.refuel(4)
- end
- print("fuel:"..tostring(fl))
- local function MoveLine()
- local moved = 0
- while true do
- local success, data = turtle.inspect()
- if success then
- print("name:"..data.name)
- print("meta:"..textutils.serialize(data))
- if data.name ~= "minecraft:grass" then
- break
- end
- end
- turtle.forward()
- moved = moved + 1
- end
- for i=1, moved do
- turtle.back()
- end
- end
- MoveLine()
Advertisement
Add Comment
Please, Sign In to add comment