ecco7777

CC Smeltery Liquid Selector

Jan 17th, 2026
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. s=peripheral.wrap("left") --smeltery side
  2. exportLiquidName="liquid_pokefennium" --name
  3. args={...}
  4. c=s.getController()
  5. while true do
  6.     l=c.getMolten()
  7.     if l~=nil then
  8.         if l[1].name~=exportLiquidName then
  9.             select=nil
  10.             for i=1,#l do
  11.                 if l[i].name==exportLiquidName then
  12.                     select=i
  13.                 end
  14.             end
  15.             if select then
  16.                 c.selectMolten(select)
  17.             end
  18.         end
  19.     end
  20.     sleep(5)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment