How can I make a kill count in which when a player reaches a certain amount of kills, a variable goes up?

Started by PetalPhoenix on

Topic category: Help with modding (Java Edition)

Last seen on 23:57, 4. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make a kill count in which when a player reaches a certain amount of kills, a variable goes up?

The title says it all, how can I do this? This is what i have so far, but it's not working for some reason. I'm kinda new, so sorry if its obvious and im just dumb (this is my first time using imgur sorry if the link doesnt work https://imgur.com/a/ljs7e7S)

Last seen on 15:39, 14. Sep 2024
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is upping the variable…
Sun, 03/06/2022 - 19:54

This is upping the variable for the entity that dies, to increase the variable for the entity that did the kill 
(in this case the player) use "Source entity" instead of "event/target entity"