Started by
Toibithieunang
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make an effect named "painkiller". It will stop (or skip) the affect of the specific effect.
expample: If you apply the painkiller effect when you have slowness, you will moving normaly but still the slowness effect ( the duration run normaly)
How can you make that?
Thanks.
so you coild either give the player speed one, OR
if has effect painkiller;
if has effect slowness;
set gloal variable “durationslowness” to get duration of effect slowness.
remove effect slowness
then add a new prodecure for when the effect of painkiller ends
when effect ends: give effect slowness with “durationslowness”
Sorry, I need to fix the question:
"expample: If you apply the painkiller effect when you have slowness, you will moving normaly but still the slowness effect ( the duration run normaly, when the painkiller effect still affect the entity")
Anyway, can you send a screenshot or tutorial about checking the duration of the slowness effect?