Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local BLACKLISTED_ITEMS = {
- "minecraft:cobbelstone",
- "minecraft:sand",
- "minecraft:gravel",
- "minecraft:grass_block",
- "minecraft:stone",
- "minecraft:dirt",
- "minecraft:cobbelstone",
- "minecraft:diorite",
- "minecraft:bedrock",
- "minecraft:granite",
- }
- local function compareDown()
- local isMatch = false
- local has_block, block = turtle.inspectDown()
- if has_block then
- for i = 1, #BLACKLISTED_ITEMS do
- if BLACKLISTED_ITEMS[i] == block.name then
- isMatch = true
- print("BLACKLISTED: "..block.name.. " = "..BLACKLISTED_ITEMS[i])
- else
- print("WHITELISTED: "..block.name.. " = "..BLACKLISTED_ITEMS[i])
- turtle.digDown()
- bot.valuable = bot.valuable +1
- end
- end
- end
- end
- compareDown()
Advertisement
Add Comment
Please, Sign In to add comment