feat: new config format

This reverts commit ecb7ff7c40.
It also integrates the new config somewhat
This commit is contained in:
Emerson Rosen-Jones 2026-01-17 16:34:13 -05:00
parent 2e424a2cda
commit a53c0b7508

View file

@ -15,7 +15,33 @@ local UNPACKING_ADDR = ""
local SLEEP_TIME = 30 local SLEEP_TIME = 30
local NUGGET_RATIO = 63 -- amount of nuggets per craft local NUGGET_RATIO = 63 -- amount of nuggets per craft
local BLOCK_RATIO = 7 -- amount of blocks per craft local BLOCK_RATIO = 7 -- amount of blocks per craft
local ITEM_TYPES = { "iron", "copper", "zinc", "gold", "electrum" } local ITEM_TYPES = {
iron = {
nugget = "minecraft",
ingot = "minecraft",
block = "minecraft",
},
copper = {
nugget = "create",
ingot = "minecraft",
block = "minecraft",
},
zinc = {
nugget = "create",
ingot = "create",
block = "create",
},
gold = {
nugget = "minecraft",
ingot = "minecraft",
block = "minecraft",
},
electrum = {
nugget = "createaddition",
ingot = "createaddition",
block = "createaddition",
},
}
local STACKS = 64 local STACKS = 64
local NUGGETS = 1 local NUGGETS = 1
@ -184,7 +210,7 @@ while true do
-- print_counts(items) -- print_counts(items)
-- 2. either work towards a desired distribution or create more resources -- 2. either work towards a desired distribution or create more resources
for _, item_type in ipairs(ITEM_TYPES) do for item_type, _ in pairs(ITEM_TYPES) do
local current_dist = get_dist(item_type, items) local current_dist = get_dist(item_type, items)
local num = dist_to_num(current_dist) local num = dist_to_num(current_dist)
if num > MIN_NUM then if num > MIN_NUM then