I don't know how to improve the player's statistics

Started by Patosalvaje1212 on Tue, 09/29/2020 - 07:58

Topic category: Advanced modding

Last seen on 11:01, 9. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't know how to improve the player's statistics
Tue, 09/29/2020 - 07:58

I need help. I want to make a mod, that when a player kills a certain number of mobs, their base damage increases. Does anyone know how to do this?

(Sorry for my bad English, I'm Spanish)

Last seen on 20:24, 19. Oct 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't know how to do the…
Thu, 10/01/2020 - 23:35

I don't know how to do the base damage increase without strength but I think I know how to make the kill counter, make a number variable and name it the mob you want, and set the value to 0, also the scope should be player persistent if you want it to be kept even after death, if not then pick life time, make a procedure and set the trigger to entity dies, make it check if the entity is a sub type of what you want, as an example lets go with zombie, do if the entity is a zombie, then go into custom variables and grab both set and get values that you need, do set global zombie and get global zombie + 1, after that do if get global zombie = 10, give advancement "zombie slayer", then create another procedure that checks when the entity is attacked, and make it do generic damage plus 1 if the player attacks it. I hope this essay helps you lol, good luck trying to read this