Easy menu wiki

menu-title: "&6&lメインメニュー" # メニューのタイトル
menu-opensound: "ENTITY_EXPERIENCE_ORB_PICKUP" # メニューを開くときのサウンド
menu-background-item: "GRAY_STAINED_GLASS_PANE" # メニューの背景アイテム
menu-items: # メニューアイテムのリスト
- location: "1,1" # アイテムの位置 (列,行)
material: "DIAMOND_SWORD" # アイテムの素材
name: "&bアイテム1" # アイテムの表示名
command: "/command1" # アイテムをクリックしたときに実行するコマンド
sound: "ENTITY_ENDERMAN_TELEPORT" # アイテムをクリックしたときのサウンド
close-menu: true # アイテムをクリックした後にメニューを閉じるかどうか (true/false)
lore: #アイテムの説明文
- "&7説明文1"
- "&7説明文2"
- location: "1,2"
material: "GRASS_BLOCK"
name: "&aアイテム2"
command: "/command2"
sound: "BLOCK_NOTE_BLOCK_PLING"
# ... 他のアイテム ...
English (日本語の説明は下にあります)
Each option is described below, along with its data type, default value, and a detailed explanation.
1. menu-title
- Data Type: String
- Default Value: menu
- Description:Sets the title of the menu. This title will be displayed at the top of the menu interface.Supports Minecraft-style color and formatting codes using the & symbol. For example, &bMy Menu will display "My Menu" in aqua.
2. menu-opensound
- Data Type: String
- Default Value: (Empty String)
- Description:Specifies the sound to play when the menu is opened. If left empty, no sound will play.Enter the Minecraft sound name (case-insensitive), such as ENTITY_EXPERIENCE_ORB_PICKUP.Refer to the Minecraft Wiki - Sounds.json for a comprehensive list of available sound names.
3. menu-background-item
- Data Type: String
- Default Value: GRAY_STAINED_GLASS_PANE
- Description:Defines the material used for the menu's background. This provides a visual backdrop for the menu items.Specify a valid Minecraft material name, like BLACK_STAINED_GLASS_PANE or STONE.Consult the https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
for a list of available material names.
4. menu-items
- Data Type: List (Array) of Objects
- Description:This is the core configuration for defining the items displayed within the menu. Each item in the list represents a single interactive element in the menu.Each item object must contain the following properties:
- location (String, Required): Specifies the item's position in the menu grid as "Column,Row" (e.g., "1,1" for top-left). Columns and rows are 1-indexed.
- material (String, Required): The Minecraft material for the item (e.g., DIAMOND_SWORD).
- name (String, Optional): The display name of the item. Supports color and formatting codes (e.g., &a&lSpecial Item). If omitted, the material name is used.
- command (String, Required): The command executed when the item is clicked. Must start with / (e.g., /warp home, /give @p diamond 1).
- sound (String, Optional): The sound played when the item is clicked (e.g., ENTITY_ENDERMAN_TELEPORT). If omitted, no sound is played.
- close-menu (Boolean, Optional, Default: true): Determines whether the menu closes after the item is clicked. Set to false to keep the menu open, useful for opening another GUI.
- lore (List (Array) of Strings, Optional): A list of strings representing the item's description (lore). Each string is a new line in the lore. Supports color and formatting codes.
日本語
- menu-title: (文字列, デフォルト: "menu")
- メニューのタイトルを設定します。
- & を使ったカラーコード、装飾コードが使用可能です
- menu-opensound: (文字列, 大文字・小文字可能)
- メニューを開いたときに再生するサウンドを指定します。
- Minecraft のサウンド名を指定します (例: ENTITY_EXPERIENCE_ORB_PICKUP)。
- サウンド名の一覧は、Minecraft wik
- https://minecraft.fandom.com/wiki/Sounds.json
- などを参照してください。
- 設定しない場合、メニューを開いても音は鳴りません。
- menu-background-item: (文字列, デフォルト: "GRAY_STAINED_GLASS_PANE")
- メニューの背景に使用するアイテムの素材 (Material) を指定します。
- Minecraft の素材名を指定します (例: GRAY_STAINED_GLASS_PANE, BLACK_STAINED_GLASS_PANE, STONE)。
- 素材名の一覧は、Spigot Javadocs などを参照してください。
- menu-items: (リスト)
- メニューに表示するアイテムのリストを設定します。
- 各アイテムは以下のプロパティを持ちます。
- location: (文字列, 必須)
- メニュー内のアイテムの位置を "列,行" の形式で指定します。
- 列と行は 1 から始まります。
- 例: "1,1" は1列目1行目(左上)、"5,2" は5列目2行目。
- material: (文字列, 必須)
- アイテムの素材 (Material) を指定します。
- Minecraft の素材名を指定します (例: DIAMOND_SWORD, GRASS_BLOCK, CHEST)。
- name: (文字列, オプション)
- アイテムの表示名を指定します。
- & を使ったカラーコード、装飾コードが使用可能です (例: &bアイテム1, &a&lアイテム2)。
- 設定しない場合、アイテムの素材名が白色で表示されます。
- カラーコードの例
- &0 (黒)
- &1 (濃い青)
- &2 (濃い緑)
- &3 (濃い水色)
- &4 (濃い赤)
- &5 (濃い紫)
- &6 (金色)
- &7 (灰色)
- &8 (濃い灰色)
- &9 (青)
- &a (緑)
- &b (水色)
- &c (赤)
- &d (ピンク)
- &e (黄色)
- &f (白)
- 装飾コードの例
- &k (点滅)
- &l (太字)
- &m (打ち消し線)
- &n (下線)
- &o (斜体)
- command: (文字列, 必須)
- アイテムをクリックしたときに実行するコマンドを指定します。
- / から始める必要があります (例: /home, /warp spawn, /menu)。
- sound: (文字列, オプション)
- アイテムをクリックしたときに再生するサウンドを指定します。
- Minecraft のサウンド名を指定します (例: ENTITY_ENDERMAN_TELEPORT, BLOCK_NOTE_BLOCK_PLING)。
- 設定しない場合、アイテムをクリックしても音は鳴りません。
- close-menu: (true/false, オプション, デフォルト: 指定なし(true))
- アイテムをクリックした後にメニューを閉じるかどうかを指定します。
- true: メニューを閉じます (デフォルト)。
- false: メニューを閉じません。他のGUIを開くコマンドを実行する場合などに使用します。
- lore: (文字列のリスト, オプション)
- アイテムの説明文(lore)を設定します。
- リストの各要素が lore の1行になります。
- & を使ったカラーコード、装飾コードが使用可能です。
- location: (文字列, 必須)