Open the GUI and do some operations.

打開GUI並做一些操作。

最後測試使用插件版本:1.16.11

Finally test the plugin version:1.16.11

Action:

用指令觸發,打開GUI。

Use the command to trigger and open the GUI.

Action:
- Action[a=OpenExpGui] ~onCommand

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

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

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

Character:

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

Gui: