Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- inspect1
- -- 特定のブロックだけ採掘するプログラム
- -- ##### Config #####
- local wishBlock = "minecraft:cobblestone"
- -- ##### Main #####
- local success, data = turtle.inspect()
- if success then
- print("Name:", data["name"])
- if data["name"] == wishBlock then
- turtle.dig()
- end
- else
- print(data)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement