{
	"multipart": [
		{   "when": { "north": false, "east": false, "south": false, "west": false },
			"apply": { "model": "block/iron_bars_post" }
		},
		{   "when": { "east": true, "west": false},
			"apply": { "model": "block/_bdc/iron_bars_cap_east" }
		},
		{   "when": { "west": true, "east": false},
			"apply": { "model": "block/_bdc/iron_bars_cap_west" }
		},
		{   "when": { "north": true, "south": false},
			"apply": { "model": "block/_bdc/iron_bars_cap_north" }
		},
		{   "when": { "south": true, "north": false },
			"apply": { "model": "block/_bdc/iron_bars_cap_south" }
		},
		{   "when": { "north": true },
			"apply": { "model": "block/_bdc/iron_bars_side_north" }
		},
		{   "when": { "east": true },
			"apply": { "model": "block/_bdc/iron_bars_side_east" }
		},
		{   "when": { "south": true },
			"apply": { "model": "block/_bdc/iron_bars_side_south" }
		},
		{   "when": { "west": true },
			"apply": { "model": "block/_bdc/iron_bars_side_west" }
		},
		{   "when": { "OR": [
			{ "north": true, "east": true, "south": true, "west": true },
			{ "north": true, "east": true, "south": false, "west": false },
			{ "north": false, "east": true, "south": true, "west": false },
			{ "north": false, "east": false, "south": true, "west": true },
			{ "north": true, "east": false, "south": false, "west": true },
			{ "north": false, "east": true, "south": true, "west": true },
			{ "north": true, "east": false, "south": true, "west": true },
			{ "north": true, "east": true, "south": false, "west": true },
			{ "north": true, "east": true, "south": true, "west": false }
            ]},
			"apply": { "model": "block/_bdc/iron_bars_top_all" }
		},
		{   "when": { "OR": [
			{ "north": true, "east": false, "south": true, "west": false },
			{ "north": true, "east": false, "south": false, "west": false },
			{ "north": false, "east": false, "south": true, "west": false }
            ]},
			"apply": { "model": "block/_bdc/iron_bars_top_ns" }
		},
		{   "when": { "OR": [
			{ "north": false, "east": true, "south": false, "west": true },
			{ "north": false, "east": false, "south": false, "west": true },
			{ "north": false, "east": true, "south": false, "west": false  }
            ]},
			"apply": { "model": "block/_bdc/iron_bars_top_ew" }
		}
	]
}
