Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local foundChest = false
- repeat
- local move = true;
- while move do
- if forward() == false then
- move = false
- end
- end
- local success, data = turtle.inspectDown()
- if data.name == "minecraft:chest" then
- foundChest = true
- else
- turtle.turnRight()
- end
- until foundChest == true
- turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement