{
    "format_version": "1.16.100",
    "minecraft:block": {
        "description": {
            "identifier": "guardian:closed_chest_1",
            "properties": {
                "facing:direction": [ 1, 2, 3, 4, 5, 6 ]
            }
        },
        "components": {
            "minecraft:material_instances": {
                "*": {
                    "texture": "closed_chest_1",
                     "render_method": "alpha_test"
                }
            },
			"minecraft:entity_collision": {
                "origin": [ -7, 0, -7 ],
                "size": [ 14, 14, 14 ]
            },
            "minecraft:pick_collision": {
                "origin": [ -7, 0, -7 ],
                "size": [ 14, 14, 14 ]
            },
            "minecraft:loot": "loot_tables/blocks/chest/closed_chest.json",
            "minecraft:geometry": "geometry.closed_chest_1",
			"minecraft:creative_category": {
				"group": "itemGroup.name.chest",
				"category": "nature"
			},
            "minecraft:destroy_time": 1.5,
            "minecraft:on_player_placing": {
                "event": "placement_state"
            },
            "minecraft:flammable": {
                "flame_odds": 30,
                "burn_odds": 20
            },
            "minecraft:block_light_absorption": 0
        },
        "events": {
            "placement_state": {
                "set_block_property": {
                    "facing:direction": "(query.cardinal_facing_2d)"
                }
            }
        },
        "permutations": [
            {
                "condition": "query.block_property('facing:direction') == 2",
                "components": {
                    "minecraft:rotation": [ 0, 0, 0 ]
                }
            },
            {
                "condition": "query.block_property('facing:direction') == 3",
                "components": {
                    "minecraft:rotation": [ 0, 180, 0 ]
                }
            },
            {
                "condition": "query.block_property('facing:direction') == 4",
                "components": {
                    "minecraft:rotation": [ 0, 90, 0 ]
                }
            },
            {
                "condition": "query.block_property('facing:direction') == 5",
                "components": {
                    "minecraft:rotation": [ 0, 270, 0 ]
                }
            }
        ]
    }
}
