Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isWood()
- while true do
- u = 0
- local success, data = turtle.inspect()
- if success then
- print("block:", data.name)
- block = data.name
- end
- if block == "IC2:rubberWood" then
- turtle.dig()
- turtle.digUp()
- turtle.up()
- u = u +1
- print("Bloco removido:", block)
- end
- while u > 0 do
- turtle.down()
- end
- end
- end
- iswood()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement