feat: add collection hoppers and interval configuration for improved item management
This commit is contained in:
@@ -53,6 +53,10 @@ C.COMPOST_RESERVE = 128
|
|||||||
C.COMPOST_DROPPER = "minecraft:dropper_10"
|
C.COMPOST_DROPPER = "minecraft:dropper_10"
|
||||||
C.COMPOST_HOPPER = "minecraft:hopper_0"
|
C.COMPOST_HOPPER = "minecraft:hopper_0"
|
||||||
|
|
||||||
|
-- Collection hoppers: periodically emptied into storage (e.g. egg spawner, mob farm)
|
||||||
|
C.COLLECTION_HOPPERS = { "minecraft:hopper_1" }
|
||||||
|
C.COLLECTION_INTERVAL = 3 -- seconds between hopper collection
|
||||||
|
|
||||||
-- Stock limits / auto-discard (overridable via config file)
|
-- Stock limits / auto-discard (overridable via config file)
|
||||||
C.TRASH_DROPPERS = { -- droppers facing lava/void for destroying excess items
|
C.TRASH_DROPPERS = { -- droppers facing lava/void for destroying excess items
|
||||||
"minecraft:dropper_11",
|
"minecraft:dropper_11",
|
||||||
@@ -129,6 +133,8 @@ function C.loadConfig()
|
|||||||
if cfg.compostReserve then C.COMPOST_RESERVE = cfg.compostReserve end
|
if cfg.compostReserve then C.COMPOST_RESERVE = cfg.compostReserve end
|
||||||
if cfg.compostDropper then C.COMPOST_DROPPER = cfg.compostDropper end
|
if cfg.compostDropper then C.COMPOST_DROPPER = cfg.compostDropper end
|
||||||
if cfg.compostHopper then C.COMPOST_HOPPER = cfg.compostHopper end
|
if cfg.compostHopper then C.COMPOST_HOPPER = cfg.compostHopper end
|
||||||
|
if cfg.collectionHoppers then C.COLLECTION_HOPPERS = cfg.collectionHoppers end
|
||||||
|
if cfg.collectionInterval then C.COLLECTION_INTERVAL = cfg.collectionInterval end
|
||||||
if cfg.trashDroppers then C.TRASH_DROPPERS = cfg.trashDroppers end
|
if cfg.trashDroppers then C.TRASH_DROPPERS = cfg.trashDroppers end
|
||||||
if cfg.discardInterval then C.DISCARD_INTERVAL = cfg.discardInterval end
|
if cfg.discardInterval then C.DISCARD_INTERVAL = cfg.discardInterval end
|
||||||
if cfg.autoCraftInterval then C.AUTO_CRAFT_INTERVAL = cfg.autoCraftInterval end
|
if cfg.autoCraftInterval then C.AUTO_CRAFT_INTERVAL = cfg.autoCraftInterval end
|
||||||
|
|||||||
Reference in New Issue
Block a user