How can I make painkiller effect?

Started by Toibithieunang on Fri, 12/02/2022 - 14:37

Topic category: Help with modding (Java Edition)

Last seen on 04:33, 18. Jan 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I make painkiller effect?
Fri, 12/02/2022 - 14:37

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 22:40, 26. Jan 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 04:33, 18. Jan 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 04:33, 18. Jan 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?