Skip to content

Add ICondition support in ObjectCraftingBuilder#88

Merged
noeppi-noeppi merged 3 commits into1.21from
feature/easy-conditional-recipes
Jan 11, 2026
Merged

Add ICondition support in ObjectCraftingBuilder#88
noeppi-noeppi merged 3 commits into1.21from
feature/easy-conditional-recipes

Conversation

@MelanX
Copy link
Copy Markdown
Member

@MelanX MelanX commented Jul 2, 2025

This pull request adds a new feature to the ObjectCraftingBuilder. You can now add any ICondition object to the Object array in buildShaped and buildShapeless to apply certain conditions to this recipe. This is pretty useful if you only have a few recipes with conditions and you don't want to add a new RecipeProviderBase instance with RecipeProviderBase#conditions set for these few recipes. You can just use it like this:

this.shapeless(this.output(AIOTRegistry.redstoneAiot), RecipeCategory.TOOLS, AIOTRegistry.redstoneAiot, ModItems.redstoneSword, ModItems.redstonePickaxe, ModItems.redstoneAxe, ModItems.redstoneShovel, ModItems.redstoneHoe, new ModLoadedCondition(CompatHelper.MOREVANILLATOOLS), new VanillaCondition());

@MelanX MelanX requested a review from noeppi-noeppi July 2, 2025 11:11
@noeppi-noeppi noeppi-noeppi merged commit 9d71286 into 1.21 Jan 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants