Add Potion Effect only lasts 3 seconds.

Started by StellaeLux on Mon, 09/16/2019 - 14:58

Topic category: Bugs and solutions

Last seen on 12:10, 18. Oct 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Add Potion Effect only lasts 3 seconds.
Mon, 09/16/2019 - 14:58

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 13:23, 2. Oct 2019
Joined May 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 12:10, 18. Oct 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 13:23, 2. Oct 2019
Joined May 2017
User points:

Statistics:

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

happy to help =)