{
	"format_version": "1.20.80",
	"minecraft:block": {
		"description": {
			"identifier": "v360:gold_candlestick",
			"states": {
				"v360:candle_bit": [
					false,
					true
				],
				"v360:light_bit": [
					false,
					true
				]
			},
			"traits": {
				"minecraft:placement_direction": {
					"enabled_states": [
						"minecraft:cardinal_direction"
					]
				}
			},
			"menu_category": {
				"group": "none",
				"category": "none",
				"is_hidden_in_commands": true
			}
		},
		"components": {
			"minecraft:geometry": {
				"identifier": "geometry.candlestick"
			},
			"minecraft:material_instances": {
				"*": {
					"texture": "gold_candlestick",
					"render_method": "alpha_test"
				}
			},
			"minecraft:flammable": false,
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 3.5
			},
			"minecraft:destructible_by_explosion": {
				"explosion_resistance": 1.5
			},
			"minecraft:collision_box": {
				"origin": [
					-5,
					0,
					-2
				],
				"size": [
					10,
					8,
					4
				]
			},
			"minecraft:selection_box": {
				"origin": [
					-5,
					0,
					-2
				],
				"size": [
					10,
					8,
					4
				]
			},
			"minecraft:map_color": "#FAEE4D",
			"tag:stone": {}
		},
		"permutations": [
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'north' || query.block_state('minecraft:cardinal_direction') == 'south'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							0,
							0
						]
					},
					"minecraft:custom_components": [
						"v360:candlestick_flame_ns"
					],
					"minecraft:tick": {
						"interval_range": [
							4,
							20
						]
					}
				}
			},
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'west' || query.block_state('minecraft:cardinal_direction') == 'east'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							90,
							0
						]
					},
					"minecraft:custom_components": [
						"v360:candlestick_flame_we"
					],
					"minecraft:tick": {
						"interval_range": [
							4,
							20
						]
					}
				}
			},
			{
				"condition": "query.block_state('v360:light_bit') == false",
				"components": {
					"minecraft:custom_components": [
						"v360:candlestick_flame_up"
					]
				}
			},
			{
				"condition": "query.block_state('v360:light_bit') == true",
				"components": {
					"minecraft:light_emission": 15,
					"minecraft:material_instances": {
						"*": {
							"texture": "lit_gold_candlestick",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_state('v360:candle_bit') == true",
				"components": {
					"minecraft:geometry": {
						"identifier": "geometry.candlestick_candle"
					},
					"minecraft:loot": "loot_tables/gold_candle.json"
				}
			},
			{
				"condition": "query.block_state('v360:candle_bit') == false",
				"components": {
					"minecraft:custom_components": [
						"v360:place_candle"
					]
				}
			}
		]
	}
}