Started by
Granknight
on
Topic category: Help with MCreator software
I need help to make a counter that can keep track of the mobs a player kills, even after he dies and respawns, and to be able to make achievements that I would gain, lets say like killing 1 mob, 10 mobs, 100, and even 1000. I've thought of using the variable to keep track of the mobs killed, but I don't know how to make a procedure that can check if the player kills a mob and then adds to that counter, I've tried making it check when an entity dies and if that entity was targeting the player but I don't think I did it right at all since nothing happened. if someone could help I would be so thankful, and if you could send a picture of the procedures used in this process.
Edited by Granknight on Fri, 08/16/2024 - 09:06
You may already have the solution but I found one.
First create a separate procedure
https://imgur.com/a/q48jPu3
Then you will have to add the nbt to the player's "persistent" variable
https://imgur.com/a/NRn6fxb
Thank you, although the procedure isn't exactly what I need, but I think I can make it work, I will grant the player an achievement when the killer gets high enough and any specific mob that is hit will check if the attacker has that advancement and will get hit with extra damage. thank again!
I also feel dumb that it was so easy to do it, I need to get better at this
TZO_Ghoul could you explain how exactly you figured it out? If you remember?
TZO_Ghoul could you maybe help with the procedure been searching for a good solution for ays and couldn't come to a solution, trying to use the kill counter as a way to get an achievement do you maybe can help wich the procedure^^?