emilyploszaj / emi

A featureful and accessible item and recipe viewer
MIT License
250 stars 50 forks source link

[Feature Request?] Strict NBT recipe view #371

Open Disketaa opened 10 months ago

Disketaa commented 10 months ago

Here my issue: I have different villager professions that are one spawn egg with custom models image

So, obviously when I try to view certain villager profession EMI shows every (cause of they are all one item). And well maybe it possible to add feature to add some key in recipe json or in category json that will show only nbt-matched recipes.

I know it sounds weird and needlessly, but I hope it is doable somehow idk I'm dumb to modding, but also I want to write every item recipe =) every obtainable way

Sheep7798 commented 10 months ago

Take a look at these lines of code : https://github.com/emilyploszaj/emi/blob/1.20.2/xplat/src/main/java/dev/emi/emi/VanillaPlugin.java#L307C3-L311C80

emilyploszaj commented 10 months ago

This would require a mildly annoying amount of work on the serialization end but it should be possible to make comparison methods exposable in json.