Replace bronze drums & crates in recipes with new tags containing all 3 bronze drums & crates (#2328)

* Add crates and drums to bronze tag

Add bronze, bismuth bronze, and black bronze crates & drums to their own tag

* Replace bronze crates & drums with the new tag

Replaces all the bronze crates and drum with a tag containing the other 2 bronzes as well.

* Add recipe filtering to replaceInput

Add input-based recipe filtering for the replaceInput for bronze drums & crates. Also add recipe filtering for the recipes that use the moss tag.

Signed-off-by: Jeuv <73312791+Jeuvke@users.noreply.github.com>

---------

Signed-off-by: Jeuv <73312791+Jeuvke@users.noreply.github.com>
Co-authored-by: Redeix <brayden.j.m.ford@gmail.com>
This commit is contained in:
Jeuv 2025-12-06 02:57:48 +01:00 committed by GitHub
parent 34533fb9cd
commit c855a7cac9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 2 deletions

View file

@ -8,7 +8,7 @@
function registerTFGMiscellaneousRecipes(event) {
//Moss
event.replaceInput({}, 'minecraft:vine', '#tfc:moss')
event.replaceInput({input: 'minecraft:vine'}, 'minecraft:vine', '#tfc:moss')
event.shapeless('1x minecraft:moss_block', [
'#tfc:dirt',
@ -95,7 +95,12 @@ function registerTFGMiscellaneousRecipes(event) {
.itemOutputs('tfg:wireless_card')
.duration(300)
.EUt(GTValues.VA[GTValues.EV])
// Replace bronze drums & crates with a tag containing the 3 different bronzes
// NOTE: A better way to do this would be to overwrite GTCraftingComponents.CRATE and GTCraftingComponents.DRUM in crafting_components.js, but tags seem to get populated after the recipes get registed, so...
event.replaceInput({input: 'gtceu:bronze_crate'}, 'gtceu:bronze_crate', '#tfg:any_bronze_crate')
event.replaceInput({input: 'gtceu:bronze_drum'}, 'gtceu:bronze_drum', '#tfg:any_bronze_drum')
//#region RNR Paving Cart
const rubber_types = [
{fluid:'styrene_butadiene_rubber', quantity: 144},

View file

@ -30,6 +30,14 @@ const registerTFGItemTags = (event) => {
event.add('tfg:platinum_ore_group', 'gtceu:purified_cooperite_ore')
event.add('tfg:platinum_ore_group', 'gtceu:purified_chalcocite_ore')
//Bronze Crates & Drums
event.add('tfg:any_bronze_crate', 'gtceu:bronze_crate')
event.add('tfg:any_bronze_crate', 'gtceu:black_bronze_crate')
event.add('tfg:any_bronze_crate', 'gtceu:bismuth_bronze_crate')
event.add('tfg:any_bronze_drum', 'gtceu:bronze_drum')
event.add('tfg:any_bronze_drum', 'gtceu:black_bronze_drum')
event.add('tfg:any_bronze_drum', 'gtceu:bismuth_bronze_drum')
//#region Tools
event.add('tfg:empty_dna_syringes', 'tfg:empty_dna_syringe')
event.add('tfg:empty_dna_syringes', 'tfg:clean_dna_syringe')