ChestCommands-アイコンノード

>

注意

次のノードは必ず記載が必要です。:①ID ② POSITION-X ③ POSITION-Y.

ID

アイコンのアイテムIDを記載します。石であればアイテムID: 1と記載出来ますがID: Stoneとも記載出来ます。大文字小文字の区別はありません。

種類を変える場合はStone:2と記載が必要です アイテムIDでは有効になりません。

例:

ID: stone

オプションですが、下記のように黒色羊毛(Wool:15)を10個という表記も出来ます

Example (10x black wool):

ID: ‘wool:15, 10’

POSITION-X とPOSITION-Y

3つ必ず必要なノードの内2つがこれです。

これは、アイコンを表示する位置を設定する項目です。

座標を理解すればあなたもかんたんに設定できます。

例:

POSITION-X: 5
POSITION-Y: 1

NAME - 名前 –

This node sets the display name of the icon (in the first line, when you hover on it). You can use color codes and symbols.

Example:

NAME: ‘&6This is a colored name!’

LORE – 説明 –

This node sets the lines that appear below the name. You can use color codes and symbols.

Example:

LORE:
– ‘Description of the item’
– ‘Some other details’
– ‘&cImportant note’

ENCHANTMENT – エンチャント –

This node sets the enchantments that will appear on an item, mostly used just for the glowing effect. List of enchantments: here.

Example:

ENCHANTMENT: ‘fire aspect, 1’

The level is optional. You can use multiple enchantments by separating them with a semicolon:

Example:

ENCHANTMENT: ‘sharpness, 5; durability, 10; silk touch’

COLOR -色-

This node sets the color of a leather armor, nothing more. The format of the color is ‘<red>, <green>, <blue>’. Each color must be between 0 and 255. Color picker here.

Example:

COLOR: ‘255, 0, 0’

SKULL-OWNER – 頭 –

This node sets the skull owner of an item, only if it’s a player’s head (skull:3). Useful from 1.8 and above, for displaying different head textues.

Example:

SKULL-OWNER: ‘filoghost’

COMMAND - コマンド –

This node sets the command. It supports a variety of commands, that will not be listed here. A normal command (without prefixes) is executed from player who clicked the icon. Commands (that should be called actions in this case) can also more things than just executing commands, look here to learn more.

Example:

COMMAND: ‘spawn’

PRICE – 価格 –

This node sets a price for the items. The commands will not be executed if the player who clicked has not enough money for the command. Please look here how to setup the economy environment.

Example:

PRICE: 100.0

LEVELS – 経験値レベル –

This node sets a price in experience levels for the items. The commands will not be executed if the player who clicked has not enough levels for the command. The levels will be removed.

Example:

LEVELS: 5

POINTS – ポイント –

This node is for the plugin Player Points. It requires a certain amount of points to use the item. The points will be removed.

Example:

POINTS: 50

REQUIRED-ITEM  – アイテム要求 –

This node sets a a required item, without it the commands will not be executed. The format is the same of ID.

Example (30x orange stained glass):

REQUIRED-ITEM: ‘stained glass:1, 30’

KEEP-OPEN – 表示維持 –

This node sets if a menu should be closed after clicking on the item (false by default). The value can be either true or false.

Example:

KEEP-OPEN: true

PERMISSION – パーミッション –

This node sets if a particular permission is required to click on the item and execute the commands. The permission can be chosen arbitrarily. You can negate it, put a minus – before the permission, to require the user not to have that permission (e.g.: ‘-my.custom.permission’)

Example:

PERMISSION: ‘my.custom.permission’

VIEW-PERMISSION – パーミッション表示 –

Just like PERMISSION, but a user without this permission will not be able to see the item. Can be negated (e.g.: ‘-my.custom.permission’).

Example:

VIEW-PERMISSION: ‘my.custom.permission’

PERMISSION-MESSAGE – パーミッションメッセージ –

This node is linked to permission, it changes the message when the user clicks on an item without permission (the default “no permission” message is configurable in config.yml).

Example:

PERMISSION-MESSAGE: ‘&cYou must be VIP to use this item!’

サイト内検索