{
	"format_version": "1.17.100",
	"minecraft:item": {
		"description": {
			"identifier": "mcbehub:gui",
			"category": "items"
		},
		"components": {
			"minecraft:max_stack_size": 1,
			"minecraft:hand_equipped": true,
			"minecraft:foil": true,
			"minecraft:icon": {
				"texture": "gui_item"
			},
			"minecraft:display_name": {
				"value": "Menu"
			},
			"minecraft:on_use": {
				"on_use": {
					"event": "mcbehub:open"
				}
			},
			"minecraft:should_despawn": true,
			"minecraft:allow_off_hand": true
		},
		"events": {
			"mcbehub:open": {
				"sequence": [
					{
						"run_command": {
							"command": [
								"summon mcbehub:npcdummy ~~~ mcbehub:open",
								"scoreboard objectives add money dummy",
								"scoreboard players add @s money 0"
							]
						}
					}
				]
			}
		}
	}
}