When crafting a custom recipe that activates a function to revoke that recipe, the recipe in question stays in the recipe book, but it doesn’t work, and it can’t be removed with commands. It only goes away by reloading the world.
Steps to reproduce:
Create a world with the “example” data pack included below.
Smelt a Steak in a furnace.
Collect the “Burnt Mistake”.
When the item breaking noise plays, that means the function has run, and the recipe has been “removed”.
Expected Result:
When the recipe is removed, it should disappear from the recipe book.
Observed Results:
When the recipe is removed, the icon for it remains in the recipe book, but it doesn’t automatically move the ingredients into the furnace like a regular recipe.
After recording this video, I put a command block on a timer and did a similar thing with a pre-existing recipe. I gave myself a raw rabbit, revoked the recipe so it would be granted by collecting it from the furnace, and I put it in. Once I had put it in my inventory, and the timer on the command block ran out, the recipe was removed from my recipe book just as expected. I removed the function and tried the same thing with my custom recipe and it was removed as expected. I hope this helps