How to make rpg stats?

Started by sl0wra1n on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make rpg stats?

I want to make a Stats system, a good example is the leveling system on elden ring, but instead of using runes i want the player to use levels, here are some stats for example that can change the player:

Vitality(Bonus Health); Strength(Like the potion effect but applies to all gear); Dexterity(Resistance from any kind of attack and knockback resistance); Intelligence(This is not really necessary for now.);Agility(At a level of agility the player gets speed for example); etc.

I tried to search on forum for some tutorials but they didn't really help, maybe someone can help me with this task?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Store all these things as…
Fri, 02/14/2025 - 02:52

Store all these things as player variables, handle your leveling and such using either events or a GUI then implement the skills effects using event triggers. You can intercept the event of players doing damage and change the output based on the strength stat for example or intercept the player taking damage event and modify it based on dexterity (knockback resistance can be handled using attributes, just remember to reapply on death and such). 

 

I will warn you that modifying these events in these ways using the blockly editor can produce un-expected behavior or crashes in my experience so I would recommend implementing it with code instead.