How to make "private" variables

Started by zozod on Mon, 05/21/2018 - 15:44

Topic category: Help with MCreator software

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make "private" variables
Mon, 05/21/2018 - 15:44

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 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

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