{
	"format_version": "1.21.50",
	"minecraft:block": {
		"description": {
			"identifier": "scpcf:caution_railing",
			"is_experimental": false,
			"states": {
				"scpclassified:connectable_north": [
					false,
					true
				],
				"scpclassified:connectable_east": [
					false,
					true
				],
				"scpclassified:connectable_south": [
					false,
					true
				],
				"scpclassified:connectable_west": [
					false,
					true
				]
			},
			"menu_category": {
				"group": "itemGroup.name.fence",
				"category": "construction"
			}
		},
		"components": {
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 4
			},
			"minecraft:material_instances": {
				"*": {
					"texture": "scpclassifiedIrailingcautiontexture",
					"render_method": "alpha_test"
				}
			},
			"minecraft:liquid_detection": {
				"detection_rules": [
					{
						"can_contain_liquid": true
					}
				]
			},
			"tag:scpclassified:connectableblock": {}
		},
		"permutations": [
			{
				"condition": "!q.block_state('scpclassified:connectable_north') && !q.block_state('scpclassified:connectable_south') && !q.block_state('scpclassified:connectable_east') && !q.block_state('scpclassified:connectable_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingpost"
					}
				}
			},
			{
				"condition": "!q.block_state('scpclassified:connectable_east') && !q.block_state('scpclassified:connectable_west') && q.block_state('scpclassified:connectable_north') && q.block_state('scpclassified:connectable_south')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							2,
							16,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							2,
							16,
							16
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingsouth1"
					}
				}
			},
			{
				"condition": "q.block_state('scpclassified:connectable_east') && q.block_state('scpclassified:connectable_west') && !q.block_state('scpclassified:connectable_north') && !q.block_state('scpclassified:connectable_south')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							16,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							16,
							16,
							2
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingnorth1"
					}
				}
			},
			{
				"condition": "q.block_state('scpclassified:connectable_north') && !q.block_state('scpclassified:connectable_south') && !q.block_state('scpclassified:connectable_east') && !q.block_state('scpclassified:connectable_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							2,
							16,
							13
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							2,
							16,
							13
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingsouth"
					}
				}
			},
			{
				"condition": "!q.block_state('scpclassified:connectable_north') && q.block_state('scpclassified:connectable_south') && !q.block_state('scpclassified:connectable_east') && !q.block_state('scpclassified:connectable_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-5
						],
						"size": [
							2,
							16,
							13
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-5
						],
						"size": [
							2,
							16,
							13
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingnorth"
					}
				}
			},
			{
				"condition": "!q.block_state('scpclassified:connectable_north') && !q.block_state('scpclassified:connectable_south') && q.block_state('scpclassified:connectable_west') && !q.block_state('scpclassified:connectable_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-5,
							0,
							-1
						],
						"size": [
							13,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-5,
							0,
							-1
						],
						"size": [
							13,
							16,
							2
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingeast"
					}
				}
			},
			{
				"condition": "!q.block_state('scpclassified:connectable_north') && !q.block_state('scpclassified:connectable_south') && !q.block_state('scpclassified:connectable_west') && q.block_state('scpclassified:connectable_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							13,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							13,
							16,
							2
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingwest"
					}
				}
			},
			{
				"condition": "q.block_state('scpclassified:connectable_north') && !q.block_state('scpclassified:connectable_south') && q.block_state('scpclassified:connectable_west') && !q.block_state('scpclassified:connectable_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							9,
							16,
							9
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							9,
							16,
							9
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingsouth2"
					}
				}
			},
			{
				"condition": "q.block_state('scpclassified:connectable_north') && !q.block_state('scpclassified:connectable_south') && !q.block_state('scpclassified:connectable_west') && q.block_state('scpclassified:connectable_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							9,
							16,
							9
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							9,
							16,
							9
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingsouth3"
					}
				}
			},
			{
				"condition": "!q.block_state('scpclassified:connectable_north') && q.block_state('scpclassified:connectable_south') && !q.block_state('scpclassified:connectable_west') && q.block_state('scpclassified:connectable_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							9,
							16,
							9
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							9,
							16,
							9
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingnorth3"
					}
				}
			},
			{
				"condition": "!q.block_state('scpclassified:connectable_north') && q.block_state('scpclassified:connectable_south') && q.block_state('scpclassified:connectable_west') && !q.block_state('scpclassified:connectable_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							9,
							16,
							9
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							9,
							16,
							9
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingnorth2"
					}
				}
			},
			{
				"condition": "q.block_state('scpclassified:connectable_north') && !q.block_state('scpclassified:connectable_south') && q.block_state('scpclassified:connectable_east') && q.block_state('scpclassified:connectable_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							16,
							9
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							16,
							9
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingsouth4"
					}
				}
			},
			{
				"condition": "q.block_state('scpclassified:connectable_north') && q.block_state('scpclassified:connectable_south') && !q.block_state('scpclassified:connectable_west') && q.block_state('scpclassified:connectable_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							9,
							16,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							9,
							16,
							16
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingnorth4"
					}
				}
			},
			{
				"condition": "!q.block_state('scpclassified:connectable_north') && q.block_state('scpclassified:connectable_south') && q.block_state('scpclassified:connectable_east') && q.block_state('scpclassified:connectable_west')",
				"components": {
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							16,
							16,
							9
						]
					},
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							16,
							16,
							9
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingsouth5"
					}
				}
			},
			{
				"condition": "q.block_state('scpclassified:connectable_north') && q.block_state('scpclassified:connectable_south') && q.block_state('scpclassified:connectable_west') && !q.block_state('scpclassified:connectable_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							9,
							16,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							9,
							16,
							16
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingnorth5"
					}
				}
			},
			{
				"condition": "q.block_state('scpclassified:connectable_north') && q.block_state('scpclassified:connectable_south') && q.block_state('scpclassified:connectable_west') && q.block_state('scpclassified:connectable_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							16,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							16,
							16
						]
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedrailingsouth6"
					}
				}
			}
		]
	}
}