Take and give Level of Xp

Started by Xelacraft1 on Sat, 11/21/2015 - 12:00

Topic category: Help with MCreator modding

Last seen on 19:44, 3. Oct 2018
Joined Nov 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Take and give Level of Xp
Sat, 11/21/2015 - 12:00

I have a question:

How give an player Xp and how can i take it from him??

 

 

Try for subtract:player
Sat, 11/21/2015 - 13:15

Try for subtract:
player.addExperienceLevel(-1); 

For increase:

player.addExperienceLevel(1);