mojira.dev
MC-313840

Using the `set_stew_effect` loot function to set very long effect durations on suspicious stews makes them give no effects

The Bug:

Using the set_stew_effect loot function to set very long effect durations on suspicious stews makes them give no effects.

Steps to Reproduce:

  1. Obtain a suspicious stew without any effects by using the command provided below.

    /give @s minecraft:suspicious_stew[minecraft:suspicious_stew_effects=[]]
  2. Hold the suspicious stew in your main hand and give it night vision with a very long duration by using the command provided below.

    /item modify entity @s weapon.mainhand {type:"minecraft:set_stew_effect",effects:[{type:"minecraft:night_vision",duration:1000000000}]}
  3. Eat the suspicious stew.

  4. Observe if you are given night vision.

Observed Behavior:

Suspicious stews with very long effect durations set by the set_stew_effect loot function give no effects.

Expected Behavior:

Suspicious stews would give their effects for the very long durations set by the loot function.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

26.3, 26.4 Release Candidate 1

Retrieved