{
	"format_version": "1.21.60",
	"minecraft:block": {
		"description": {
			"identifier": "sgs_farm:dec_fence_board_mangrove",
			"menu_category": {
				"category": "construction",
				"group": "minecraft:itemGroup.name.fence"
			},
			"states": {
				
				"sgs_farm:fence_north": [0, 1],
				"sgs_farm:fence_south": [0, 1],
				"sgs_farm:fence_east": [0, 1],
				"sgs_farm:fence_west": [0, 1],
				"sgs_farm:fence_inventory": [0, 1]
			}
		},
		"components": {
            "minecraft:map_color": "#993333",
            "minecraft:geometry": {
				"identifier": "geometry.sgs_farm_dec_fence_board",
				"bone_visibility": {
					"fence_inventory": "!q.block_state('sgs_farm:fence_inventory')",
					"fence_north": "q.block_state('sgs_farm:fence_north')",
					"fence_south": "q.block_state('sgs_farm:fence_south')",
					"fence_east": "q.block_state('sgs_farm:fence_east')",
					"fence_west": "q.block_state('sgs_farm:fence_west')"
				}
			},
			"minecraft:custom_components": [
				"sgs_farm:fence"
			],
			"minecraft:display_name":"Board Fence Mangrove\n§o§2Crops & Farms§r",
			"minecraft:flammable": {
				"catch_chance_modifier": 5,
				"destroy_chance_modifier": 20
			},
			"minecraft:destructible_by_mining":{
                "seconds_to_destroy": 2,
                "item_specific_speeds":[
                  {"item":{"tags":"query.all_tags('minecraft:is_axe', 'minecraft:wooden_tier')"},"destroy_speed":0.8},
                  {"item":{"tags":"query.all_tags('minecraft:is_axe', 'minecraft:stone_tier')"},"destroy_speed":0.6},
                  {"item":{"tags":"query.all_tags('minecraft:is_axe', 'minecraft:iron_tier')"},"destroy_speed":0.5},
                  {"item":{"tags":"query.all_tags('minecraft:is_axe', 'minecraft:golden_tier')"},"destroy_speed":0.4},
                  {"item":{"tags":"query.all_tags('minecraft:is_axe', 'minecraft:diamond_tier')"},"destroy_speed":0.4},
                  {"item":{"tags":"query.all_tags('minecraft:is_axe', 'minecraft:netherite_tier')"},"destroy_speed":0.3}
                ]
            },
			"tag:sgs_farm_fence": {},
			"minecraft:material_instances": {
				"*": {
					"texture": "sgs_farm_woodwork_misc_mangrove",
					"render_method": "alpha_test"
				}
			}
		},
		"permutations": [
			{
				"condition": "q.block_state('sgs_farm:fence_north') && !q.block_state('sgs_farm:fence_south') && !q.block_state('sgs_farm:fence_west') && q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-8, 0, -8],
						"size": [10, 16, 10]
					},
					"minecraft:selection_box": {
						"origin": [-8, 0, -8],
						"size": [10, 16, 10]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_north') && !q.block_state('sgs_farm:fence_south') && q.block_state('sgs_farm:fence_west') && !q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-2, 0, -8],
						"size": [10, 16, 10]
					},
					"minecraft:selection_box": {
						"origin": [-2, 0, -8],
						"size": [10, 16, 10]
					}
				}
			},
			{
				"condition": "!q.block_state('sgs_farm:fence_north') && q.block_state('sgs_farm:fence_south') && !q.block_state('sgs_farm:fence_west') && q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-8, 0, -2],
						"size": [10, 16, 10]
					},
					"minecraft:selection_box": {
						"origin": [-8, 0, -2],
						"size": [10, 16, 10]
					}
				}
			},
			{
				"condition": "!q.block_state('sgs_farm:fence_north') && q.block_state('sgs_farm:fence_south') && q.block_state('sgs_farm:fence_west') && !q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-2, 0, -2],
						"size": [10, 16, 10]
					},
					"minecraft:selection_box": {
						"origin": [-2, 0, -2],
						"size": [10, 16, 10]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_north') && q.block_state('sgs_farm:fence_south') && q.block_state('sgs_farm:fence_west') && q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-2, 0, -2],
						"size": [8, 16, 8]
					},
					"minecraft:selection_box": {
						"origin": [-8, 0, -8],
						"size": [16, 16, 16]
					}
				}
			},
			{
				"condition": "!q.block_state('sgs_farm:fence_north') && !q.block_state('sgs_farm:fence_south') && !q.block_state('sgs_farm:fence_west') && !q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-2, 0, 2],
						"size": [4, 16, -4]
					},
					"minecraft:selection_box": {
						"origin": [-2, 0, -2],
						"size": [4, 16, 4]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_north') && q.block_state('sgs_farm:fence_south') && q.block_state('sgs_farm:fence_west') && !q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-2, 0, -4],
						"size": [7, 16, 8]
					},
					"minecraft:selection_box": {
						"origin": [-2, 0, -8],
						"size": [10, 16, 16]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_north') && q.block_state('sgs_farm:fence_south') && !q.block_state('sgs_farm:fence_west') && q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-4, 0, -4],
						"size": [6, 16, 8]
					},
					"minecraft:selection_box": {
						"origin": [-8, 0, -8],
						"size": [10, 16, 16]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_north') && !q.block_state('sgs_farm:fence_south') && q.block_state('sgs_farm:fence_west') && q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-4, 0, -4],
						"size": [8, 16, 6]
					},
					"minecraft:selection_box": {
						"origin": [-8, 0, -8],
						"size": [16, 16, 10]
					}
				}
			},
			{
				"condition": "!q.block_state('sgs_farm:fence_north') && q.block_state('sgs_farm:fence_south') && q.block_state('sgs_farm:fence_west') && q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-4, 0, -2],
						"size": [8, 16, 7]
					},
					"minecraft:selection_box": {
						"origin": [-8, 0, -2],
						"size": [16, 16, 10]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_north') && !q.block_state('sgs_farm:fence_south') && !q.block_state('sgs_farm:fence_west') && !q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-2, 0, -8],
						"size": [4, 16, 10]
					},
					"minecraft:selection_box": {
						"origin": [-2, 0, -8],
						"size": [4, 16, 10]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_south') && !q.block_state('sgs_farm:fence_north') && !q.block_state('sgs_farm:fence_west') && !q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-2, 0, -2],
						"size": [4, 16, 10]
					},
					"minecraft:selection_box": {
						"origin": [-2, 0, -2],
						"size": [4, 16, 10]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_east') && !q.block_state('sgs_farm:fence_west') && !q.block_state('sgs_farm:fence_north') && !q.block_state('sgs_farm:fence_south')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-8, 0, -2],
						"size": [10, 16, 4]
					},
					"minecraft:selection_box": {
						"origin": [-8, 0, -2],
						"size": [10, 16, 4]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_west') && !q.block_state('sgs_farm:fence_east') && !q.block_state('sgs_farm:fence_north') && !q.block_state('sgs_farm:fence_south')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-2, 0, -2],
						"size": [10, 16, 4]
					},
					"minecraft:selection_box": {
						"origin": [-2, 0, -2],
						"size": [10, 16, 4]
					}
				}
			},
			{
				"condition": "q.block_state('sgs_farm:fence_north') && q.block_state('sgs_farm:fence_south') && !q.block_state('sgs_farm:fence_west') && !q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-2, 0, -8],
						"size": [4, 16, 16]
					},
					"minecraft:selection_box": {
						"origin": [-2, 0, -8],
						"size": [4, 16, 16]
					}
				}
			},
			{
				"condition": "!q.block_state('sgs_farm:fence_north') && !q.block_state('sgs_farm:fence_south') && q.block_state('sgs_farm:fence_west') && q.block_state('sgs_farm:fence_east')",
				"components": {
					"minecraft:collision_box": {
						"origin": [-8, 0, -2],
						"size": [16, 16, 4]
					},
					"minecraft:selection_box": {
						"origin": [-8, 0, -2],
						"size": [16, 16, 4]
					}
				}
			}
		]
	}
}