{
	"format_version": "1.20.80",
	"minecraft:block": {
		"description": {
			"identifier": "v360:waxed_oxidized_copper_bars",
			"menu_category": {
				"category": "none",
				"group": "none",
				"is_hidden_in_commands": true
			},
			"states": {
				"v360:connect_north": [
					false,
					true
				],
				"v360:connect_south": [
					false,
					true
				],
				"v360:connect_east": [
					false,
					true
				],
				"v360:connect_west": [
					false,
					true
				]
			}
		},
		"components": {
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 15
			},
			"minecraft:destructible_by_explosion": {
				"explosion_resistance": 6
			},
			"minecraft:geometry": {
				"identifier": "geometry.copper_bars",
				"bone_visibility": {
					"center_bar": "!query.block_state('v360:connect_north') && !query.block_state('v360:connect_south') && !query.block_state('v360:connect_west') && !query.block_state('v360:connect_east')",
					"ends": "query.block_state('v360:connect_north') || query.block_state('v360:connect_south') || query.block_state('v360:connect_west') || query.block_state('v360:connect_east')",
					"north": "query.block_state('v360:connect_north')",
					"south": "query.block_state('v360:connect_south')",
					"east": "query.block_state('v360:connect_east')",
					"west": "query.block_state('v360:connect_west')"
				}
			},
			"minecraft:material_instances": {
				"*": {
					"texture": "oxidized_copper_bars",
					"render_method": "alpha_test"
				}
			},
			"minecraft:flammable": false,
			"minecraft:map_color": "#11686F",
			"minecraft:custom_components": [
				"v360:waxed_oxidized_copper_bars"
			],
			"minecraft:loot": "loot_tables/empty.json",
			"tag:v360:is_bar": {},
			"tag:stone": {},
			"tag:v360:copper": {}
		},
		"permutations": [
			{
				"condition": "!q.block_state('v360:connect_north') && !q.block_state('v360:connect_south') && !q.block_state('v360:connect_east') && !q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					}
				}
			},
			{
				"condition": "!q.block_state('v360:connect_east') && !q.block_state('v360:connect_west') && q.block_state('v360:connect_north') && q.block_state('v360:connect_south')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							2,
							16,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							2,
							16,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('v360:connect_east') && q.block_state('v360:connect_west') && !q.block_state('v360:connect_north') && !q.block_state('v360:connect_south')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							16,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							16,
							16,
							2
						]
					}
				}
			},
			{
				"condition": "q.block_state('v360:connect_north') && !q.block_state('v360:connect_south') && !q.block_state('v360:connect_east') && !q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							2,
							16,
							9
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							2,
							16,
							9
						]
					}
				}
			},
			{
				"condition": "!q.block_state('v360:connect_north') && q.block_state('v360:connect_south') && !q.block_state('v360:connect_east') && !q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							9
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							9
						]
					}
				}
			},
			{
				"condition": "!q.block_state('v360:connect_north') && !q.block_state('v360:connect_south') && q.block_state('v360:connect_east') && !q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							9,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							9,
							16,
							2
						]
					}
				}
			},
			{
				"condition": "!q.block_state('v360:connect_north') && !q.block_state('v360:connect_south') && !q.block_state('v360:connect_east') && q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							9,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							9,
							16,
							2
						]
					}
				}
			},
			{
				"condition": "q.block_state('v360:connect_north') && !q.block_state('v360:connect_south') && q.block_state('v360:connect_east') && !q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							9,
							16,
							9
						]
					}
				}
			},
			{
				"condition": "q.block_state('v360:connect_north') && !q.block_state('v360:connect_south') && !q.block_state('v360:connect_east') && q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							9,
							16,
							9
						]
					}
				}
			},
			{
				"condition": "!q.block_state('v360:connect_north') && q.block_state('v360:connect_south') && !q.block_state('v360:connect_east') && q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							9,
							16,
							9
						]
					}
				}
			},
			{
				"condition": "!q.block_state('v360:connect_north') && q.block_state('v360:connect_south') && q.block_state('v360:connect_east') && !q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							9,
							16,
							9
						]
					}
				}
			},
			{
				"condition": "q.block_state('v360:connect_north') && !q.block_state('v360:connect_south') && q.block_state('v360:connect_east') && q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							16,
							9
						]
					}
				}
			},
			{
				"condition": "q.block_state('v360:connect_north') && q.block_state('v360:connect_south') && !q.block_state('v360:connect_east') && q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-1,
							0,
							-8
						],
						"size": [
							9,
							16,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('v360:connect_north') && q.block_state('v360:connect_south') && q.block_state('v360:connect_east') && !q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							9,
							16,
							16
						]
					}
				}
			},
			{
				"condition": "!q.block_state('v360:connect_north') && q.block_state('v360:connect_south') && q.block_state('v360:connect_east') && q.block_state('v360:connect_west')",
				"components": {
					"minecraft:collision_box": {
						"origin": [
							-1,
							0,
							-1
						],
						"size": [
							2,
							16,
							2
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-1
						],
						"size": [
							16,
							16,
							9
						]
					}
				}
			}
		]
	}
}