Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reactor = peripheral.wrap("left")
- chest = peripheral.wrap("right")
- while rs.getInput("bottom") do
- local i = 1
- rs.setOutput("top", true)
- repeat
- print("Checking slot: ")
- sleep(1)
- print(i)
- if reactor.getStackInSlot(i)~=nill then
- if reactor.getStackInSlot(i).name=="reactorUraniumSimple" then
- print("FILLED")
- sleep(1)
- end
- if reactor.getStackInSlot(i).name=="reactorUraniumSimpledepleted" then
- print("DEPLETED")
- sleep(1)
- print("REMOVING DEPLETED")
- reactor.pushItem("down",i)
- sleep(1)
- print("REPLACING WITH FRESH CELL")
- reactor.pullItem("up",2,1,i)
- sleep(1)
- end
- end
- if reactor.getStackInSlot(i)==nill then
- print("EMPTY")
- sleep(1)
- print("REPLACING WITH FRESH CELL")
- reactor.pullItem("up",2,1,i)
- sleep(1)
- end
- i = i + 2
- until i == 55
- end
- rs.setOutput("top",false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement