Add Potion Effect only lasts 3 seconds.

Started by StellaeLux on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add Potion Effect only lasts 3 seconds.

I created an item and called a procedure when the item is eaten that adds a potion effect of lvl 1 of 60 seconds of type fire_resistance.

However whenever the food is eaten, only the last 3 seconds in which the potion starts to wear off works, but the whole 60 seconds doesn't. (Version 1.9.0 on macOS)

I've seen multiple threads with a similar issue: (et al)

https://mcreator.net/forum/5239/adding-potion-effects-not-working

---

Is this a bug? Will it be fixed and is there a possible workaround?

Last seen on 07:58, 13. Apr 2020
Joined May 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The "60" in the potions…
Mon, 09/16/2019 - 16:01

The "60" in the potions block is not seconds its ticks. the game has 20 ticks per second, so its giving you 3 seconds of the potion. If you want 60 seconds of effect time set the duration to 1200

Last seen on 20:25, 8. May 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I assumed it was quantified…
Mon, 09/16/2019 - 16:31

I assumed it was quantified in seconds as that is the way it's displayed MC and 60 seconds was the standard value intuitive in seconds.

You sir are a life saver. Thank you, that solved the issue for me.

Last seen on 07:58, 13. Apr 2020
Joined May 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
happy to help =)
Mon, 09/16/2019 - 19:59

happy to help =)