Advertisement
Guest User

code1

a guest
Sep 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. function isWood(u)
  2.     u = 0
  3.     local success, data = turtle.inspect()
  4.     if success then
  5.       print("block:", data.name)
  6.       block = data.name
  7.     end
  8.     if block == "IC2:rubberWood" then
  9.       turtle.dig()
  10.       print("Bloco removido:", block)
  11.     end
  12.     while block == "IC2:rubberWood" do
  13.         turtle.dig()
  14.         turtle.digUp()
  15.         turtle.up()
  16.         u = u + 1
  17.     end
  18.     while m > 0 do
  19.         turtle.down()
  20.     end
  21.  
  22. end
  23.  
  24. iswood(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement