Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Video of it in action: https://www.youtube.com/watch?v=kTzkTcCTVZg&list=PL9XabkF_A5YhxWelwj2yzjcegL9E0WLw6
- while true do
- p1, p2 = turtle.inspect() --gets the data from the block
- if p1 == true then --check if there is a block in front of the turtle
- for k,v in pairs(p2) do --reads the table
- if v == "minecraft:stone" then --checks if the block is stone
- turtle.dig() --makes turtle dig
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement