Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cobblestone = "minecraft:cobblestone"
- gravel = "minecraft:gravel"
- dirt = "minecraft:dirt"
- turtlename = "computercraft:turtle_expanded"
- function forward(count)
- for i = 1, count do
- while not turtle.forward() do
- success, data = turtle.inspect()
- if success then
- if data.name == turtlename then
- os.sleep(5)
- else
- turtle.dig()
- end
- end
- end
- end
- end
- num = read()
- forward(num)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement