how to issue achievements if a player has dealt a certain amount of damage to an entity
Good evening, I have a problem. I need to create an achievement that will be given to the player when they deal 100 heart damage to the warden with a sword. I'm a little confused. how do I do this? Here's what I have.
{ "display": { "icon": { "id": "minecraft:warden_spawn_egg" }, "title": { "text": "Зубочистка проти Танку", "color": "aqua" }, "description": { "text": "Нанести Вардену 100 сердець шкоди мечем", "color": "dark_purple" }, "frame": "challenge" }, "parent": "main:legendary/root", "criteria": { "t": { "trigger": "minecraft:player_killed_entity", "conditions": { "player": { "type": "minecraft:text_display" }, "entity": { "type": "minecraft:warden" } } } } }