Need help understanding capabilities.

Started by lolipoop266 on Sat, 05/15/2021 - 15:47

Topic category: Help with modding (Java Edition)

Last seen on 14:16, 29. May 2021
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Need help understanding capabilities.
Sat, 05/15/2021 - 15:47

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 !

 

Last seen on 01:19, 20. Jul 2021
Joined Apr 2018
Points:

User statistics:

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

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

Last seen on 14:16, 29. May 2021
Joined Jan 2016
Points:

User statistics:

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

Would it work in multiplayer though ?

Last seen on 01:19, 20. Jul 2021
Joined Apr 2018
Points:

User statistics:

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

Last seen on 14:16, 29. May 2021
Joined Jan 2016
Points:

User statistics:

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