How to make "private" variables

Started by zozod on

Topic category: Help with MCreator software

Last seen on 15:31, 18. Jun 2018
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make "private" variables

Hello,

I am making a mod for my server and i wanted to add variables that are different between players like an XP variable.

Is that possible to do that?

Also i would like to know if it is possible o create an command that would recall that vars.

Thanks and excuse my bad English.

Last seen on 22:13, 3. Apr 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Until version 1.8.9 you…
Tue, 05/22/2018 - 22:20

Until version 1.8.9 you could use IExtendedEntityProperties for this thing, however in 1.9 IEEP has been removed and instead you have to use capabilities, that are somehow harder to set up but easier to master. 
Look at my post here: https://mcreator.net/comment/52507