feat: new config format
This reverts commit ecb7ff7c40.
It also integrates the new config somewhat
This commit is contained in:
parent
2e424a2cda
commit
a53c0b7508
1 changed files with 28 additions and 2 deletions
|
|
@ -15,7 +15,33 @@ local UNPACKING_ADDR = ""
|
|||
local SLEEP_TIME = 30
|
||||
local NUGGET_RATIO = 63 -- amount of nuggets 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 NUGGETS = 1
|
||||
|
|
@ -184,7 +210,7 @@ while true do
|
|||
-- print_counts(items)
|
||||
|
||||
-- 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 num = dist_to_num(current_dist)
|
||||
if num > MIN_NUM then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue