{
	"rewards": {
		"function": "blazeandcave:advancement/count/whack_a_mole"
	},
	"criteria": {
		"whack_a_mole": {
			"trigger": "minecraft:player_hurt_entity",
			"conditions": {
				"entity": {
					"entity_type": "armadillo"
				},
				"damage": {
					"type": {
						"tags": [
							{
								"id": "minecraft:mace_smash",
								"expected": true
							}
						]
					}
				},
				"player": [
					{
						"condition": "minecraft:entity_properties",
						"entity": "this",
						"predicate": {
							"equipment": {
								"mainhand": {
									"items": "minecraft:mace",
									"predicates": {
										"minecraft:enchantments": [
											{
												"enchantments": "minecraft:wind_burst"
											}
										]
									}
								}
							}
						}
					}
				]
			}
		}
	}
}
