{
	"display": {
		"icon": {
			"id": "minecraft:magenta_stained_glass"
		},
		"title": {"translate":"Light Show"},
		"description": {"color":"green","translate":"Place Stained Glass directly on top of a Beacon to change the colour of its beam"},
		"announce_to_chat": true
	},
	"parent": "minecraft:nether/create_beacon",
	"rewards": {
		"function": "bacap_rewards:nether/light_show"
	},		
	"criteria": {
		"pale_moss_block": {
			"trigger": "minecraft:placed_block",
			"conditions": {
				"location": [
					{
						"condition": "minecraft:location_check",
						"predicate": {
							"block": {
								"blocks": [
									"minecraft:white_stained_glass",
									"minecraft:light_gray_stained_glass",
									"minecraft:gray_stained_glass",
									"minecraft:black_stained_glass",
									"minecraft:brown_stained_glass",
									"minecraft:red_stained_glass",
									"minecraft:orange_stained_glass",
									"minecraft:yellow_stained_glass",
									"minecraft:lime_stained_glass",
									"minecraft:green_stained_glass",
									"minecraft:cyan_stained_glass",
									"minecraft:light_blue_stained_glass",
									"minecraft:blue_stained_glass",
									"minecraft:purple_stained_glass",
									"minecraft:magenta_stained_glass",
									"minecraft:pink_stained_glass",
									"minecraft:white_stained_glass_pane",
									"minecraft:light_gray_stained_glass_pane",
									"minecraft:gray_stained_glass_pane",
									"minecraft:black_stained_glass_pane",
									"minecraft:brown_stained_glass_pane",
									"minecraft:red_stained_glass_pane",
									"minecraft:orange_stained_glass_pane",
									"minecraft:yellow_stained_glass_pane",
									"minecraft:lime_stained_glass_pane",
									"minecraft:green_stained_glass_pane",
									"minecraft:cyan_stained_glass_pane",
									"minecraft:light_blue_stained_glass_pane",
									"minecraft:blue_stained_glass_pane",
									"minecraft:purple_stained_glass_pane",
									"minecraft:magenta_stained_glass_pane",
									"minecraft:pink_stained_glass_pane"
								]
							}
						}
					},
					{
						"condition": "minecraft:location_check",
						"offsetY": -1,
						"predicate": {
							"block": {
								"blocks": [
									"minecraft:beacon"
								]
							}
						}
					},
					{
						"condition": "minecraft:inverted",
						"term": {
							"condition": "minecraft:location_check",
							"offsetY": -1,
							"predicate": {
								"block": {
									"blocks": [
										"minecraft:beacon"
									],
									"nbt": "{Levels:0}"
								}
							}
						}
					}
				]
			}
		}
	}
}