From ac9db6228538b25753a602290d70b86ef810753e Mon Sep 17 00:00:00 2001 From: Poseidon13856 Date: Mon, 30 Dec 2024 15:35:11 +0100 Subject: [PATCH 1/2] Soybean fix and SushiGoCrafting Tags Soysauce, soymilk and silken tofu are now craftable from soybeans instead of onions. Also some SushiGoCrafting crops now have the same tags as crops from other mods. --- .../mods/Minecolonies/Recipes.js | 2 +- .../mods/SushiGoCrafting/tags.js | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 kubejs/server_scripts/mods/SushiGoCrafting/tags.js diff --git a/kubejs/server_scripts/mods/Minecolonies/Recipes.js b/kubejs/server_scripts/mods/Minecolonies/Recipes.js index f36fe14..1cc99e3 100644 --- a/kubejs/server_scripts/mods/Minecolonies/Recipes.js +++ b/kubejs/server_scripts/mods/Minecolonies/Recipes.js @@ -37,7 +37,7 @@ if (Platform.isLoaded('minecolonies')) { //Onion replacement event.replaceInput({ input: 'minecolonies:onion' }, 'minecolonies:onion', '#c:crops/onion' ) //Soybean replacement - event.replaceInput({ input: 'minecolonies:soybean' }, 'minecolonies:soybean', '#c:crops/onion' ) + event.replaceInput({ input: 'minecolonies:soybean' }, 'minecolonies:soybean', '#c:crops/soybean' ) //Tomato replacement event.replaceInput({ input: 'minecolonies:tomato' }, 'minecolonies:tomato', '#c:crops/tomato' ) //Rice replacement diff --git a/kubejs/server_scripts/mods/SushiGoCrafting/tags.js b/kubejs/server_scripts/mods/SushiGoCrafting/tags.js new file mode 100644 index 0000000..2478a26 --- /dev/null +++ b/kubejs/server_scripts/mods/SushiGoCrafting/tags.js @@ -0,0 +1,44 @@ +//This file intended to help SushiGoCrafting crops / items be used in place of other crops / items in recipes, mirroring tags currently applied to crops / items of the same in-game name or intended purpose. +//It's quite possible that many of these tags are redundant somehow +ServerEvents.tags('item', allthemods => { +//Soybean + allthemods.remove('c:crops/soy_bean', 'sushigocrafting:soy_bean') + allthemods.add('c:crops', 'sushigocrafting:soy_bean') + allthemods.add('c:crops/soybean', 'sushigocrafting:soy_bean') + allthemods.add('c:flour_plants/soybean', 'sushigocrafting:soy_bean') + allthemods.add('c:flour_plants', 'sushigocrafting:soy_bean') + allthemods.add('c:grain/soybean', 'sushigocrafting:soy_bean') + allthemods.add('c:grain', 'sushigocrafting:soy_bean') +//Rice + allthemods.add('twilightforest:tiny_bird_tempt_items', 'sushigocrafting:rice') + allthemods.add('minecraft:chicken_food', 'sushigocrafting:rice') + allthemods.add('cookingforblockheads:ingredients', 'sushigocrafting:rice') + allthemods.add('twilightforest:raven_tempt_items', 'sushigocrafting:rice') + allthemods.add('c:crops/grain', 'sushigocrafting:rice') + allthemods.add('minecraft:parrot_food', 'sushigocrafting:rice') + allthemods.add('twilightforest:squirrel_tempt_items', 'sushigocrafting:rice') + allthemods.add('c:animal_foods', 'sushigocrafting:rice') + allthemods.add('c:paper_plants/rice', 'sushigocrafting:rice') + allthemods.add('c:paper_plants', 'sushigocrafting:rice') + allthemods.add('c:protein', 'sushigocrafting:rice') + allthemods.add('c:flour_plants', 'sushigocrafting:rice') + allthemods.add('c:carbs/rice', 'sushigocrafting:rice') + allthemods.add('c:flour_plants/rice', 'sushigocrafting:rice') + allthemods.add('c:grain/rice', 'sushigocrafting:rice') + allthemods.add('c:carbs', 'sushigocrafting:rice') + allthemods.add('c:vinegar_ingredients', 'sushigocrafting:rice') + allthemods.add('c:grain', 'sushigocrafting:rice') + allthemods.add('c:protein/rice', 'sushigocrafting:rice') +//Avocado + allthemods.add('c:egg', 'sushigocrafting:avocado') + allthemods.add('c:egg/avocado', 'sushigocrafting:avocado') + allthemods.add('c:vegetables', 'sushigocrafting:avocado') + allthemods.add('c:vegetables/avocado', 'sushigocrafting:avocado') + allthemods.add('minecolonies:blacksmith_ingredient_excluded', 'sushigocrafting:avocado') + allthemods.add('minecolonies:compostables', 'sushigocrafting:avocado') +//Cucumber + allthemods.add('c:vegetables', 'sushigocrafting:cucumber') + allthemods.add('c:vegetables/cucumber', 'sushigocrafting:cucumber') + allthemods.add('minecolonies:compostables', 'sushigocrafting:cucumber') + allthemods.add('c:salad_ingredients/cucumber', 'sushigocrafting:cucumber') +}) \ No newline at end of file From 8885b4a70877f071d96cbb7da2f8b9b2c598de94 Mon Sep 17 00:00:00 2001 From: Poseidon13856 Date: Wed, 1 Jan 2025 01:15:58 +0100 Subject: [PATCH 2/2] Update tags.js Initially removed the crops:soy_bean tag from the soy bean which made it impossible to use the soybean for some recipes. --- kubejs/server_scripts/mods/SushiGoCrafting/tags.js | 1 - 1 file changed, 1 deletion(-) diff --git a/kubejs/server_scripts/mods/SushiGoCrafting/tags.js b/kubejs/server_scripts/mods/SushiGoCrafting/tags.js index 2478a26..4cd3fca 100644 --- a/kubejs/server_scripts/mods/SushiGoCrafting/tags.js +++ b/kubejs/server_scripts/mods/SushiGoCrafting/tags.js @@ -2,7 +2,6 @@ //It's quite possible that many of these tags are redundant somehow ServerEvents.tags('item', allthemods => { //Soybean - allthemods.remove('c:crops/soy_bean', 'sushigocrafting:soy_bean') allthemods.add('c:crops', 'sushigocrafting:soy_bean') allthemods.add('c:crops/soybean', 'sushigocrafting:soy_bean') allthemods.add('c:flour_plants/soybean', 'sushigocrafting:soy_bean')