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:
Create a new world with commands enabled
Run /effect give @s <effect> 1000 where <effect> is one of the 3 mentioned above.
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


Would MC-19648 describe you're issue?

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

@unknown No worries 🙂 MC-19648 mentions all the affected effects in general including instant health and damage effects
[media]
@BugTracker i see. thanks for pointing that out!
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