Skip to content

Conversation

@MelanX
Copy link
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
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