mojira.dev
MC-273148

Incorrect effect duration in /effect give

When runing /effect give <player> <effect> <duration>, the <duration> is either an amount of seconds or infinite, however when the effect is either instant damage, instant health or saturation, instead of the effect lasting said amount of seconds, it only lasts 1/20th of that amount (possibly because the game is applying the effect for <duration> ticks instead of <duration> seconds).

 

Steps to reproduce:

  1. Create a new world with commands enabled

  2. Run /effect give @s <effect> 1000 where <effect> is one of the 3 mentioned above.

  3. Open your inventory to check the effect's duration.

Expected behaviour:

 - The effect given in step 2 should last 1000 seconds (or about 16 mins 40 seconds)

Observed behaviour:

 - Instead, the effect is only lasting 50 seconds, yet if its any other effect, it lasts the intended 16 mins 40 seconds.

Related issues

Attachments

Comments

migrated
[media][media]
BugTracker

Would MC-19648 describe you're issue?

migrated

yeah it would, my bad (although that bug report doesn't include the instant health/damage effects)

BugTracker

@unknown No worries 🙂 MC-19648 mentions all the affected effects in general including instant health and damage effects

[media]
migrated

@BugTracker i see. thanks for pointing that out!

Jarl-Penguin

Thank you for your report!
We're tracking this issue in MC-19648, 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 (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

migrated

(Unassigned)

Unconfirmed

(Unassigned)

1.20.6, 1.21 Pre-Release 4

Retrieved