{
    "format_version": "1.21.20",
    "minecraft:block": {
        "description": {
            "identifier": "md3:carpet_block_yellow_md3",
            "menu_category": {
                "category": "items",
                "group": "itemGroup.name.carpet"
            },
            "traits": {
                "minecraft:placement_direction": {
                    "enabled_states": [
                        "minecraft:cardinal_direction"
                    ]
                }
            }
        },
        "permutations": [
            {
                "condition": "q.block_state('minecraft:cardinal_direction') == 'north'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [
                            0,
                            180,
                            0
                        ]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:cardinal_direction') == 'south'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [
                            0,
                            0,
                            0
                        ]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:cardinal_direction') == 'east'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [
                            0,
                            90,
                            0
                        ]
                    }
                }
            },{"condition":"q.block_state('minecraft:cardinal_direction') == 'west'","components":{"minecraft:transformation":{"rotation":[0,-90,0]}}            }
        ],
        "components": {
            "tag:carpet_block_yellow_md3": {},
            "minecraft:geometry": "geometry.carpet_block_mdp",
            "minecraft:material_instances": {
                "*": {
                    "texture": "carpet_yellow",
                    "render_method": "opaque"
                }
            },
            "minecraft:collision_box": {
                "origin": [
                    -8,
                    0,
                    -8
                ],
                "size": [
                    16,
                    16,
                    16
                ]
            },
            "minecraft:selection_box": {
                "origin": [
                    -8,
                    0,
                    -8
                ],
                "size": [
                    16,
                    16,
                    16
                ]
            },
            "minecraft:light_dampening": 0,
            "minecraft:light_emission": 0
        }
    }
}