- Source of resources
- Original
- Applicable platforms
- Geyser互通服务器
- Copyright link
- http://imc.re/
- Applicable versions
- 已测试版本:1.12.2(其他自行测试)
本资源请过期,最新资源请移步至 Skript-Floodgate-Api
本插件仅在MineBBS公布,禁止发布至其他网站,转载请标注原链接!
BEMenuAPI介绍
这是什么?
BEMenuAPI是国内IMC.RE团队的着重互通开发研究的开发者ZIMZAZA4用Java语言开发的一个API插件。其用途是基于【Skript】脚本语言插件 和Floodgate 2.0 API实现基岩版原版菜单的API调用支持。使用效果截图:
示例
创建表单:set {_Form} to simple form with title "hello"
set {_Form} to modal form with title "hello" and buttons "button1" "button2"
set {_Form} to custom form with title "hello"
为Simple表单添加按钮:
add button display "button" to form {_simpleform}
add button display "button with url image" with url icon "url" to form {_simpleform}
add button display "button with path image" with path icon "path" to form {_simpleform}
操作
add content "content" to {_Form}
发送表单:
send-form {_Form} with id "Form_id" to {_player}
事件:
on Click Form Button: (ModalForm and SimpleForm)
on click form button:
set {_id} to data "form-id"
set {_button} to data "button-id"
on Submit Custom Form: (CustomForm)
on submit custom form:
set {_id} to data "form-id"
set {_input} to input component id 0 of data "response"