Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #07/07/2020 Basic program to turn stone into ore. Need plent of power for the AR as well)
- print("I operate a Mines Lens on an Atomic Reconstructor ")
- print("Put a chest above me that I can place ores into, and ")
- print(" a chest below me, with plenty of stone in, ")
- print(" which I will help myself to!!")
- print("I output a resstone pulse on my right side to operate the Atomic thing")
- local box = peripheral.wrap("down")
- present = true
- while present do
- turtle.select(8) -- using second half of inventory
- local success, data = turtle.inspect()
- if sucess then
- Print("success")
- if data.name == "minecraft:stone" then
- print("stone")
- redstone.setOutput("back", true)
- sleep(0.2)
- redstone.setOutput("back", false)
- sleep(0.5) --give time a chance!
- elseif not data.name == "minecraft:water" or data.name == "minecraft:flowing_water" or data.name == "minecraft:lava" or data.name == "minecraft:flowing_lav" then
- Print("about to dig in not water or lava")
- while true do turtle.dig() ; turtle.suck() end
- end
- sleep(2) --give stone a chance to form
- Print("sleep(2) ..give stone a chance to form")
- end
- -- if full clear inventory
- turtle.select(16)
- if turtle.getItemCount()>0 then
- Print("Items in slot 16, deciding to clear")
- for i = 3,16 do -- clear slots 3 to 16
- turtle.select(i)
- turtle.dropUp()
- end
- end
- turtle.select(8) -- using second half of inventory
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement