WARNING: Breaking change for Datapack Recipes for Rituals! - Add jei integration for ritual ingredients
klikli-dev opened this issue · 4 comments
- extend ritual_ingredients recipes to contain the activation and result items so it can be searched on jei
- that means, basically merge "rituals" recipes and "ritual_ingredients" recipes
- minecraft:air if there is no item output
- add another input to ritual_ingredients that is the id/translation key for the required pentacle
- add a second output to ritual_ingredients recipes, that allows to add a dummy item that represents the ritual
- create ritual dummy items
- name is the name of the ritual
- tooltip is a brief description of what the ritual does
I think having some fake items would be a very simple and easy way to implement this, yeah. Maybe add a tooltip to them so that when the player mouses over them in the recipe, it can add whatever extra info you want.
Alternatively, while it's not part of a recipe, it might be helpful in figuring out the code: Just Enough Professions displays active renders of Villagers in their JEI integration.
PneumaticCraft does something similar too. It's rendering blocks, however, and I'm not sure if rendering a block vs an entity lines up to be the same thing in the code, but it could be worth a peek.
Interactio might also be a good one to look at for displaying the actual input items. It's got a nice system where they're all displayed in a circle. In your case, this could be a circle of items around the main ritual trigger (books, I think in most cases, right?). That'd leave lots of room for an item/entity render below it.
See #218
But frankly, it's just something that should exist regardless of Patchouli issues
@MuteTiefling I don't know a whole lot about how mods document things in JEI, maybe you have an idea here.
Rituals that have an item as an output are - once I figured out how to render them properly in JEI - relatively straightforward to do.
Do you have any examples of mods that provide recipes where the output is not an item (such as summoning a familiar)?
I'm not sure how a player would go about finding the info then. I could add e.g. fake "ritual" items that have a generic icon + the name of the ritual, does that make sense?