MechWipf icon

Task Manager config

MechWipf | PRO | 08/01/26 05:54:02 PM UTC | 0 ⭐ | 18843 👁️ | Never ⏰ | []
Lua |

1.32 KB

|

None

|

0 👍

/

0 👎

local getName = peripheral.getName
local find = peripheral.find
local getType = peripheral.getType
 
local function contains(tbl, item)
  for _, v in pairs(tbl) do
    if v == item then
      return true
    end
  end
 
  return false
end
 
local conf = {}
 
conf.tasks = {
  smelter = {
    {
      id = "smelter",
      drain = getName(find("productivemetalworks:foundry_drain")),
      casting_ingot = (function()
        local p = { find("productivemetalworks:casting") }
        local list = {}
        for _, v in pairs(p) do
          list[#list + 1] = getName(v)
        end
        return list
      end)(),
      fluid_cache = (function()
        local function filter(_, wrapped)
          local types = { getType(wrapped) }
          return
              not (contains(types, "productivemetalworks:foundry_drain")
                or contains(types, "productivemetalworks:casting"))
        end
 
        local p = { find("fluid_storage", filter) }
        local list = {}
        for _, v in pairs(p) do
          list[#list + 1] = getName(v)
        end
        return list
      end)()
    }
  },
  smelter_monitor = {
    {
      id = "smelter_monitor",
      smelter_id = "smelter",
      monitor = getName(find("monitor")),
      ["monitor.textScale"] = 0.5
    }
  }
}
 
return conf
 

Comments

  • polliocre icon
    08/09/26 04:12:59 PM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Did someone already use this flash USDT method? I tested it last night and the first swap was instant but now I'm waiting for the 24h cooldown.
     Here's the guide I followed: pastebin.com/MuP7BqCy
     Good luck, hope it works for you too