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 success 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 data.name == "minecraft:water" then print("water")
- elseif data.name == "minecraft:flowing_water" then print("flowing_water")
- elseif data.name == "minecraft:lava" then print("lava")
- elseif data.name == "minecraft:flowing_lav" then print("flowing_lava")
- else
- 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