{
	"format_version": "1.20.80",
	"minecraft:block": {
		"description": {
			"identifier": "v360:araucaria_fence",
			"menu_category": {
				"category": "construction",
				"group": "itemGroup.name.fence"
			},
			"states": {
				"v360:post": [
					0,
					1
				],
				"v360:north_picket": [
					0,
					1
				],
				"v360:south_picket": [
					0,
					1
				],
				"v360:east_picket": [
					0,
					1
				],
				"v360:west_picket": [
					0,
					1
				]
			}
		},
		"permutations": [
			{
				"condition": "q.block_state('v360:north_picket') && !q.block_state('v360:south_picket') && !q.block_state('v360:west_picket') && q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							10,
							8,
							10
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:north_picket') && !q.block_state('v360:south_picket') && q.block_state('v360:west_picket') && !q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-2,
							0,
							-8
						],
						"size": [
							10,
							8,
							10
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "!q.block_state('v360:north_picket') && q.block_state('v360:south_picket') && !q.block_state('v360:west_picket') && q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-2
						],
						"size": [
							10,
							8,
							10
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "!q.block_state('v360:north_picket') && q.block_state('v360:south_picket') && q.block_state('v360:west_picket') && !q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-2,
							0,
							-2
						],
						"size": [
							10,
							8,
							10
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:north_picket') && q.block_state('v360:south_picket') && q.block_state('v360:west_picket') && q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-2,
							0,
							-2
						],
						"size": [
							8,
							8,
							8
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "!q.block_state('v360:north_picket') && !q.block_state('v360:south_picket') && !q.block_state('v360:west_picket') && !q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-2,
							0,
							2
						],
						"size": [
							4,
							8,
							-4
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:north_picket') && q.block_state('v360:south_picket') && q.block_state('v360:west_picket') && !q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-2,
							0,
							-4
						],
						"size": [
							7,
							8,
							8
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:north_picket') && q.block_state('v360:south_picket') && !q.block_state('v360:west_picket') && q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-4,
							0,
							-4
						],
						"size": [
							6,
							8,
							8
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:north_picket') && !q.block_state('v360:south_picket') && q.block_state('v360:west_picket') && q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-4,
							0,
							-4
						],
						"size": [
							8,
							8,
							6
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "!q.block_state('v360:north_picket') && q.block_state('v360:south_picket') && q.block_state('v360:west_picket') && q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-4,
							0,
							-2
						],
						"size": [
							8,
							8,
							7
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:north_picket') && !q.block_state('v360:south_picket') && !q.block_state('v360:west_picket') && !q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-2,
							0,
							-8
						],
						"size": [
							4,
							8,
							10
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:south_picket') && !q.block_state('v360:north_picket') && !q.block_state('v360:west_picket') && !q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-2,
							0,
							-2
						],
						"size": [
							4,
							8,
							10
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:east_picket') && !q.block_state('v360:west_picket') && !q.block_state('v360:north_picket') && !q.block_state('v360:south_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-2
						],
						"size": [
							10,
							8,
							4
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:west_picket') && !q.block_state('v360:east_picket') && !q.block_state('v360:north_picket') && !q.block_state('v360:south_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-2,
							0,
							-2
						],
						"size": [
							10,
							8,
							4
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:north_picket') && q.block_state('v360:south_picket') && !q.block_state('v360:west_picket') && !q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-2,
							0,
							-8
						],
						"size": [
							4,
							8,
							16
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "!q.block_state('v360:north_picket') && !q.block_state('v360:south_picket') && q.block_state('v360:west_picket') && q.block_state('v360:east_picket')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-2
						],
						"size": [
							16,
							8,
							4
						]
					},
					"minecraft:selection_box": false
				}
			},
			{
				"condition": "q.block_state('v360:post')",
				"components": {
					"minecraft:geometry": {
						"identifier": "geometry.fence_inventory",
						"bone_visibility": {
							"fence": false
						}
					}
				}
			},
			{
				"condition": "!q.block_state('v360:post')",
				"components": {
					"minecraft:custom_components": [
						"v360:araucaria_fence_place"
					]
				}
			}
		],
		"components": {
			"minecraft:geometry": "geometry.fence_inventory",
			"minecraft:tick": {
				"interval_range": [
					20,
					20
				]
			},
			"minecraft:custom_components": [
				"v360:araucaria_fence_tick"
			],
			"minecraft:material_instances": {
				"*": {
					"texture": "araucaria_planks",
					"render_method": "opaque"
				}
			},
			"tag:inventory_fence": {},
			"tag:wood": {},
			"tag:v360:wood": {}
		}
	}
}