Compare commits
No commits in common. "656c6f88ba39134d173db45d8491581c2fc790b4" and "685a3d47e072f41173a686d18fe4ede6ceaa932f" have entirely different histories.
656c6f88ba
...
685a3d47e0
1 changed files with 16 additions and 22 deletions
|
|
@ -12,9 +12,6 @@ local EXPORT_ADDR = "Output"
|
||||||
-- amount to keep in EXPORT_STORAGE
|
-- amount to keep in EXPORT_STORAGE
|
||||||
local KEEP_STOCKED = {
|
local KEEP_STOCKED = {
|
||||||
["minecraft:iron_nugget"] = 4 * 64,
|
["minecraft:iron_nugget"] = 4 * 64,
|
||||||
["minecraft:gold_nugget"] = 4 * 64,
|
|
||||||
["create:zinc_nugget"] = 4 * 64,
|
|
||||||
["create:copper_nugget"] = 4 * 64,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local GLOBAL_LIMS = {
|
local GLOBAL_LIMS = {
|
||||||
|
|
@ -26,39 +23,36 @@ local LIMIT_EXCEPTIONS = {}
|
||||||
|
|
||||||
local CRUSHABLE = {
|
local CRUSHABLE = {
|
||||||
"create:crimsite",
|
"create:crimsite",
|
||||||
"create:asurine",
|
|
||||||
"create:veridium",
|
|
||||||
"create:ochrum",
|
|
||||||
}
|
}
|
||||||
local WASHABLE = {
|
local WASHABLE = {
|
||||||
}
|
}
|
||||||
local MELTABLE = {
|
local MELTABLE = {
|
||||||
"create:crushed_raw_iron",
|
"create:crushed_raw_iron",
|
||||||
"create:crushed_raw_zinc",
|
|
||||||
"create:crushed_raw_gold",
|
|
||||||
"create:crushed_raw_copper",
|
|
||||||
}
|
}
|
||||||
local RECIPES = {
|
local RECIPES = {
|
||||||
["minecraft:iron_nugget"] = {
|
["minecraft:iron_nugget"] = {
|
||||||
{"minecraft:iron_nugget", 60},
|
{"create:crimsite", 60},
|
||||||
{"minecraft:gravel", 24},
|
{"minecraft:gravel", 24},
|
||||||
},
|
},
|
||||||
["minecraft:gold_nugget"] = {
|
|
||||||
{"minecraft:gold_nugget", 64},
|
|
||||||
{"minecraft:gravel", 64},
|
|
||||||
},
|
|
||||||
["create:zinc_nugget"] = {
|
|
||||||
{"create:zinc_nugget", 64},
|
|
||||||
{"minecraft:gravel", 32},
|
|
||||||
},
|
|
||||||
["create:copper_nugget"] = {
|
|
||||||
{"create:copper_nugget", 63},
|
|
||||||
{"minecraft:gravel", 18},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local SLEEP_T = 20
|
local SLEEP_T = 20
|
||||||
|
|
||||||
|
-- logic: keep a certain amount of certain items in stock in STOCK via
|
||||||
|
-- RECIPES. while the number is over a certain amount, excess can be used
|
||||||
|
-- to keep items in stock in EXPORT_STORAGE
|
||||||
|
-- e.g. lower_lim is 100, upper_lim is 200. export_amt is 100
|
||||||
|
-- when below 100, go into recipe mode, producing the item
|
||||||
|
-- when above 200, go into export mode, sending items to export until there are
|
||||||
|
-- 100 in EXPORT_STORAGE or until at or below 100 in stock (lower_lim)
|
||||||
|
-- i.e. mode = match (stock_amt, current_mode) {
|
||||||
|
-- (x, _), x <= lower_lim = RecipeMode;
|
||||||
|
-- (x, _), x >= upper_lim = ExportMode;
|
||||||
|
-- (_, curr) = curr;
|
||||||
|
-- }
|
||||||
|
-- in order to push the other products through the system, they will be checked
|
||||||
|
-- and sent if enough of them accrue
|
||||||
|
|
||||||
function createModes (items)
|
function createModes (items)
|
||||||
local result = {}
|
local result = {}
|
||||||
for item, _ in pairs(items) do
|
for item, _ in pairs(items) do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue