SHARE
TWEET

Untitled

a guest Sep 19th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function isWood()
  2.     while true do
  3.         u = 0
  4.         local success, data = turtle.inspect()
  5.         if success then
  6.           print("block:", data.name)
  7.           block = data.name
  8.         end
  9.         if block == "IC2:rubberWood" then
  10.           turtle.dig()
  11.           turtle.digUp()
  12.           turtle.up()
  13.           u = u +1
  14.           print("Bloco removido:", block)
  15.         end
  16.        
  17.         while u > 0 do
  18.             turtle.down()
  19.         end
  20.     end
  21.  
  22. end
  23.  
  24. iswood()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top