From 5274fc65f5e370e019193b5b0f9578be010483da Mon Sep 17 00:00:00 2001 From: Jason Nash <47706293+Nashy1232@users.noreply.github.com> Date: Mon, 15 Sep 2025 16:04:24 +0100 Subject: [PATCH] Jute net to be made with Flax (#1833) * #1815 - Jute net to be made with Flax * Revert "#1815 - Jute net to be made with Flax" This reverts commit 60465d798d25b8b76bd2a617fe0a83abf758c0e0. * #1815 - Jute net to be made with Flax this time with the correct file * Using `id` not `output` * created global list of materials use for equipment * updated to use `global.EQUIPMENT_METALS` * updated horse armor to use burlap --- kubejs/server_scripts/tfc/recipes.js | 9 +++++++++ .../server_scripts/tfc_grooming_station/recipes.js | 13 +------------ kubejs/startup_scripts/tfc/constants.js | 12 ++++++++++++ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/kubejs/server_scripts/tfc/recipes.js b/kubejs/server_scripts/tfc/recipes.js index c6f3c8c03..894afb6ec 100644 --- a/kubejs/server_scripts/tfc/recipes.js +++ b/kubejs/server_scripts/tfc/recipes.js @@ -330,4 +330,13 @@ const registerTFCRecipes = (event) => { .inputFluid(Fluid.of('minecraft:water', 250)) .outputFluid(Fluid.of('tfc:salt_water', 250)) .id('tfg:barrel/water_to_salt_water_tfc') + + // jute net -> burlap net + event.replaceInput({ id: 'tfc:crafting/jute_net'}, 'tfc:jute_fiber', '#tfg:burlap_fiber') + + // horse armor to use burlap + global.TFC_EQUIPMENT_METALS.forEach(material => { + event.replaceInput({ id: `tfc:crafting/${material}_horse_armor`}, `tfc:jute_fiber`, `#tfg:burlap_fiber`) + }) + } diff --git a/kubejs/server_scripts/tfc_grooming_station/recipes.js b/kubejs/server_scripts/tfc_grooming_station/recipes.js index 1101c2af7..df6eca7f0 100644 --- a/kubejs/server_scripts/tfc_grooming_station/recipes.js +++ b/kubejs/server_scripts/tfc_grooming_station/recipes.js @@ -2,19 +2,8 @@ "use strict"; const registerTFCGroomingStationRecipes = (event) => { - const materials = [ - 'copper', - 'bismuth_bronze', - 'bronze', - 'black_bronze', - 'wrought_iron', - 'steel', - 'black_steel', - 'red_steel', - 'blue_steel' - ] - materials.forEach(material => { + global.TFC_EQUIPMENT_METALS.forEach(material => { event.shaped(`tfcgroomer:${material}_grooming_station`, [ 'ABA', 'AAA', diff --git a/kubejs/startup_scripts/tfc/constants.js b/kubejs/startup_scripts/tfc/constants.js index baa62764e..afdef90f9 100644 --- a/kubejs/startup_scripts/tfc/constants.js +++ b/kubejs/startup_scripts/tfc/constants.js @@ -1151,3 +1151,15 @@ global.calcAmountOfMetalProcessed = function (defaultAmount, percents) { const value = defaultAmount * (percentPerItem / 100); return value % 2 === 0 ? value : Math.round(value) - 1; }; + +global.TFC_EQUIPMENT_METALS = /** @type {const} */ ([ + "copper", + "bismuth_bronze", + "bronze", + "black_bronze", + "wrought_iron", + "steel", + "black_steel", + "red_steel", + "blue_steel" +]); \ No newline at end of file