Move the cloche recipes behind a mod loaded condition

This commit is contained in:
Mrbysco 2024-10-31 20:17:13 +01:00
parent e3dd3290c8
commit 645dbb2dea
6 changed files with 35 additions and 9 deletions

View file

@ -1,7 +1,7 @@
// 1.21.1 2024-10-24T15:58:31.7869255 Misc Recipes // 1.21.1 2024-10-31T20:16:27.2164769 Misc Recipes
426ef39628bee0e5fa5478e8490b9661a302bc5b data/actuallyadditions/recipe/compat/cloche_canola.json f323dfc741cadd21229c3137c992a5e827415a33 data/actuallyadditions/recipe/compat/cloche_canola.json
86384eda7472a193965aec7c58a1e97178bd901b data/actuallyadditions/recipe/compat/cloche_coffee.json 08a866bbe37e01cf74c466944a0ce0c1c04aacb0 data/actuallyadditions/recipe/compat/cloche_coffee.json
f60e89093717ab73b5ec4760a4a2a2502ad92b21 data/actuallyadditions/recipe/compat/cloche_flax.json 061b7482517f3dae5f427e723e579dfc14c0b283 data/actuallyadditions/recipe/compat/cloche_flax.json
c2a9c355543d601b810a4ffc581bdeaf00077358 data/actuallyadditions/recipe/compat/cloche_rice.json 466e21e14118dfd3f6db2bff51ebd8cc359e6979 data/actuallyadditions/recipe/compat/cloche_rice.json
11e0dd08e85ab0f073a06a447be5e57949849180 data/actuallyadditions/recipe/fermenting/refined_canola.json 11e0dd08e85ab0f073a06a447be5e57949849180 data/actuallyadditions/recipe/fermenting/refined_canola.json
3b226a682d7de7ffff4b91818057c740b4e7bcd7 data/actuallyadditions/recipe/pressing/canola.json 3b226a682d7de7ffff4b91818057c740b4e7bcd7 data/actuallyadditions/recipe/pressing/canola.json

View file

