Stacking Modifiers

Started by Tepidwater on

Topic category: Help with MCreator software

Last seen on 06:24, 6. Jun 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Stacking Modifiers

I'm using the Attributes plugin by @Azzier to make a food that increases a players stat with a modifier each time it is eaten. However the second time it is used the game crashes with an error stating that 'the modifier is already on this attribute' I understood this as meaning that the same modifier cannot be applied more than once, however this doesn't work with what I aim to do. 

Any Ideas to work around this? 

Thankyou for any help 🙏

Last seen on 14:57, 22. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure how this…
Sat, 04/06/2024 - 13:02

I'm not sure how this modifier system works, but you could try using player persistent variables instead. Rather than changing a modifier, (which is presumably some sort of boolean tag), you can add one to a variable, and then use this variable's value to determine which modifier to apply.

Last seen on 06:24, 6. Jun 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thankyou for the help! I'll…
Sat, 04/06/2024 - 23:42

Thankyou for the help! I'll give that a look