{
	"format_version": "1.20.80",
	"minecraft:block": {
		"description": {
			"identifier": "v360:araucaria_stairs",
			"menu_category": {
				"category": "construction",
				"group": "itemGroup.name.stairs"
			},
			"states": {
				"v360:shape": [
					"straight",
					"inner_right",
					"inner_left",
					"outer_right",
					"outer_left"
				],
				"v360:placed_bit": [
					false,
					true
				]
			},
			"traits": {
				"minecraft:placement_position": {
					"enabled_states": [
						"minecraft:vertical_half"
					]
				},
				"minecraft:placement_direction": {
					"enabled_states": [
						"minecraft:cardinal_direction"
					]
				}
			}
		},
		"components": {
			"minecraft:light_dampening": 0,
			"minecraft:map_color": "#A0816F",
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 3
			},
			"minecraft:destructible_by_explosion": {
				"explosion_resistance": 3
			},
			"minecraft:geometry": {
				"identifier": "geometry.custom_stairs",
				"bone_visibility": {
					"normaln": "(query.block_state('minecraft:cardinal_direction') == 'north' && (query.block_state('v360:shape') == 'straight' && query.block_state('minecraft:vertical_half')== 'bottom')) || !query.block_state('v360:placed_bit')",
					"upsiden": "query.block_state('minecraft:cardinal_direction') == 'north' && (query.block_state('v360:shape') == 'straight' && query.block_state('minecraft:vertical_half')== 'top') && query.block_state('v360:placed_bit')",
					"normals": "query.block_state('minecraft:cardinal_direction') == 'south' && (query.block_state('v360:shape') == 'straight' && query.block_state('minecraft:vertical_half')== 'bottom') && query.block_state('v360:placed_bit')",
					"upsides": "query.block_state('minecraft:cardinal_direction') == 'south' && (query.block_state('v360:shape') == 'straight' && query.block_state('minecraft:vertical_half')== 'top') && query.block_state('v360:placed_bit')",
					"normalw": "query.block_state('minecraft:cardinal_direction') == 'west' && (query.block_state('v360:shape') == 'straight' && query.block_state('minecraft:vertical_half')== 'bottom') && query.block_state('v360:placed_bit')",
					"upsidew": "query.block_state('minecraft:cardinal_direction') == 'west' && (query.block_state('v360:shape') == 'straight' && query.block_state('minecraft:vertical_half')== 'top') && query.block_state('v360:placed_bit')",
					"normale": "query.block_state('minecraft:cardinal_direction') == 'east' && (query.block_state('v360:shape') == 'straight' && query.block_state('minecraft:vertical_half')== 'bottom') && query.block_state('v360:placed_bit')",
					"upsidee": "query.block_state('minecraft:cardinal_direction') == 'east' && (query.block_state('v360:shape') == 'straight' && query.block_state('minecraft:vertical_half')== 'top') && query.block_state('v360:placed_bit')",
					"inner_right0": "(query.block_state('minecraft:cardinal_direction') == 'north' && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'inner_right')) || (query.block_state('minecraft:cardinal_direction') == 'east' && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'inner_left')) && query.block_state('v360:placed_bit')",
					"inner_left0": "(query.block_state('minecraft:cardinal_direction') == 'north' && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'inner_left')) || (query.block_state('minecraft:cardinal_direction') == 'west' && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'inner_right')) && query.block_state('v360:placed_bit')",
					"inner_right1": "(query.block_state('minecraft:cardinal_direction') == 'south' || query.block_state('minecraft:cardinal_direction') == 'east') && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'inner_right') && query.block_state('v360:placed_bit')",
					"inner_left1": "(query.block_state('minecraft:cardinal_direction') == 'south' || query.block_state('minecraft:cardinal_direction') == 'west') && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'inner_left') && query.block_state('v360:placed_bit')",
					"outer_right0": "(query.block_state('minecraft:cardinal_direction') == 'north' || query.block_state('minecraft:cardinal_direction') == 'west') && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'outer_right') && query.block_state('v360:placed_bit')",
					"outer_left0": "(query.block_state('minecraft:cardinal_direction') == 'north' || query.block_state('minecraft:cardinal_direction') == 'east') && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'outer_left') && query.block_state('v360:placed_bit')",
					"outer_right1": "(query.block_state('minecraft:cardinal_direction') == 'south' && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'outer_right')) || (query.block_state('minecraft:cardinal_direction') == 'west' && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'outer_left')) && query.block_state('v360:placed_bit')",
					"outer_left1": "(query.block_state('minecraft:cardinal_direction') == 'south' && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'outer_left')) || (query.block_state('minecraft:cardinal_direction') == 'east' && (query.block_state('minecraft:vertical_half')== 'bottom' && query.block_state('v360:shape') == 'outer_right')) && query.block_state('v360:placed_bit')",
					"inner_right0u": "(query.block_state('minecraft:cardinal_direction') == 'north' && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'inner_right')) || (query.block_state('minecraft:cardinal_direction') == 'east' && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'inner_left')) && query.block_state('v360:placed_bit')",
					"inner_left0u": "(query.block_state('minecraft:cardinal_direction') == 'north' && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'inner_left')) || (query.block_state('minecraft:cardinal_direction') == 'west' && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'inner_right')) && query.block_state('v360:placed_bit')",
					"inner_right1u": "(query.block_state('minecraft:cardinal_direction') == 'south' || query.block_state('minecraft:cardinal_direction') == 'east') && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'inner_right') && query.block_state('v360:placed_bit')",
					"inner_left1u": "(query.block_state('minecraft:cardinal_direction') == 'south' || query.block_state('minecraft:cardinal_direction') == 'west') && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'inner_left') && query.block_state('v360:placed_bit')",
					"outer_right0u": "(query.block_state('minecraft:cardinal_direction') == 'north' || query.block_state('minecraft:cardinal_direction') == 'west') && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'outer_right') && query.block_state('v360:placed_bit')",
					"outer_left0u": "(query.block_state('minecraft:cardinal_direction') == 'north' || query.block_state('minecraft:cardinal_direction') == 'east') && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'outer_left') && query.block_state('v360:placed_bit')",
					"outer_right1u": "(query.block_state('minecraft:cardinal_direction') == 'south' && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'outer_right')) || (query.block_state('minecraft:cardinal_direction') == 'west' && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'outer_left')) && query.block_state('v360:placed_bit')",
					"outer_left1u": "(query.block_state('minecraft:cardinal_direction') == 'south' && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'outer_left')) || (query.block_state('minecraft:cardinal_direction') == 'east' && (query.block_state('minecraft:vertical_half')== 'top' && query.block_state('v360:shape') == 'outer_right')) && query.block_state('v360:placed_bit')"
				}
			},
			"minecraft:flammable": true,
			"minecraft:material_instances": {
				"*": {
					"texture": "araucaria_planks",
					"render_method": "alpha_test"
				}
			},
			"minecraft:custom_components": [
				"v360:stairs"
			],
			"tag:stairs": {},
			"tag:wood": {},
			"tag:v360:wood": {}
		},
		"permutations": [
			{
				"condition": "query.block_state('minecraft:vertical_half')== 'bottom'",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-7,
							0,
							-7
						],
						"size": [
							14,
							8,
							14
						]
					}
				}
			},
			{
				"condition": "query.block_state('minecraft:vertical_half')== 'top'",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-7,
							8,
							-7
						],
						"size": [
							14,
							8,
							14
						]
					}
				}
			},
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'north'",
				"components": {}
			},
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'south'",
				"components": {}
			},
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'west'",
				"components": {}
			},
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'east'",
				"components": {}
			},
			{
				"condition": "query.block_state('v360:shape') == 'straight'",
				"components": {
					"tag:v360:stairs_straight": {}
				}
			},
			{
				"condition": "query.block_state('v360:shape') == 'inner_right'",
				"components": {
					"tag:v360:stairs_inner_right": {}
				}
			},
			{
				"condition": "query.block_state('v360:shape') == 'inner_left'",
				"components": {
					"tag:v360:stairs_inner_left": {}
				}
			},
			{
				"condition": "query.block_state('v360:shape') == 'outer_right'",
				"components": {
					"tag:v360:stairs_outer_right": {}
				}
			},
			{
				"condition": "query.block_state('v360:shape') == 'outer_left'",
				"components": {
					"tag:v360:stairs_outer_left": {}
				}
			}
		]
	}
}