{
   "format_version":"1.16.100",
   "minecraft:attachable":{
      "description":{
         "identifier":"true:spray_can_blue",
         "materials":{
            "default":"entity_alphatest"
         },
         "textures":{
            "default":"textures/spray_cans/spray_can_blue"
         },
         "geometry":{
            "default":"geometry.spray_can"
         },
         "render_controllers":[
            "controller.render.default"
         ],
         "animations":{
            "first_person_main_hand":"animation.spray_can.first_person_main_hand",
            "first_person_sneaking_main_hand":"animation.spray_can.first_person_sneaking_main_hand",
            "third_person_main_hand":"animation.spray_can.third_person_main_hand"
         },
         "scripts":{
            "pre_animation":[
               "v.main_hand = c.item_slot == 'main_hand';"
            ],
            "animate":[
               {
                  "first_person_main_hand":"(v.main_hand && c.is_first_person) && !query.is_sneaking"
               },
               {
                  "first_person_sneaking_main_hand":"(v.main_hand && c.is_first_person) && query.is_sneaking"
               },
               {
                  "third_person_main_hand":"v.main_hand && !c.is_first_person"
               }
            ]
         }
      }
   }
}