{
    "format_version": "1.21.0",
    "minecraft:block": {
        "description": {
            "identifier": "sg_vtng:flywheel",
            "states": {
                "sg_vtng:hidden": [ false, true ]
            },
            "traits": {
                "minecraft:placement_position": {
                    "enabled_states": [ "minecraft:block_face" ]
                }
            }
        },
        "components": {
            "minecraft:custom_components": ["sg_vtng:rpm_initialize"],
            "minecraft:material_instances": {
                "*": {
                    "texture": "sg_vtng:flywheel",
                    "render_method": "alpha_test",
                    "ambient_occlusion": false
                }
            },
            "minecraft:collision_box": {
                "origin": [-1, 2.8, -5.5],
	            "size": [2, 10.4, 11]
            },
            "minecraft:selection_box": {
                "origin": [-2, 0, -8],
	            "size": [4, 16, 16]
            },
            "minecraft:geometry": {
              "identifier": "geometry.sg_vtng.flywheel",
              "bone_visibility": {
                "main": "q.block_state('sg_vtng:hidden') == false"
              }
            },
            "minecraft:transformation": { "rotation": [ 0, 0, 0 ] },
            "minecraft:destructible_by_mining": { "seconds_to_destroy": 2 },
            "minecraft:light_dampening": 0,
            "minecraft:map_color": "#554E58",
            "tag:minecraft:is_pickaxe_item_destructible":{}
        },
        "permutations": [
            {
                "condition": "q.block_state('minecraft:block_face') == 'south'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [ 0, 180, 0 ]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:block_face') == 'east'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [ 0, -90, 0 ]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:block_face') == 'west'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [ 0, 90, 0 ]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:block_face') == 'up'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [ 90, 0, 0 ]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:block_face') == 'down' && q.block_state('sg_vtng:hidden') == true",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [ -90, 0, 0 ]
                    }
                }
            }
        ]
    }
}