{
	"format_version": "1.21.60",
	"minecraft:block": {
		"description": {
			"identifier": "scpcf:containment_box",
			"traits": {
				"minecraft:placement_direction": {
					"enabled_states": [
						"minecraft:cardinal_direction"
					],
					"y_rotation_offset": 180
				}
			},
			"states": {
          	  "containment:box": [
					0,
					1,
					2,
					3,
					4,
					5,
					6,
					7,
					8,
					9,
					10,
					11,
					12,
					13,
					14,
					15
				],
				"containment:box2": [
					0,
					1,
					2,
					3,
					4,
					5
				]
			}
		},
		"components": {
			"minecraft:custom_components": [
				"scpclassified:containmentboxfunctionality"
			],
			"minecraft:destructible_by_explosion": {
				"explosion_resistance": 5
			},
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 12
			},
			"minecraft:material_instances": {
				"*": {
					"texture": "scpclassifiedIcontainmentboxtexture",
					"render_method": "alpha_test"
				}
			},
			"minecraft:collision_box": {
				"origin": [
					-7,
					0,
					-7
				],
				"size": [
					14,
					14,
					14
				]
			},
			"minecraft:selection_box": {
				"origin": [
					-7,
					0,
					-7
				],
				"size": [
					14,
					14,
					14
				]
			},
			"minecraft:map_color": "#1F211F",
			"minecraft:liquid_detection": {
				"detection_rules": [
					{
						"can_contain_liquid": true
					}
				]
			},
			"minecraft:light_dampening": 9
		},
		"permutations": [
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'north'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							0,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'south'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							180,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'east'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							-90,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'west'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							90,
							0
						]
					}
				}
			},
            {
				"condition": "query.block_state('containment:box') == 0",
				"components": {
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentbox"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 1",
				"components": {
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxopen"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box2') == 0",
				"components": {
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentbox"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box2') == 1",
				"components": {
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxopen"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 2",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox2107.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp2107texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxscp2107open"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 3",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox2107.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp2107texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxscp2107"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 4",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox377.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp377texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxopenscp377"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 5",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox377.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp377texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxscp377"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 6",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox066.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp066texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxopenscp066"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 7",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox066.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp066texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxscp066"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 8",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox1025.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIscpcontainmentboxscp1025texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxopenscp1025"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 9",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox1025.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIscpcontainmentboxscp1025texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxscp1025"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 10",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox705.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp705",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxscp705open"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 11",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox705.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp705",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxscp705"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 12",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox198.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp198",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxopenscp198"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 13",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox198.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp198",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxscp198"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 14",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox008.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp008texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxopenscp008"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box') == 15",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox008.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp008texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxclosedscp008"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box2') == 2",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox081.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentbox081texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxopen081"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box2') == 3",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox081.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentbox081texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxclosedscp081"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box2') == 4",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox940.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp940texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxopenscp940"
					}
				}
			},
			{
				"condition": "query.block_state('containment:box2') == 5",
				"components": {
					"minecraft:loot": "loot_tables/containmentbox940.json",
					"minecraft:material_instances": {
						"*": {
							"texture": "scpclassifiedIcontainmentboxscp940texture",
							"render_method": "alpha_test"
						}
					},
					"minecraft:geometry": {
						"identifier": "geometry.scpclassifiedcontainmentboxclosedscp940"
					}
				}
			}
		]
	}
}