Hey, first of all thx for your reply!
My approaches are allways a bit bodgy. I put things together and dont question them as long as they are working.
Now i red the comment u mentioned.
I pasted the wrong line of code... i had a bit of a mess with this bit as i was trying different things, sorry for that. ( The ForgeRegistries.RECIPES is now there thx to you)
The partly working code is this:
RecipeBook book = new RecipeBook();
for (IRecipe irecipe : ForgeRegistries.RECIPES) {
book.unlock(irecipe);
}
Minecraft.getMinecraft().player.getRecipeBook().copyFrom(book);
almost what i want...
When i stat a new world, i have no recipes. Then i execute the code. Nothing happens. But then i pick up a log, get the new recipes from that and the ones from the code aswell.
Thx in advance