{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "loled:item_popcorn",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/entity/popcorn/item_popcorn",
        "enchanted": "textures/misc/enchanted_item_glint"
      },
      "geometry": {
        "mainhand": "geometry.item_popcorn"
      },
      "animations": {
        "wield_controller": "controller.animation.item_popcorn.wield",
        "wield": "animation.item_popcorn.first_person_wield",
        "is_using_item": "animation.item_popcorn.is_using_item",
        "eat": "animation.item_popcorn.first_person_eat"
      },
      "scripts": {
        "animate": [
          {
            "wield_controller": "c.is_first_person && c.item_slot == 'main_hand' && q.get_equipped_item_name('main_hand') == 'item_popcorn'"
          },
          {
            "is_using_item": "!c.is_first_person && c.item_slot == 'main_hand' && q.get_equipped_item_name('main_hand') == 'item_popcorn' && q.is_sneaking"
          },
          {
            "eat": "c.is_first_person && q.is_using_item && c.item_slot == 'main_hand' && q.get_equipped_item_name('main_hand') == 'item_popcorn'"
          }
        ]
      },
      "render_controllers": [ 
	  { 
	  "controller.render.item_popcorn": "c.item_slot == 'main_hand'" 
	  }
	  ]
    }
  }
}