@ -1,4 +1,10 @@
{ {
"neoforge:conditions": [
{
"type": "neoforge:mod_loaded",
"modid": "immersiveengineering"
}
],
"type": "immersiveengineering:cloche", "type": "immersiveengineering:cloche",
"input": { "input": {
"item": "actuallyadditions:canola_seeds" "item": "actuallyadditions:canola_seeds"

View file

@ -1,4 +1,10 @@
{ {
"neoforge:conditions": [
{
"type": "neoforge:mod_loaded",
"modid": "immersiveengineering"
}
],
"type": "immersiveengineering:cloche", "type": "immersiveengineering:cloche",
"input": { "input": {
"item": "actuallyadditions:coffee_beans" "item": "actuallyadditions:coffee_beans"

View file

@ -1,4 +1,10 @@
{ {
"neoforge:conditions": [
{
"type": "neoforge:mod_loaded",
"modid": "immersiveengineering"
}
],
"type": "immersiveengineering:cloche", "type": "immersiveengineering:cloche",
"input": { "input": {
"item": "actuallyadditions:flax_seeds" "item": "actuallyadditions:flax_seeds"

View file

@ -1,4 +1,10 @@
{ {
"neoforge:conditions": [
{
"type": "neoforge:mod_loaded",
"modid": "immersiveengineering"
}
],
"type": "immersiveengineering:cloche", "type": "immersiveengineering:cloche",
"input": { "input": {
"item": "actuallyadditions:rice_seeds" "item": "actuallyadditions:rice_seeds"

View file

@ -9,9 +9,11 @@ import net.minecraft.data.recipes.RecipeOutput;
import net.minecraft.resources.ResourceLocation; import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.ItemTags; import net.minecraft.tags.ItemTags;
import net.minecraft.world.item.Items; import net.minecraft.world.item.Items;
import net.neoforged.neoforge.common.conditions.ModLoadedCondition;
public class ClocheRecipes { public class ClocheRecipes {
public static void buildRecipes(RecipeOutput output) { public static void buildRecipes(RecipeOutput output) {
RecipeOutput loadedOutput = output.withConditions(new ModLoadedCondition("immersiveengineering"));
ClocheRecipeBuilder.builder() ClocheRecipeBuilder.builder()
.output(ActuallyItems.CANOLA, 2) .output(ActuallyItems.CANOLA, 2)
.output(ActuallyItems.CANOLA_SEEDS) .output(ActuallyItems.CANOLA_SEEDS)
@ -19,7 +21,7 @@ public class ClocheRecipes {
.soil(ItemTags.DIRT) .soil(ItemTags.DIRT)
.setTime(800) .setTime(800)
.setRender(new ClocheRenderFunctions.RenderFunctionCrop(ActuallyBlocks.CANOLA.get())) .setRender(new ClocheRenderFunctions.RenderFunctionCrop(ActuallyBlocks.CANOLA.get()))
.build(output, ResourceLocation.fromNamespaceAndPath(ActuallyAdditions.MODID, "compat/cloche_canola")); .build(loadedOutput, ResourceLocation.fromNamespaceAndPath(ActuallyAdditions.MODID, "compat/cloche_canola"));
ClocheRecipeBuilder.builder() ClocheRecipeBuilder.builder()
.output(Items.STRING, 2) .output(Items.STRING, 2)
@ -28,7 +30,7 @@ public class ClocheRecipes {
.soil(ItemTags.DIRT) .soil(ItemTags.DIRT)
.setTime(800) .setTime(800)
.setRender(new ClocheRenderFunctions.RenderFunctionCrop(ActuallyBlocks.FLAX.get())) .setRender(new ClocheRenderFunctions.RenderFunctionCrop(ActuallyBlocks.FLAX.get()))
.build(output, ResourceLocation.fromNamespaceAndPath(ActuallyAdditions.MODID, "compat/cloche_flax")); .build(loadedOutput, ResourceLocation.fromNamespaceAndPath(ActuallyAdditions.MODID, "compat/cloche_flax"));
ClocheRecipeBuilder.builder() ClocheRecipeBuilder.builder()
.output(ActuallyItems.COFFEE_BEANS, 2) .output(ActuallyItems.COFFEE_BEANS, 2)
@ -37,7 +39,7 @@ public class ClocheRecipes {
.soil(ItemTags.DIRT) .soil(ItemTags.DIRT)
.setTime(800) .setTime(800)
.setRender(new ClocheRenderFunctions.RenderFunctionCrop(ActuallyBlocks.COFFEE.get())) .setRender(new ClocheRenderFunctions.RenderFunctionCrop(ActuallyBlocks.COFFEE.get()))
.build(output, ResourceLocation.fromNamespaceAndPath(ActuallyAdditions.MODID, "compat/cloche_coffee")); .build(loadedOutput, ResourceLocation.fromNamespaceAndPath(ActuallyAdditions.MODID, "compat/cloche_coffee"));
ClocheRecipeBuilder.builder() ClocheRecipeBuilder.builder()
.output(ActuallyItems.RICE, 2) .output(ActuallyItems.RICE, 2)
@ -46,6 +48,6 @@ public class ClocheRecipes {
.soil(ItemTags.DIRT) .soil(ItemTags.DIRT)
.setTime(800) .setTime(800)
.setRender(new ClocheRenderFunctions.RenderFunctionCrop(ActuallyBlocks.RICE.get())) .setRender(new ClocheRenderFunctions.RenderFunctionCrop(ActuallyBlocks.RICE.get()))
.build(output, ResourceLocation.fromNamespaceAndPath(ActuallyAdditions.MODID, "compat/cloche_rice")); .build(loadedOutput, ResourceLocation.fromNamespaceAndPath(ActuallyAdditions.MODID, "compat/cloche_rice"));
} }
} }