How do i make a stat altering potion effect?

Started by Jeamian on

Topic category: Help with modding (Java Edition)

Last seen on 23:12, 8. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a stat altering potion effect?

i was making a potion effect but i dont know how to make it alter stats like the damage and health of the player

Last seen on 00:45, 30. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you have a variable for…
Sat, 04/06/2024 - 23:02

If you have a variable for said stat for the procedure in the trigger (potion effect active tick)

You should look in the math category and in custom variables set get global <insert variable here> to get level of potion effect <insert effect here> (either +,-,*, or /) <insert desired number here> 

Last seen on 23:12, 8. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im trying on doing that but…
Sun, 04/07/2024 - 00:38

im trying on doing that but i have no idea at all on how to make a variable for attributes (which is what im trying to change)