Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local vacuum = peripheral.wrap("right")
- local altar = peripheral.wrap("bloodmagic:altar_0")
- function dupa()
- while true do
- for i=1,9 do
- vacuum.pushItems("north", i, 64)
- end
- sleep(0)
- end
- end
- function enableRitual()
- while true do
- local tank = altar.getTanks()[1]
- if (tank.amount > tank.capacity*0.9) then
- rs.setOutput("left", true)
- rs.setOutput("top", true)
- print("Altar full, enabling masher")
- else
- rs.setOutput("left", false)
- rs.setOutput("top", false)
- print("Altar below threshold, disabling masher")
- end
- sleep(5)
- end
- end
- parallel.waitForAny(dupa, enableRitual)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement