{
	"display": {
		"icon": {
			"id": "minecraft:shield",
			"components": {
				"minecraft:base_color": "gray",
				"minecraft:banner_patterns": [
					{
						"color": "light_blue", 
						"pattern": "minecraft:half_horizontal"
					},
					{
						"color": "gray", 
						"pattern": "minecraft:stripe_top"
					}
				]
			}
		},
		"title": {"translate":"Riot Shield"},
		"description": {"color":"green","translate":"Deflect a Pillager's crossbow bolt"},
		"announce_to_chat": true
	},
	"parent": "blazeandcave:adventure/out_of_posts",
	"rewards": {
		"function": "bacap_rewards:adventure/riot_shield"
	},
	"criteria": {
		"deflected_crossbow": {
			"trigger": "minecraft:entity_hurt_player",
			"conditions": {
				"damage": {
					"type": {
						"tags": [
							{
								"id": "minecraft:is_projectile",
								"expected": true
							}
						]
					},
					"blocked": true,
					"source_entity": {
						"entity_type": "pillager"
					}
				}
			}
		}
	}
}
