How can I make painkiller effect?

Started by Toibithieunang on

Topic category: Help with modding (Java Edition)

Last seen on 13:41, 8. Nov 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make painkiller effect?

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.

Last seen on 21:40, 28. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so you coild either give the…
Fri, 12/02/2022 - 14:49

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”

 

Last seen on 13:41, 8. Nov 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, I need to fix the…
Sat, 12/03/2022 - 08:24

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")

Last seen on 13:41, 8. Nov 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Anyway, can you send a…
Sat, 12/03/2022 - 08:26

Anyway, can you send a screenshot or tutorial about checking the duration of the slowness effect?