From d68d7993fa95566dcbf92af53ef5cf7ddfb5bd64 Mon Sep 17 00:00:00 2001 From: Emerson Rosen-Jones Date: Sat, 3 Jan 2026 18:24:06 -0500 Subject: [PATCH] feat: add ability to limit amount of crafts at one time --- oregen-manager.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/oregen-manager.lua b/oregen-manager.lua index d8faded..1b5666b 100644 --- a/oregen-manager.lua +++ b/oregen-manager.lua @@ -68,6 +68,7 @@ local RECIPES = { {"minecraft:cobblestone", 2 * 64}, }, addr = CRUSHER_ADDR, + limit = 6, }, ["minecraft:iron_nugget"] = { ingredients = { @@ -115,6 +116,7 @@ local RECIPES = { {"minecraft:gravel", 2 * 64}, }, addr = CRUSHER_ADDR, + limit = 4, }, } @@ -209,6 +211,9 @@ end function craftRecipe (ticker, recipe, count) if count == nil then count = 1 end + if recipe.limit ~= nil then + count = math.min(count, recipe.limit) + end local createRequest createRequest = function (recipe, i) if i == nil then i = 1 end