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
This commit is contained in:
Jason Nash 2025-09-15 16:04:24 +01:00 committed by GitHub
parent 024440e645
commit 5274fc65f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 12 deletions

View file

@ -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`)
})
}

View file

@ -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',

View file

@ -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"
]);