Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-278091

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.21.3
    • None
    • Unconfirmed
    • (Unassigned)

      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.

            Unassigned Unassigned
            daenvil daenvil
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: