{
  "format_version": "1.16.100",
  "minecraft:item": {
    "description": {
      "identifier": "x:aos_menu",
	  "category": "equipment"
    },
    "components": {
		"minecraft:creative_category": {
        "parent": "itemGroup.saomenu"
      },
      "minecraft:icon": {
        "texture": "aos",
        "frame_index": 0
      },
		"minecraft:display_name": {
        "value": "§bMenu \n§7(Hold to Change) \n§7(Crouch and Hold to Select)"
      },
	"minecraft:render_offsets": {
		"main_hand": {
	        "first_person": {
				"position": [0, -999, 0]
			},
	        "third_person": {
				"position": [0, -999, 0]
			}
		},
		"off_hand": {
	        "first_person": {
				"position": [0, -999, 0]
			},
	        "third_person": {
				"position": [0, -999, 0]
			}
		}
	},
      "minecraft:max_stack_size": 1,
      "minecraft:hand_equipped": false,
      "minecraft:allow_off_hand": false,
      "minecraft:foil": false,
      "minecraft:use_duration": 1,
	  "minecraft:cooldown": {
		"category": "slc",
		"duration": 0.0
      },
	  "minecraft:on_use": {
		"on_use": {
	   	  "event": "menu"
	 	}
	  }
    },
    "events": {
	  "menu": {
				"sequence": [
					{
						"sequence": [
							{
								"condition": "!q.is_sneaking",
								"sequence": [
									{
										"run_command": {
											"command": [							      
"playsound sao.click @s ~ ~ ~ 1 1",
												"replaceitem entity @s slot.weapon.mainhand 0 x:aos_menu1 1 0"
	       ],
											"target": "holder"
										}
									}
								]
							}
						]
					},
					{
						"condition": "q.is_sneaking",
						"run_command": {
							"command": [
"playsound note.bass @s ~ ~ ~ 1 1",
											
"title @s actionbar §cSelect any option!!"
							],
							"target": "holder"
						}
					}
				]
			}
	     }
  }
}