mojira.dev
MC-296007

Broken recipe persists after being revoked with function

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:

  1. Create a world with the “example” data pack included below.

  2. Smelt a Steak in a furnace.

  3. Collect the “Burnt Mistake”.

  4. 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.

Attachments

Comments 1

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

Wonder

(Unassigned)

Confirmed

Platform

Low

Data Packs

1.21.5

Retrieved