{
   "format_version":"1.21.50",
   "minecraft:block":{
      "description":{
         "identifier":"true:kitchen_cupboard",
         "menu_category":{
            "category":"construction"
         },
         "traits":{
            "minecraft:placement_direction":{
               "enabled_states":[
                  "minecraft:cardinal_direction"
               ]
            }
         },
         "states":{
            "true:stage":[
               0,
               1
            ]
         }
      },
      "permutations":[
         {
            "condition":"query.block_state('true:stage')==0",
            "components":{
               "minecraft:material_instances":{
                  "*":{
                     "texture":"kitchen_cupboard",
                     "render_method":"alpha_test"
                  }
               },
               "minecraft:light_emission":0,
               "minecraft:destructible_by_mining":{
                  "seconds_to_destroy":1.0
               },
               "minecraft:geometry":"geometry.kitchen_cupboard",
               "minecraft:selection_box":{
                  "origin":[
                     -8,
                     0,
                     0
                  ],
                  "size":[
                     16,
                     16,
                      8
                  ]
               }
            }
         },
         {
            "condition":"query.block_state('true:stage')==1",
            "components":{
               "minecraft:material_instances":{
                  "*":{
                     "texture":"kitchen_cupboard",
                     "render_method":"alpha_test"
                  }
               },
               "minecraft:light_emission":0,
               "minecraft:destructible_by_mining":{
                  "seconds_to_destroy":1.0
               },
               "minecraft:geometry":"geometry.kitchen_cupboard_open",
               "minecraft:selection_box":{
                  "origin":[
                     -8,
                     0,
                     0
                  ],
                  "size":[
                     16,
                     16,
                      8
                  ]
               }
            }
         },
         {
            "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,
                     270,
                     0
                  ]
               }
            }
         }
      ],
      "components":{
         "minecraft:loot":"loot_tables/blocks/construction/wood/oak.json",
         "minecraft:collision_box":true,
         "minecraft:light_dampening":0,
         "minecraft:custom_components":[
            "true:opening"
         ]
      }
   }
}