mojira.dev
MC-250096

Arrows with CustomPotionEffects do not reduce their duration

After an arrow hurts an entity, the primary Potion duration is divided by 8 whereas the extra CustomPotionEffects are applied without reducing their duration (though the item lore on a tipped arrow displays the reduced duration correctly)

Either that or the applied duration should be unaffected and the displayed duration is reduced when it shouldn't

Reproduction steps:

  • Run /give @s tipped_arrow{CustomPotionEffects:[{Id:1b,Duration:3600,Amplifier:0b}]}

  • When hovering over the item it shows a duration of 22 seconds (3,600 ticks / 20 t/s / 8 = 22.5s)

  • When getting hit by the arrow when thrown, the applied duration is of 3 minutes (3,600 ticks / 20t/s = 180s)

Attachments

Comments 5

Steps to reproduce please? You should be able to edit your description.

Edited description and added screenshots

Does MC-98310 describe your issue?

Yeah that looks correct

Thank you for your report!
We're tracking this issue in MC-98310, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Fefo6644

(Unassigned)

Unconfirmed

(Unassigned)

1.18.2, 22w14a

Retrieved