mojira.dev
MC-278091

When setting on_consume_effects, instant_health effect is not applied unless a duration is set

Using the following command and eating the resulting item produces no effects:

 

/give @s dried_kelp[consumable={on_consume_effects:[{type:"apply_effects",effects:[{id:"instant_health"}]}]}]

 

The expected behavior would be to apply the effect for 1 tick.

Using the same command, but specifying "duration:1", does work:

/give @s dried_kelp[consumable={on_consume_effects:[{type:"apply_effects",effects:[{id:"instant_health",duration:1}]}]}]

However, if I use the first command but using another effect (poison, in this case):

/give @s dried_kelp[consumable={on_consume_effects:[{type:"apply_effects",effects:[{id:"poison"}]}]}]

The poison icon does appear on the top right for exactly 1 tick and the hearts turn green for 1 tick, as expected, implying that the effect is being applied correctly.

Comments 1

We do not have enough information to find the cause of this issue.

Please attach a video of this occurring while the F3 debug screen is enabled.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

daenvil

(Unassigned)

Unconfirmed

(Unassigned)

1.21.3

Retrieved