//bridge-file-version: #22
{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "furnicraft:acacia_table",
			"properties": {
				"r:north": [
					false,
					true
				],
				"r:south": [
					false,
					true
				],
				"r:west": [
					false,
					true
				],
				"r:east": [
					false,
					true
				]
			}
		},
		"components": {
			"minecraft:geometry": "geometry.desk",
			"minecraft:material_instances": {
				"*": {
					"texture": "macacia",
					"render_method": "opaque"
				}
			},
			"minecraft:block_light_absorption": 0,
			"minecraft:destroy_time": 1.0,
			"minecraft:map_color": "#DD6418",
			"minecraft:flammable": {
				"burn_odds": 4,
				"flame_odds": 3
			},
			"minecraft:entity_collision": {
				"origin": [
					-8,
					12,
					-8
				],
				"size": [
					16,
					15,
					16
				]
			},
			"tag:table": {},
		    "minecraft:creative_category": {
            "group": "itemGroup.name.furnicraft_lampara",
            "category": "items"
		    },
			"minecraft:ticking": {
				"looping": true,
				"range": [
					0,
					0
				],
				"on_tick": {
					"event": "connect"
				}
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('r:north') == true && query.block_property('r:south') == false && query.block_property('r:west') == false && query.block_property('r:east') == false",
				"components": {
					"minecraft:geometry": "geometry.desk2"
				}
			},
			{
				"condition": "query.block_property('r:north') == false && query.block_property('r:south') == true && query.block_property('r:west') == false && query.block_property('r:east') == false",
				"components": {
					"minecraft:geometry": "geometry.desk3"
				}
			},
			{
				"condition": "query.block_property('r:west') == true && query.block_property('r:south') == false && query.block_property('r:north') == false && query.block_property('r:east') == false",
				"components": {
					"minecraft:geometry": "geometry.desk5",
					"minecraft:ticking": {
						"looping": true,
						"range": [
							0,
							0
						],
						"on_tick": {
							"event": "connect"
						}
					}
				}
			},
			{
				"condition": "query.block_property('r:east') == true && query.block_property('r:south') == false && query.block_property('r:north') == false && query.block_property('r:west') == false",
				"components": {
					"minecraft:geometry": "geometry.desk6",
					"minecraft:ticking": {
						"looping": true,
						"range": [
							0,
							0
						],
						"on_tick": {
							"event": "connect"
						}
					}
				}
			},
			{
				"condition": "query.block_property('r:north') == true && query.block_property('r:south') == true && query.block_property('r:west') == false && query.block_property('r:east') == false",
				"components": {
					"minecraft:geometry": "geometry.desk4"
				}
			},
			{
				"condition": "query.block_property('r:north') == true && query.block_property('r:south') == false && query.block_property('r:west') == true && query.block_property('r:east') == false",
				"components": {
					"minecraft:geometry": "geometry.desk9"
				}
			},
			{
				"condition": "query.block_property('r:north') == true && query.block_property('r:south') == false && query.block_property('r:west') == false && query.block_property('r:east') == true",
				"components": {
					"minecraft:geometry": "geometry.desk8"
				}
			},
			{
				"condition": "query.block_property('r:north') == true && query.block_property('r:south') == true && query.block_property('r:west') == true && query.block_property('r:east') == false",
				"components": {
					"minecraft:geometry": "geometry.desk4"
				}
			},
			{
				"condition": "query.block_property('r:north') == true && query.block_property('r:south') == true && query.block_property('r:west') == true && query.block_property('r:east') == true",
				"components": {
					"minecraft:geometry": "geometry.desk4"
				}
			},
			{
				"condition": "query.block_property('r:north') == true && query.block_property('r:south') == false && query.block_property('r:west') == true && query.block_property('r:east') == true",
				"components": {
					"minecraft:geometry": "geometry.desk4"
				}
			},
			{
				"condition": "query.block_property('r:north') == true && query.block_property('r:south') == true && query.block_property('r:west') == false && query.block_property('r:east') == true",
				"components": {
					"minecraft:geometry": "geometry.desk4"
				}
			},
			{
				"condition": "query.block_property('r:west') == true && query.block_property('r:south') == true && query.block_property('r:north') == false && query.block_property('r:east') == false",
				"components": {
					"minecraft:geometry": "geometry.desk10",
					"minecraft:ticking": {
						"looping": true,
						"range": [
							0,
							0
						],
						"on_tick": {
							"event": "connect"
						}
					}
				}
			},
			{
				"condition": "query.block_property('r:west') == false && query.block_property('r:south') == true && query.block_property('r:north') == false && query.block_property('r:east') == true",
				"components": {
					"minecraft:geometry": "geometry.desk7",
					"minecraft:ticking": {
						"looping": true,
						"range": [
							0,
							0
						],
						"on_tick": {
							"event": "connect"
						}
					}
				}
			},
			{
				"condition": "query.block_property('r:west') == true && query.block_property('r:south') == true && query.block_property('r:north') == false && query.block_property('r:east') == true",
				"components": {
					"minecraft:geometry": "geometry.desk4",
					"minecraft:ticking": {
						"looping": true,
						"range": [
							0,
							0
						],
						"on_tick": {
							"event": "connect"
						}
					}
				}
			},
			{
				"condition": "query.block_property('r:west') == true && query.block_property('r:south') == false && query.block_property('r:north') == false && query.block_property('r:east') == true",
				"components": {
					"minecraft:geometry": "geometry.desk4",
					"minecraft:ticking": {
						"looping": true,
						"range": [
							0,
							0
						],
						"on_tick": {
							"event": "connect"
						}
					}
				}
			},
			{
				"condition": "query.block_property('r:west') == true && query.block_property('r:south') == false && query.block_property('r:north') == true && query.block_property('r:east') == true",
				"components": {
					"minecraft:geometry": "geometry.desk4",
					"minecraft:ticking": {
						"looping": true,
						"range": [
							0,
							0
						],
						"on_tick": {
							"event": "connect"
						}
					}
				}
			}
		],
		"events": {
			"connect": {
				"sequence": [
					{
						"condition": "!q.block_neighbor_has_any_tag(1,0,0,'table') && !q.block_neighbor_has_any_tag(-1,0,0,'table') && !q.block_neighbor_has_any_tag(0,0,1,'table') && !q.block_neighbor_has_any_tag(0,0,-1,'table')",
						"set_block_property": {
							"r:west": false,
							"r:east": false,
							"r:north": false,
							"r:south": false
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,1,'table') && !q.block_neighbor_has_any_tag(0,0,-1,'table') && !q.block_neighbor_has_any_tag(1,0,0,'table') && !q.block_neighbor_has_any_tag(-1,0,0,'table')",
						"set_block_property": {
							"r:north": true,
							"r:south": false,
							"r:west": false,
							"r:east": false
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,-1,'table') && !q.block_neighbor_has_any_tag(0,0,1,'table') && !q.block_neighbor_has_any_tag(1,0,0,'table') && !q.block_neighbor_has_any_tag(-1,0,0,'table')",
						"set_block_property": {
							"r:west": false,
							"r:east": false,
							"r:north": false,
							"r:south": true
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(1,0,0,'table') && !q.block_neighbor_has_any_tag(0,0,-1,'table') && !q.block_neighbor_has_any_tag(0,0,1,'table') && !q.block_neighbor_has_any_tag(-1,0,0,'table')",
						"set_block_property": {
							"r:west": true,
							"r:east": false,
							"r:north": false,
							"r:south": false
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(-1,0,0,'table') && !q.block_neighbor_has_any_tag(0,0,-1,'table') && !q.block_neighbor_has_any_tag(0,0,1,'table') && !q.block_neighbor_has_any_tag(1,0,0,'table')",
						"set_block_property": {
							"r:west": false,
							"r:east": true,
							"r:north": false,
							"r:south": false
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,1,'table') && q.block_neighbor_has_any_tag(0,0,-1,'table') && !q.block_neighbor_has_any_tag(1,0,0,'table') && !q.block_neighbor_has_any_tag(-1,0,0,'table')",
						"set_block_property": {
							"r:north": true,
							"r:south": true,
							"r:west": false,
							"r:east": false
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,1,'table') && q.block_neighbor_has_any_tag(1,0,0,'table') && !q.block_neighbor_has_any_tag(0,0,-1,'table') && !q.block_neighbor_has_any_tag(-1,0,0,'table')",
						"set_block_property": {
							"r:north": true,
							"r:south": false,
							"r:west": true,
							"r:east": false
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,1,'table') && q.block_neighbor_has_any_tag(-1,0,0,'table') && !q.block_neighbor_has_any_tag(0,0,-1,'table') && !q.block_neighbor_has_any_tag(1,0,0,'table')",
						"set_block_property": {
							"r:north": true,
							"r:south": false,
							"r:west": false,
							"r:east": true
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,1,'table') && q.block_neighbor_has_any_tag(0,0,-1,'table') && q.block_neighbor_has_any_tag(1,0,0,'table') && !q.block_neighbor_has_any_tag(-1,0,0,'table')",
						"set_block_property": {
							"r:north": true,
							"r:south": true,
							"r:west": true,
							"r:east": false
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,1,'table') && q.block_neighbor_has_any_tag(0,0,-1,'table') && q.block_neighbor_has_any_tag(-1,0,0,'table') && !q.block_neighbor_has_any_tag(1,0,0,'table')",
						"set_block_property": {
							"r:north": true,
							"r:south": true,
							"r:west": false,
							"r:east": true
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(1,0,0,'table') && q.block_neighbor_has_any_tag(-1,0,0,'table') && q.block_neighbor_has_any_tag(0,0,1,'table') && q.block_neighbor_has_any_tag(0,0,-1,'table')",
						"set_block_property": {
							"r:north": true,
							"r:south": true,
							"r:west": true,
							"r:east": true
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,-1,'table') && q.block_neighbor_has_any_tag(1,0,0,'table') && !q.block_neighbor_has_any_tag(0,0,1,'table') && !q.block_neighbor_has_any_tag(-1,0,0,'table')",
						"set_block_property": {
							"r:west": true,
							"r:east": false,
							"r:north": false,
							"r:south": true
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,-1,'table') && q.block_neighbor_has_any_tag(-1,0,0,'table') && !q.block_neighbor_has_any_tag(0,0,1,'table') && !q.block_neighbor_has_any_tag(1,0,0,'table')",
						"set_block_property": {
							"r:west": false,
							"r:east": true,
							"r:north": false,
							"r:south": true
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(0,0,-1,'table') && q.block_neighbor_has_any_tag(-1,0,0,'table') && q.block_neighbor_has_any_tag(1,0,0,'table') && !q.block_neighbor_has_any_tag(0,0,1,'table')",
						"set_block_property": {
							"r:west": true,
							"r:east": true,
							"r:north": false,
							"r:south": true
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(1,0,0,'table') && q.block_neighbor_has_any_tag(-1,0,0,'table') && !q.block_neighbor_has_any_tag(0,0,-1,'table') && !q.block_neighbor_has_any_tag(0,0,1,'table')",
						"set_block_property": {
							"r:west": true,
							"r:east": true,
							"r:north": false,
							"r:south": false
						}
					},
					{
						"condition": "q.block_neighbor_has_any_tag(1,0,0,'table') && q.block_neighbor_has_any_tag(-1,0,0,'table') && q.block_neighbor_has_any_tag(0,0,1,'table') && !q.block_neighbor_has_any_tag(0,0,-1,'table')",
						"set_block_property": {
							"r:west": true,
							"r:east": true,
							"r:north": true,
							"r:south": false
						}
					}
				]
			}
		}
	}
}