{
   "format_version":"1.16.100",
   "minecraft:block":{
      "description":{
         "identifier":"vatonage:spruce_chair",
         "register_to_creative_menu":true,
         "properties": {
            "vatonage:data":[
               2,
               3,
               4,
               5
            ]
         }
      },
      "components":{
         "minecraft:creative_category":{
            "category":"construction"
         },
         "minecraft:material_instances":{
            "*":{
               "texture":"spruce_planks",
               "render_method":"alpha_test"
            }
         },
         "minecraft:pick_collision":{
            "origin":[
               -5,
               0,
               -5
            ],
            "size":[
               10,
               16,
               10
            ]
         },
         "minecraft:entity_collision":{
            "origin":[
               -5,
               0,
               -5
            ],
            "size":[
               10,
               7,
               10
            ]
         },
         "minecraft:geometry":"geometry.chairv",
         "minecraft:destroy_time":0.2,
         "minecraft:block_light_absorption":0,
         "minecraft:on_player_placing":{
            "event":"vatonage:place"
         }
      },
      "events":{
         "vatonage:place":{
            "set_block_property":{
               "vatonage:data":"(query.cardinal_facing_2d)"
            }
         }
      },
      "permutations":[
         {
            "condition":"query.block_property('vatonage:data') == 2",
            "components":{
               "minecraft:rotation":[
                  0,
                  0,
                  0
               ]
            }
         },
         {
            "condition":"query.block_property('vatonage:data') == 3",
            "components":{
               "minecraft:rotation":[
                  0,
                  180,
                  0
               ]
            }
         },
         {
            "condition":"query.block_property('vatonage:data') == 4",
            "components":{
               "minecraft:rotation":[
                  0,
                  90,
                  0
               ]
            }
         },
         {
            "condition":"query.block_property('vatonage:data') == 5",
            "components":{
               "minecraft:rotation":[
                  0,
                  270,
                  0
               ]
            }
         }
      ]
   }
}