#Hide recipe from the recipe book GUI, but you can still craft it. is it possible via script?
16 messages · Page 1 of 1 (latest)
you need to delete the recipe
why would you want to hide it from the recipe book?
everyone will use jei/rei/emi anything else if it's installed
I don't want JEI installaed and the purpose is an RP server content. The idea is that X player can craft an item for other, knowing the recipe
i would be surprised by the recipe book still being enabled with how many mods just remove it
anyway, you don't actually get recipes in the recipe book naturally, you need them to be given to you. i guess you have something like quark installed to immediately give everyone all recipes?
if thats the case, you can probably just use a command to revoke the specific recipes when a player joins the game
You are right. I'll check it and let you know, thanks.
It was Quark, unlocking all the recipes. I thought I had tweaks turned off...
Last thing (sorry for the OT): if I still get some recipes and want to remove from the beginning, I have to remove manually from that mod itself, right? (without using /recipe take ecc..)
I don't know a KubeJS event for that, if there is it would probably be better than this but for now:
You can always follow that mods path to unlocking the recipe and create an empty json file (only containing {}) of the same name in the same location of but in your kubejs data folder (or a higher priority datapack) to overwrite the advancement
(example: if you wanted the wrench recipe from create to never appear in the recipe book, you would first find the file that adds it in the mods advancement folder. Here its the file wrench.json in data/create/advancements/recipes/create.base/crafting/kinetics/. You would add the same file path in your kubejs/data/ folder, but replace the contents of the wrench.json file with just {}. (the new file would be kubejs/data/create/advancements/recipes/create.base/crafting/kinetics/wrench.json))
Gotcha 🙏 You opened my eyes to a whole new world with KubeJS
I think I can also change the loot-tables and entities spawn-rate using this method. Am I right?
and.. is there a way to disable recipes for an entire mod, without editing all recipe-files? Maybe witha script?
sorry for all these question 😅
If you mean actually removing recipes and not hiding them, then yes, KubeJS can do that really well & the wiki has a page for it
You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.
I mean: hiding all recipes of a mod (non removing), without editing each item inside data/create/advancements/recipes/X