SHARE
TWEET

CC: inspect1

hevohevo Mar 28th, 2016 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top