Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n1 = peripheral.wrap("nuclear_reactor_1")
- n2 = peripheral.wrap("nuclear_reactor_2")
- n3 = peripheral.wrap("nuclear_reactor_3")
- local slots = {}
- slots[1] = 1
- slots[2] = 2
- slots[3] = 10
- slots[4] = 11
- slots[5] = 19
- slots[6] = 20
- slots[7] = 28
- function fuelRod()
- for i,j in pairs(slots) do
- print("Checking...")
- if not n1.getStackInSlot(j) then
- n1.pullItemIntoSlot("down", 1, 1, j)
- print("Refill: "..tostring(j))
- end
- if not n2.getStackInSlot(j) then
- n2.pullItemIntoSlot("down", 1, 1, j)
- print("Refill: "..tostring(j))
- end
- if not n3.getStackInSlot(j) then
- n3.pullItemIntoSlot("down", 1, 1, j)
- print("Refill: "..tostring(j))
- end
- end
- end
- while true do
- fuelRod()
- sleep(600)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement