{
    "format_version": "1.21.60",
    "minecraft:block": {
        "description": {
            "identifier": "farmersdelight:tatami_mat_main",
            "menu_category": {
                "category": "none"
            },
            "traits": {
                "minecraft:placement_direction": {
                    "enabled_states": [
                        "minecraft:cardinal_direction"
                    ],
                    "y_rotation_offset": 0.0
                }
            },
            "states": {
                "farmersdelight:init": [false, true]
            }
        },
        "permutations": [
            {
                "condition": "query.block_state('minecraft:cardinal_direction') == 'north'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [
                            0,
                            90,
                            0
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('minecraft:cardinal_direction') == 'south'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [
                            0,
                            270,
                            0
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('minecraft:cardinal_direction') == 'west'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [
                            0,
                            180,
                            0
                        ]
                    }
                }
            },
            {
                "condition": "query.block_state('minecraft:cardinal_direction') == 'east'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [
                            0,
                            0,
                            0
                        ]
                    }
                }
            }
        ],
        "components": {
            "minecraft:tick": {
                "interval_range": [
                    1,
                    1
                ]
            },
            "minecraft:custom_components": [
              "farmersdelight:tatami_mat"
            ],
            "minecraft:material_instances": {
                "*": {
                    "texture": "tatami_mat_odd"
                },
                "tatami_mat_side": {
                    "texture": "tatami_mat_side"
                },
                "tatami_mat_half": {
                    "texture": "tatami_mat_odd"
                }
            },
            "minecraft:geometry": "geometry.half_tatami_mat",
            "minecraft:placement_filter": {
                "conditions": [
                    {
                        "allowed_faces": [
                            "up"
                        ]
                    }
                ]
            },
            "minecraft:collision_box": {
                "origin": [
                    -8.0,
                    0.0,
                    -8.0
                ],
                "size": [
                    16.0,
                    2.0,
                    16.0
                ]
            },
            "minecraft:selection_box": {
                "origin": [
                    -8.0,
                    0.0,
                    -8.0
                ],
                "size": [
                    16.0,
                    2.0,
                    16.0
                ]
            },
            "minecraft:loot": "loot_tables/farmersdelight/tatami_mat.json",
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 0.3
            },
            "minecraft:destructible_by_explosion": {
                "explosion_resistance": 0.3
            },
            "tag:farmersdelight:tatami_mat": {},
            "tag:farmersdelight:straw_blocks": {}
        }
    }
}