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 plenty of power for the AR as well)
- print("I operate a Lens of the Miner on an Atomic Reconstructor ")
- print("Put a chest above me that I can place ores into, and ")
- Print("Set up lava to flow on top of flowing water to generate a stone block in front of me.")
- print("I output a redstone pulse on my back to operate the Atomic thing")
- print("the AR and its LotMiner can/should be right next to where the stone forms, so water doesn't flow in the ray's path")
- 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")
- turtle.dig() ; turtle.suck()
- end
- sleep(1.2) --give stone a chance to form ESSENTIAL I LOST MY WATER WHEN TOO SHORT
- 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