From c8af187dcb9253ee354fbd86e24cbccf2f91e54a Mon Sep 17 00:00:00 2001 From: Nebby <78170922+Nebby1999@users.noreply.github.com> Date: Mon, 9 Feb 2026 15:14:24 -0300 Subject: [PATCH] Add Bags for Universal Composts (#3016) * Add universal composts * Update changelog --- CHANGELOG.md | 1 + .../quests/chapters/queststfc_tips.snbt | 51 ++++++++++++++++++ .../item/universal_compost_browns_bag.png | Bin 0 -> 483 bytes .../item/universal_compost_greens_bag.png | Bin 0 -> 471 bytes kubejs/server_scripts/tfg/data.js | 4 ++ .../tfg/primitive/recipes.compost.js | 26 +++++++++ .../tfg/primitive/items.primitive.js | 11 ++++ 7 files changed, 93 insertions(+) create mode 100644 kubejs/assets/tfg/textures/item/universal_compost_browns_bag.png create mode 100644 kubejs/assets/tfg/textures/item/universal_compost_greens_bag.png diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e091c795..2a359a5e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ If you missed it, [0.11.19](https://github.com/TerraFirmaGreg-Team/Modpack-Moder - Added soybean + sea water to soy mixture recipe (#2984) @Redeix - Added optional [Chimes](https://www.curseforge.com/minecraft/mc-mods/chimes) compat. (#2973) @TreyR9 - Added optional [Create: Sound of Steam](https://www.curseforge.com/minecraft/mc-mods/create-sound-of-steam) compat (#2324) @samtsa +- Added Universal Bags of Composts (#3016) @Nebby1999 ### Bug fixes - Fix the Empty Rod T1 that was uncraftable (#3008) @TomPlop - Fixed fission fuel rods looking for the wrong items to recycle @TomPlop diff --git a/config/ftbquests/quests/chapters/queststfc_tips.snbt b/config/ftbquests/quests/chapters/queststfc_tips.snbt index 9a5e01028..01852da68 100644 --- a/config/ftbquests/quests/chapters/queststfc_tips.snbt +++ b/config/ftbquests/quests/chapters/queststfc_tips.snbt @@ -2197,6 +2197,57 @@ x: 0.0d y: -12.0d } + { + dependencies: ["2EFB241490502DB3"] + description: ["{quests.tfg_tips.composter.desc}"] + guide_page: "tfc:field_guide tfc:mechanics/composter" + id: "264D138DFFE13BD0" + subtitle: "{quests.tfg_tips.composter.subtitle}" + tasks: [{ + id: "2EE61FD71FE330D3" + item: "tfc:composter" + type: "item" + }] + title: "{quests.tfg_tips.composter.title}" + x: 2.0d + y: -4.0d + } + { + dependencies: ["264D138DFFE13BD0"] + description: ["{quests.tfg_tips.universal_compost.desc}"] + id: "13E4AE4F46A1A1A0" + subtitle: "{quests.tfg_tips.universal_compost.subtitle}" + tasks: [ + { + id: "6F3BD81EAD7CC109" + item: { + Count: 1 + id: "ftbfiltersystem:smart_filter" + tag: { + "ftbfiltersystem:filter": "or(item(tfg:universal_compost_browns)item(tfg:universal_compost_greens))" + } + } + title: "{quests.tfg_tips.universal_compost.task.1}" + type: "item" + } + { + id: "787E7A402B3162B5" + item: { + Count: 1 + id: "ftbfiltersystem:smart_filter" + tag: { + "ftbfiltersystem:filter": "or(item(tfg:universal_compost_browns_bag)item(tfg:universal_compost_greens_bag))" + } + } + optional_task: true + title: "{quests.tfg_tips.universal_compost.task.2}" + type: "item" + } + ] + title: "{quests.tfg_tips.universal_compost.title}" + x: 4.0d + y: -4.0d + } ] subtitle: ["{quests.tfg_tips.subtitle}"] title: "{quests.tfg_tips}" diff --git a/kubejs/assets/tfg/textures/item/universal_compost_browns_bag.png b/kubejs/assets/tfg/textures/item/universal_compost_browns_bag.png new file mode 100644 index 0000000000000000000000000000000000000000..b18d34ffdf4f9e5c550f7a368fad23bfa567fa87 GIT binary patch literal 483 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s77>k44ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>-GSILr3t<6;4Z51+!W zGI5oed1bwjTl1IiN7nX}vbXlw#p}!DIsLW0a@o0e)>NiRHSxAePbU-^+OuC!+p%}& z@l8PtZ`S=kbA|C6zfqucl*49grQANx*^gJ0ZQ1Lz*;?tE+An5ij|=a;Yl=lrd+A+w z+BswSLsk#VB@bEeSUxw|({Q?5n8EH|?6YqU<{qJ!j|FY*yZy2CLT=*0bN{$CLth); h)|j@J`RNL!zl=^Ioeq85Zh|6)!PC{xWt~$(69A3hy1)Pc literal 0 HcmV?d00001 diff --git a/kubejs/assets/tfg/textures/item/universal_compost_greens_bag.png b/kubejs/assets/tfg/textures/item/universal_compost_greens_bag.png new file mode 100644 index 0000000000000000000000000000000000000000..2306b1a31a5bd752b0ecb7c7e3505bc7a2e199b0 GIT binary patch literal 471 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s77>k44ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>sO#zC7-DgH z>g0v~haDu2-p~ERD9qE?GGT&}gOln>qw`mCbd6PtCC=QLwCv=|o2wp9S36?0$fvc zfDf(@?W|r&eBEzQee~~F$u_@eS>+VfyxqBb>g$r9?UT(@@-N=-E;IGJ%M=0o{T30a z&wR_|!*9D}y~{iPk==PM`!Cmblk?`B6Hl;FK635Q#|8VvjppiW<*FRt$NV@@^DiUY YpGgz%?d$huU|?YIboFyt=akR{0FVy5nE(I) literal 0 HcmV?d00001 diff --git a/kubejs/server_scripts/tfg/data.js b/kubejs/server_scripts/tfg/data.js index 3dc19fcf5..40b7c076c 100644 --- a/kubejs/server_scripts/tfg/data.js +++ b/kubejs/server_scripts/tfg/data.js @@ -338,6 +338,10 @@ function registerTFGItemSize(event) { "medium", "Molds" ) + + //Universal Compost Bags + event.itemSize("tfg:universal_compost_browns_bag", "tiny", "medium") + event.itemSize("tfg:universal_compost_greens_bag", "tiny", "medium") } //#endregion diff --git a/kubejs/server_scripts/tfg/primitive/recipes.compost.js b/kubejs/server_scripts/tfg/primitive/recipes.compost.js index 80f255cd3..5c82b5541 100644 --- a/kubejs/server_scripts/tfg/primitive/recipes.compost.js +++ b/kubejs/server_scripts/tfg/primitive/recipes.compost.js @@ -1,5 +1,9 @@ "use strict"; +/** + * + * @param {Internal.RecipesEventJS} event + */ function registerTFGCompostRecipes(event) { //#region Fertiliser event.recipes.gtceu.mixer('tfg:fertilizer') @@ -208,4 +212,26 @@ function registerTFGCompostRecipes(event) { .itemOutputs(Item.of('tfg:universal_compost_browns', 4)) .duration(20) .EUt(8) + + //Universal Brown Compost Bag + event.shapeless(Item.of('tfg:universal_compost_browns_bag', 1), + [ + "4x tfg:universal_compost_browns" + ]).id('tfg:shapeless/universal_compost_browns_bag') + + event.shapeless(Item.of('tfg:universal_compost_browns', 4), + [ + "tfg:universal_compost_browns_bag" + ]).id("tfg:shapeless/universal_compost_browns_from_bag") + + //Universal Green Compost Bag + event.shapeless(Item.of('tfg:universal_compost_greens_bag', 1), + [ + "4x tfg:universal_compost_greens" + ]).id('tfg:shapeless/universal_compost_greens_bag') + + event.shapeless(Item.of('tfg:universal_compost_greens', 4), + [ + "tfg:universal_compost_greens_bag" + ]).id("tfg:shapeless/universal_compost_greens_from_bag") } diff --git a/kubejs/startup_scripts/tfg/primitive/items.primitive.js b/kubejs/startup_scripts/tfg/primitive/items.primitive.js index fcc217dd5..dc917114e 100644 --- a/kubejs/startup_scripts/tfg/primitive/items.primitive.js +++ b/kubejs/startup_scripts/tfg/primitive/items.primitive.js @@ -101,9 +101,20 @@ function registerTFGPrimitiveItems(event) { // Universal compost items event.create('tfg:universal_compost_browns') .tag('tfc:compost_browns_low') + .translationKey('item.tfg.universal_compost_browns') event.create('tfg:universal_compost_greens') .tag('tfc:compost_greens_low') + .translationKey('item.tfg.universal_compost_greens') + + // Universal compost bag items + event.create('tfg:universal_compost_browns_bag') + .tag('tfc:compost_browns_high') + .translationKey('item.tfg.universal_compost_browns_bag') + + event.create('tfg:universal_compost_greens_bag') + .tag('tfc:compost_greens_high') + .translationKey('item.tfg.universal_compost_greens_bag') // Etched Diamond Etching Tip event.create('tfg:etching_diamond_tip')