{
    "format_version": "1.21.40",
    "minecraft:block": {
        "description": {
            "identifier": "vtng_id:item_duct_filter",
            "menu_category": {
                "category": "items"
            },
            "states": {
                "vtng_id:top": [
                    "none",
                    "transfer",
                    "export"
                ],
                "vtng_id:bottom": [
                    "none",
                    "transfer",
                    "export"
                ],
                "vtng_id:north": [
                    "none",
                    "transfer",
                    "export"
                ],
                "vtng_id:south": [
                    "none",
                    "transfer",
                    "export"
                ],
                "vtng_id:west": [
                    "none",
                    "transfer",
                    "export"
                ],
                "vtng_id:east": [
                    "none",
                    "transfer",
                    "export"
                ],
                "vtng_id:export": [
                    false,
                    true
                ]
            }
        },
        "components": {
            "tag:vtng_id:item_duct_connection": {},
            "minecraft:custom_components": [
                "vtng_id:filter_interact",
                "vtng_id:item_duct_interact",
                "vtng_id:item_duct_connection"
            ],
            "minecraft:material_instances": {
                "*": {
                    "texture": "item_duct_filter",
                    "render_method": "alpha_test_single_sided",
                    "ambient_occlusion": true
                }
            },
            "minecraft:collision_box": {
                "origin": [
                    -4,
                    4,
                    -4
                ],
                "size": [
                    8,
                    8,
                    8
                ]
            },
            "minecraft:selection_box": {
                "origin": [
                    -4,
                    4,
                    -4
                ],
                "size": [
                    8,
                    8,
                    8
                ]
            },
            "minecraft:geometry": {
                "identifier": "geometry.vtng_id.item_duct",
                "bone_visibility": {
                    "default.duct": "q.block_state('vtng_id:north') != 'transfer' || q.block_state('vtng_id:south') != 'transfer' || q.block_state('vtng_id:top') != 'transfer' || q.block_state('vtng_id:bottom') != 'transfer'",
                    "connected_north.duct": "q.block_state('vtng_id:north') == 'transfer'",
                    "connected_south.duct": "q.block_state('vtng_id:south') == 'transfer'",
                    "connected_west.duct": "q.block_state('vtng_id:west') == 'transfer'",
                    "connected_east.duct": "q.block_state('vtng_id:east') == 'transfer'",
                    "connected_up.duct": "q.block_state('vtng_id:top') == 'transfer'",
                    "connected_down.duct": "q.block_state('vtng_id:bottom') == 'transfer'",
                    "connected_north.export.duct": "q.block_state('vtng_id:north') == 'export'",
                    "connected_south.export.duct": "q.block_state('vtng_id:south') == 'export'",
                    "connected_west.export.duct": "q.block_state('vtng_id:west') == 'export'",
                    "connected_east.export.duct": "q.block_state('vtng_id:east') == 'export'",
                    "connected_up.export.duct": "q.block_state('vtng_id:top') == 'export'",
                    "connected_down.export.duct": "q.block_state('vtng_id:bottom') == 'export'",
                    "connected_east_west.duct": false,
                    "connected_north_south.duct": false,
                    "connected_up_down.duct": false
                }
            },
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 1
            },
            "minecraft:light_dampening": 0,
            "tag:minecraft:is_pickaxe_item_destructible": {}
        },
        "permutations": [
            {
                "condition": "q.block_state('vtng_id:top') == 'export' || q.block_state('vtng_id:bottom') == 'export' || q.block_state('vtng_id:north') == 'export' || q.block_state('vtng_id:south') == 'export' || q.block_state('vtng_id:west') == 'export' || q.block_state('vtng_id:east') == 'export'",
                "components": {
                    "minecraft:custom_components": [
                        "vtng_id:filter_interact",
                        "vtng_id:item_duct_interact",
                        "vtng_id:item_duct_ticking"
                    ],
                    "minecraft:tick": {
                        "looping": true,
                        "interval_range": [
                            10,
                            10
                        ]
                    }
                }
            }
        ]
    }
}