Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function checkInventory()
- slot = 0
- repeat
- slot = slot + 1
- turtle.select(slot)
- until (turtle.getItemCount(slot) > 0)
- repeat
- if (turtle.getItemDetail(slot).name ~= "ftbstoneblock:3x_compressed_stone") then
- slot = slot + 1
- turtle.select(slot)
- end
- until (turtle.getItemDetail(slot).name == "ftbstoneblock:3x_compressed_stone")
- end
- local function checkDiamond()
- for x = 1,4 do
- has_block, data = turtle.inspect()
- if has_block then
- if (data.name ~= "ftbstoneblock:3x_compressed_stone") then
- term.clear()
- term.setCursorPos(1,1)
- print("Checking to see if the compressed cobble has turned in to diamond ore.")
- print("Ooooohhh found some diamond ore!")
- turtle.dig()
- turtle.place()
- end
- end
- turtle.turnLeft()
- end
- has_block, data = turtle.inspectUp()
- if has_block then
- if (data.name ~= "ftbstoneblock:3x_compressed_stone") then
- term.clear()
- term.setCursorPos(1,1)
- print("Checking to see if the compressed cobble has turned in to diamond ore.")
- print("Ooooohhh found some diamond ore!")
- turtle.digUp()
- turtle.placeUp()
- end
- end
- end
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Checking to see if the compressed cobble has turned in to diamond ore.")
- checkInventory()
- checkDiamond()
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment