{
    "format_version": "1.20.50",
    "minecraft:item": {
      "description": {
        "identifier": "cyn_hao:horse_whistle",
        "menu_category": {
          "category": "items"
        }
      },
  
      "components": {
        "minecraft:icon": {
            "texture": "cyn_hao.horse_whistle"
        },
        "minecraft:display_name":{
          "value": "item.cyn_hao:horse_whistle.name"
        },
        "minecraft:max_stack_size": {
            "value": 1
        }






        // Commented out, and will be updated when custom components are released in the future


        // // playerinteractwithentity was under consideration,
        // // but it appears that it's been in beta for a long time,
        // // even though jayly's documentation shows that it isn't.

        // // instead, we will (try to) use a custom component
        // // that will call a function when THIS SPECIFIC ITEM
        // // is used, instead of ANY item -> check if whistle
        //  ,
        // "minecraft:custom_components": [
        //   // our custom component's scripts define this item's
        //   // various behaviors (in this case, just when it is used)
        //   "cyn_hao:horse_whistle"
        // ]
      }
    }
  }
  