Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fluids0 = {"Rocket Fuel", "Liquid xp", "Life Essence", "Bedrockium", "Primal Mana", "Draconium", "Destabilised Redstone", "Blazing Pyrotheum", "UU Matter"}
- function set(col)
- redstone.setBundledOutput("right", col)
- end
- function rset(col)
- redstone.setBundledOutput("right", colours.subtract(redstone.getBundledOutput("right"), col))
- end
- function test(col0)
- if redstone.testBundledInput("back", col0) then
- return false
- else
- return true
- end
- end
- function fill(fluid)
- set(fluid)
- while test(fluid) do
- sleep(1)
- end
- rset(fluid)
- end
- ------------------------------------------------
- while 1 do
- for i = 0, 8, 1 do
- if test(2^i) then
- print("Filling " .. fluids0[i+1])
- fill(2^i)
- end
- end
- sleep(1)
- end
- -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement