{
	"format_version": "1.20.80",
	"minecraft:block": {
		"description": {
			"identifier": "v360:amethyst_lamp",
			"menu_category": {
				"category": "construction",
				"group": "itemGroup.name.crystal_lamp"
			},
			"states": {
				"v360:light": [
					0,
					1,
					2,
					3,
					4
				],
				"v360:should_dim": [
					true,
					false
				]
			}
		},
		"components": {
			"minecraft:geometry": "minecraft:geometry.full_block",
			"minecraft:custom_components": [
				"v360:block_destroy"
			],
			"minecraft:loot": "loot_tables/empty.json",
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 6.25
			},
			"minecraft:destructible_by_explosion": {
				"explosion_resistance": 4.2
			},
			"minecraft:map_color": "#191919",
			"tag:v360:stone": {},
			"tag:stone": {}
		},
		"permutations": [
			{
				"condition": "query.block_state('v360:light') == 0",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "amethyst_lamp4"
						},
						"up": {
							"texture": "crystal_lamp_top"
						},
						"down": {
							"texture": "crystal_lamp_bottom"
						}
					},
					"minecraft:light_emission": 15,
					"tag:v360:crystal_lamp4": {}
				}
			},
			{
				"condition": "query.block_state('v360:light') == 1",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "amethyst_lamp3"
						},
						"up": {
							"texture": "crystal_lamp_top"
						},
						"down": {
							"texture": "crystal_lamp_bottom"
						}
					},
					"minecraft:light_emission": 12,
					"tag:v360:crystal_lamp3": {}
				}
			},
			{
				"condition": "query.block_state('v360:light') == 2",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "amethyst_lamp2"
						},
						"up": {
							"texture": "crystal_lamp_top"
						},
						"down": {
							"texture": "crystal_lamp_bottom"
						}
					},
					"minecraft:light_emission": 9,
					"tag:v360:crystal_lamp2": {}
				}
			},
			{
				"condition": "query.block_state('v360:light') == 3",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "amethyst_lamp1"
						},
						"up": {
							"texture": "crystal_lamp_top"
						},
						"down": {
							"texture": "crystal_lamp_bottom"
						}
					},
					"minecraft:light_emission": 6,
					"tag:v360:crystal_lamp1": {}
				}
			},
			{
				"condition": "query.block_state('v360:light') == 4",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "amethyst_lamp0"
						},
						"up": {
							"texture": "crystal_lamp_top"
						},
						"down": {
							"texture": "crystal_lamp_bottom"
						}
					},
					"minecraft:light_emission": 3,
					"tag:v360:crystal_lamp0": {}
				}
			},
			{
				"condition": "query.block_state('v360:should_dim') == true",
				"components": {
					"minecraft:tick": {
						"interval_range": [
							200,
							200
						]
					},
					"minecraft:custom_components": [
						"v360:crystal_lamp"
					],
					"tag:v360:lamp_should_dim": {}
				}
			},
			{
				"condition": "query.block_state('v360:should_dim') == false",
				"components": {
					"tag:v360:lamp_should_not_dim": {}
				}
			}
		]
	}
}