Need help understanding capabilities.

Started by lolipoop266 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help understanding capabilities.

Hi people, I wanna add a, let's say, skills in my mod. For example : every 5000 blocks that you walk add one level to your speed stat (I want to be able to see the stats in a GUI too). And so I have found out about capabilities, even though I read about it on the forge page and looked at some tutorials I'm still not really able to understand it, so if anyone here could help me with it I would really appreciate !

 

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well player global variables…
Sat, 05/15/2021 - 17:06

Well player global variables are capabilities. So you can use them.

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Would it work in multiplayer…
Sat, 05/15/2021 - 18:58

Would it work in multiplayer though ?

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, player variables are…
Sat, 05/15/2021 - 19:32

Yes, player variables are individual for all players. Also they are synchronized. So you can display them whenever you want :)

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well only if you want, but…
Sun, 05/16/2021 - 01:45

Well only if you want, but could you help me a a bit with it ? :) If yes, then add my discord :Gargamilk.exe#3570