• Hey! Register here to create your account, engage with the community, and talk about what is new!

Potion Effect Durations In Ticks

TheExtremeBurger

Notorious member
Joined
Sep 8, 2020
Messages
103
Reaction score
25
Pretty self explanatory, allows you to set the duration of a potion effect in ticks. This would allow for more precise durations, and would set the minimum duration from 20 ticks (1 second) to 1 tick (0.05 seconds).

Would be useful for setting instant effects or instantly "removing" an effect (e.x. an armor that gives jump boost, and removing it would instantly remove jump boost instead of waiting an awkward second)
 

SamMan_

Forum adept
Joined
Sep 6, 2020
Messages
120
Reaction score
72
you can remove the effect upon the player taking off the armour?
 

TheExtremeBurger

Notorious member
Joined
Sep 8, 2020
Messages
103
Reaction score
25
SamMan_ that works but that doesn't let you set custom durations. You can probs code that but it's a lot of work for something so simple. And honestly it just feels more natural when it runs out naturally. It's also a lot more useful for instant effects like Saturation and Instant Health.
 
Top Bottom