I'm doing a similar post in AStages discord, but i'm trying to show and hide recipes/items dynamically in JEI with kubejs and AStages without having to reload the client everytime.
I managed to hide the itens with AStages and show them without reloading, BUT, it's still possible to see the craft of the items by simply clicking U (for example I hid a diamond chestplate in JEI, but by simply clicking U in a diamond i can see the diamond chestplate recipe)
Any ideia to make this happen?
I was checking and maybe i'll have to use Java in kubejs, idk if that's the only way, seeing that i can do most of the things I want with AStages. But if it's the only way, how can I do it?
My idea is that players don't have recipes unlocked, but can still craft (i'll change most of them, so if they know a recipe by heart they won't be able to craft) and use the items, so if they getting some recipe correctly by chance is intended.
Also i'll have ways for them to unlock recipes (by right clicking a scroll)