Advertisement
hevohevo

CC: inspect1

Mar 28th, 2016
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. -- inspect1
  2. -- 特定のブロックだけ採掘するプログラム
  3.  
  4. -- ##### Config #####
  5. local wishBlock = "minecraft:cobblestone"
  6.  
  7. -- ##### Main #####
  8. local success, data = turtle.inspect()
  9.  
  10. if success then
  11.   print("Name:", data["name"])
  12.   if data["name"] == wishBlock then
  13.     turtle.dig()
  14.   end
  15. else
  16.   print(data)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement