Open the GUI and do some operations.

打開GUI並做一些操作。

最後測試使用插件版本:

Finally test the plugin version:

Action:

判斷指令為/cd cast expgui,並打開9格的介面。

Judge the command as /cd cast expgui, and open the 9-frame interface.

OpenExpGui:
  Action:
  - Break[ConditionType=Equals;ConditionContent=&gui_command&~expgui]
  - Inventory[fc=close]
  - Inventory[fc=gui;GuiID=Example]

Character:

#最後使用的/cd cast ??指令內容
#The last used /cd cast ?? command content
gui_command:
  message:
  - content[<fc_self_player_command>]

Gui:

顯示個人一些資訊,和左鍵點擊後頭上顯示表情符號(範例8)。

Show some personal information, and left-click to show emoticons on the head (Example 8).

Title: 'Basic character status'

Sort:
- 'Stats.ClassTable.DefaultClass.3.4.5.6.7.Class_Default|Close'
#- '9.10.11.12.13.14.15.16.17'
#- '18.19.20.21.22.23.24.25.26'
#- '27.28.29.30.31.32.33.34.35'
#- '36.37.38.39.40.41.42.43.44'
#- '45.46.47.48.49.50.51.52.53'
#
Buttons:

  Stats:
    Move: false
    Material: 'PLAYER_HEAD'
    HeadValue: '&gui_self_name&'
    CustomModelData: 0
    RemoveItemFlags: true
    Name: '{#f77703}&gui_self_name&'
    Lore:
    - ''
    - '{#f75703}Health: &gui_self_base_nowhealth&/&gui_self_base_maxhealth&'

  ClassTable:
    Move: false
    Material: 'COAL'
    CustomModelData: 300
    RemoveItemFlags: true
    Name: '§eClass list'
    Lore:
    - ''
    - '§e點擊打開職業列表'
    - '§eClick to open the class list'
    Left:
    - Action[a=Open_Gui_Class_Table_Example]

  DefaultClass:
    Move: false
    Material: 'COAL'
    CustomModelData: 0
    RemoveItemFlags: true
    Name: '§eDefault class'
    Lore:
    - ''
    - '§e轉為預設職業'
    - '§eSwitch to the default profession.'
    Left:
    - Action[a=rebirth_Class]