mojira.dev
MC-296111

Tipped arrows from ominous trial spawners use standard potion duration instead of tipped arrow duration

When an ominous trial spawner dispenses a tipped arrow (through the ominous_item_spawner entity), either an arrow of Poison or arrow of Slowness IV, it uses the duration of the original potion (45 seconds for Poison arrows, 20 seconds for Slowness IV arrows), instead of the reduced duration of tipped arrows (5 seconds for Poison arrows, 2 seconds for Slowness arrows).

Expected Result

Tipped arrows dispensed by ominous trial spawners should use the same effect duration as tipped arrows fired by players, dispensers or mobs.

Observed Result

Tipped arrows dispensed by omionus trial spawners uses the effect duration of the original potions, instead of the duration of tipped arrows fired by players, dispensers or mobs.

How to Reproduce

  1. Go to a trial chamber with the Trial Omen effect, and trigger an ominous trial.

  2. Locate an ominous trial spawner that dispenses arrows of Poison, or arrows of Slowness IV.

  3. Wait until an ominous_item_spawner spawns above your head. If it is a tipped arrow, let the arrow hit you.

  4. Observe that the effect duration is the same as the original potions, instead of that of tipped arrows.

Attachments

Comments 1

An alternative way of testing this is to run the following command a few times:

/loot give @s loot minecraft:spawners/trial_chamber/items_to_drop_when_ominous

Do this until you received both types of arrows. You can see that they are regular arrows with the standard potion effects applied, instead of tipped arrows. Therefore, one potential fix of this issue is to change the loot table, so that it actually dispenses tipped arrows instead of regular arrows with standard potion effects.

[media][media]

windwend

(Unassigned)

Confirmed

Platform

Normal

Projectiles

1.21.5

Retrieved