不要问我可不可以整合,统一回复:不可以
配置文件位于./plugins/Lmenu/config
[CODE lang="json" title="config.json"]{
"itemid": 391, //点地打开菜单的物品id
"version": "1.1.0" //版本号
}[/CODE]
菜单文件详解
[CODE lang="json" title="main.json"]{
"type" : "form", //菜单类型,请固定填form
"title": "GUI菜单", //菜单标题
"content": "菜单如下", //描述文本
"buttons": [
{
"images": true, //是否显示图片
"image": {
"type": "path",
"data": "textures/items/apple" //路径请找个材质包解压找
},
"text": "说你好", //按钮显示文本
"command": "me hello", //执行的命令
"type": "default" //default为以玩家身份执行,@s会替换为玩家名字
},
{
"images": false,
"image": {
"type": "path",
"data": "textures/items/apple"
},
"text": "说你好",
"command": "say hi,@s",
"type": "cmd" //cmd为以后台身份执行,@s会替换为玩家名字
},
{
"images": false,
"image": {
"type": "path",
"data": "textures/items/apple"
},
"text": "说你好",
"command": "say hi",
"type": "op" //op类型的选项只有op可以选择,
//执行方式为以后台身份执行,@s会替换为玩家名字
},
{
"images": false,
"image": {
"type": "path",
"data": "textures/items/apple"
},
"text": "说你好",
"command": "tp",
"type": "form" //form类型会选择packs文件夹下的[command].json进行发送
//比如command为tp,type为form,就会把packs文件夹的tp.json发送给玩家
},
{
"images": false,
"image": {
"type": "path",
"data": "textures/items/apple"
},
"text": "说你好",
"command": "say hi",
"type": "opform" //opform与form的唯一不同就是opform只能由op打开
}
]
}[/CODE]
配置文件位于./plugins/Lmenu/config
[CODE lang="json" title="config.json"]{
"itemid": 391, //点地打开菜单的物品id
"version": "1.1.0" //版本号
}[/CODE]
菜单文件详解
[CODE lang="json" title="main.json"]{
"type" : "form", //菜单类型,请固定填form
"title": "GUI菜单", //菜单标题
"content": "菜单如下", //描述文本
"buttons": [
{
"images": true, //是否显示图片
"image": {
"type": "path",
"data": "textures/items/apple" //路径请找个材质包解压找
},
"text": "说你好", //按钮显示文本
"command": "me hello", //执行的命令
"type": "default" //default为以玩家身份执行,@s会替换为玩家名字
},
{
"images": false,
"image": {
"type": "path",
"data": "textures/items/apple"
},
"text": "说你好",
"command": "say hi,@s",
"type": "cmd" //cmd为以后台身份执行,@s会替换为玩家名字
},
{
"images": false,
"image": {
"type": "path",
"data": "textures/items/apple"
},
"text": "说你好",
"command": "say hi",
"type": "op" //op类型的选项只有op可以选择,
//执行方式为以后台身份执行,@s会替换为玩家名字
},
{
"images": false,
"image": {
"type": "path",
"data": "textures/items/apple"
},
"text": "说你好",
"command": "tp",
"type": "form" //form类型会选择packs文件夹下的[command].json进行发送
//比如command为tp,type为form,就会把packs文件夹的tp.json发送给玩家
},
{
"images": false,
"image": {
"type": "path",
"data": "textures/items/apple"
},
"text": "说你好",
"command": "say hi",
"type": "opform" //opform与form的唯一不同就是opform只能由op打开
}
]
}[/CODE]