2 Star 1 Fork 1

GermMC / WikiGermEngine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fxinteractive.md 14.08 KB
一键复制 编辑 原始数据 按行查看 历史
清茶 提交于 2022-06-19 12:09 . 同步wiki 2022/6/19/12:07

FxInterActive


FxInterActive简介

FxInterActive 是萌芽引擎的付费附属插件,它支持为玩家提供玩家之间的交互操作以及玩家之间的信息查看。(需要依赖Fxlib.jar)

该附属为第三方作者开发,请自行评估插件和风险后购买。


配置文件

Config.yml

#序列号
CDK: ''
#是否启用 右键 玩家,打开Gui
openGui1: true
#界面索引名<->配置文件名
Gui1: 'ActiveMain<->ActiveMain.yml'
#是否启用 潜行 + 右键 玩家,打开Gui
openGui2: true
#界面索引名<->配置文件名
Gui2: 'ActiveMain<->ActiveMain.yml'
#通过指令打开界面
#界面索引名<->配置文件名
Gui3: 'ActiveInfo<->ActiveInfo.yml'
#替换变量 物品槽内物品的界面信息
Active:
  #按钮组件名<->界面索引名<->界面文件名
  - '玩家属性<->ActiveInfo<->ActiveInfo.yml'

Gui示例配置


ActiveMain.yml

ActiveMain:
  options:
    startX: "w*0.5"
    startY: "h*0.5"
    startZ: "10"
    guide: false
  背景图:
    enable: true
    type: 0
    path: 'local<->textures/fxinteractive/background.png'
    locationX: "0"
    locationY: "0"
    width: "w*0.108"
    height: "h*0.375"
  #代码里会将变量目标替换为目标玩家
  目标玩家名:
    enable: true
    type: 4
    align: "center"
    scale: '1'
    font: "default"
    texts:
      - "&b&l%player_name%"
    locationX: "w*0.054"
    locationY: "h*0.020"
    locationZ: "0"
  #这个直接内置界面
  玩家属性:
    enable: true
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/fxinteractive/button.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/fxinteractive/button_hover.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    texts:
      - '&a&l属性'
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    invalid: false
    locationX: "w*0.0115"
    locationY: "h*0.068"
    width: "w*0.084"
    height: "h*0.0375"
  按钮2:
    enable: true
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/fxinteractive/button.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/fxinteractive/button_hover.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    invalid: false
    locationX: "w*0.0115"
    locationY: "h*0.1155"
    width: "w*0.084"
    height: "h*0.0375"
    clickDos:
      - 'message<->&a按钮2'
  按钮3:
    enable: true
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/fxinteractive/button.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/fxinteractive/button_hover.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    invalid: false
    locationX: "w*0.0115"
    locationY: "h*0.1630"
    width: "w*0.084"
    height: "h*0.0375"
    clickDos:
      - 'message<->&a按钮3'
  按钮4:
    enable: true
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/fxinteractive/button.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/fxinteractive/button_hover.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    invalid: false
    locationX: "w*0.0115"
    locationY: "h*0.2105"
    width: "w*0.084"
    height: "h*0.0375"
    clickDos:
      - 'message<->&a按钮4'
  按钮5:
    enable: true
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/fxinteractive/button.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/fxinteractive/button_hover.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    invalid: false
    locationX: "w*0.0115"
    locationY: "h*0.2580"
    width: "w*0.084"
    height: "h*0.0375"
    clickDos:
      - 'message<->&a按钮5'
  按钮6:
    enable: true
    type: 3
    #按钮默认的图片、GIF(如果填的是gif文件就会渲染成gif)
    defaultPath: 'local<->textures/fxinteractive/button.png'
    #鼠标悬浮到按钮时的图片、GIF(如果填的是gif文件就会渲染成gif)
    hoverPath: 'local<->textures/fxinteractive/button_hover.png'
    #悬浮到按钮播放声音(可删除)
    hoverSound: ''
    texts:
      - '&6&l邀请组队'
    #点击按钮播放声音(可删除)
    clickSound: 'minecraft:ui.button.click'
    invalid: false
    locationX: "w*0.0115"
    locationY: "h*0.3055"
    width: "w*0.084"
    height: "h*0.0375"
    clickDos:
      #后台执行
      - 'servercmd<->fxteam invite %player_name%'
      - 'servercmd<->say &a%player_name%点击了按钮6'

ActiveInfo.yml

ActiveInfo:
  options:
    startX: "w*0.425"
    startY: "h*0.304"
    startZ: "10"
    guide: false
  背景图:
    enable: true
    type: 0
    path: 'local<->textures/fxinteractive/player_info.png'
    locationX: "0"
    locationY: "0"
    width: "w*0.15"
    height: "h*0.413"
  目标玩家名:
    enable: true
    type: 4
    align: "center"
    scale: '1'
    font: "default"
    texts:
      - "&b&l%player_name%"
    locationX: "w*0.074"
    locationY: "h*0.19"
    locationZ: "0"
  目标玩家模型:
    enable: true
    type: 6
    name: "$cancel"
    #模型种类
    #填写 cursor 为玩家面前的生物
    #填写 self 为自己
    #填写某个原版生物模型的名字会渲染对应生物出来 名字大全请在wiki上看
    #填写某带有皮肤的UUID会渲染出带有这个皮肤的玩家模型
    model: 'cursor'
    followCursor: false
    lookAtX: "w*0.5"
    lookAtY: "h*0.48"
    size: "h*0.08"
    locationX: "w*0.074"
    locationY: "h*0.178"
    locationZ: "10"
  展示槽位1:
    enable: true
    type: 5
    #槽位的宽和高(可以使用 w h) 例如:size: 'w*0.1' 或 size: 'h*0.1' 或 size: ' w / h * 0.1'
    size: "h*0.036"
    #是否允许与该槽位交互(可删除,默认为false)
    interact: false
    #任何界面中identity都不能用一样的 防止槽位的物品混乱 (如果您是开发者 推荐使用 处理该槽位的插件全名小写_用来逻辑判断的字符)
    #可用萌芽自定义槽位id 或者 fxinter_inv_x 来获取指定位置物品(0 - 40), fxinter_inv_main 主手 fxinter_inv_off 副手
    identity: "fxinter_inv_39"
    #当槽位内有物品时显示的图片
    fillPath: 'local<->textures/fxinteractive/emptyslot.png'
    #当槽位为空的时候显示的图片
    emptyPath: 'local<->textures/fxinteractive/emptyslot.png'
    hoverSound: 'hoverbutton'
    clickSound: 'clickbutton'
    locationX: "w*0.022"
    locationY: "h*0.018"
    locationZ: "10"
  展示槽位2:
    enable: true
    type: 5
    #槽位的宽和高(可以使用 w h) 例如:size: 'w*0.1' 或 size: 'h*0.1' 或 size: ' w / h * 0.1'
    size: "h*0.036"
    #是否允许与该槽位交互(可删除,默认为false)
    interact: false
    #任何界面中identity都不能用一样的 防止槽位的物品混乱 (如果您是开发者 推荐使用 处理该槽位的插件全名小写_用来逻辑判断的字符)
    #可用萌芽自定义槽位id 或者 fxinter_inv_x 来获取指定位置物品(0 - 40)
    identity: "fxinter_inv_38"
    #当槽位内有物品时显示的图片
    fillPath: 'local<->textures/fxinteractive/emptyslot.png'
    #当槽位为空的时候显示的图片
    emptyPath: 'local<->textures/fxinteractive/emptyslot.png'
    hoverSound: 'hoverbutton'
    clickSound: 'clickbutton'
    locationX: "w*0.022"
    locationY: "h*0.062"
    locationZ: "10"
  展示槽位3:
    enable: true
    type: 5
    #槽位的宽和高(可以使用 w h) 例如:size: 'w*0.1' 或 size: 'h*0.1' 或 size: ' w / h * 0.1'
    size: "h*0.036"
    #是否允许与该槽位交互(可删除,默认为false)
    interact: false
    #任何界面中identity都不能用一样的 防止槽位的物品混乱 (如果您是开发者 推荐使用 处理该槽位的插件全名小写_用来逻辑判断的字符)
    #可用萌芽自定义槽位id 或者 fxinter_inv_x 来获取指定位置物品(0 - 40)
    identity: "fxinter_inv_37"
    #当槽位内有物品时显示的图片
    fillPath: 'local<->textures/fxinteractive/emptyslot.png'
    #当槽位为空的时候显示的图片
    emptyPath: 'local<->textures/fxinteractive/emptyslot.png'
    hoverSound: 'hoverbutton'
    clickSound: 'clickbutton'
    locationX: "w*0.022"
    locationY: "h*0.104"
    locationZ: "10"
  展示槽位4:
    enable: true
    type: 5
    #槽位的宽和高(可以使用 w h) 例如:size: 'w*0.1' 或 size: 'h*0.1' 或 size: ' w / h * 0.1'
    size: "h*0.036"
    #是否允许与该槽位交互(可删除,默认为false)
    interact: false
    #任何界面中identity都不能用一样的 防止槽位的物品混乱 (如果您是开发者 推荐使用 处理该槽位的插件全名小写_用来逻辑判断的字符)
    #可用萌芽自定义槽位id 或者 fxinter_inv_x 来获取指定位置物品(0 - 40)
    identity: "fxinter_inv_36"
    #当槽位内有物品时显示的图片
    fillPath: 'local<->textures/fxinteractive/emptyslot.png'
    #当槽位为空的时候显示的图片
    emptyPath: 'local<->textures/fxinteractive/emptyslot.png'
    hoverSound: 'hoverbutton'
    clickSound: 'clickbutton'
    locationX: "w*0.022"
    locationY: "h*0.148"
    locationZ: "10"
  展示槽位5:
    enable: true
    type: 5
    #槽位的宽和高(可以使用 w h) 例如:size: 'w*0.1' 或 size: 'h*0.1' 或 size: ' w / h * 0.1'
    size: "h*0.036"
    #是否允许与该槽位交互(可删除,默认为false)
    interact: false
    #任何界面中identity都不能用一样的 防止槽位的物品混乱 (如果您是开发者 推荐使用 处理该槽位的插件全名小写_用来逻辑判断的字符)
    #可用萌芽自定义槽位id 或者 fxinter_inv_x 来获取指定位置物品(0 - 40)
    identity: "fxinter_inv_0"
    #当槽位内有物品时显示的图片
    fillPath: 'local<->textures/fxinteractive/emptyslot.png'
    #当槽位为空的时候显示的图片
    emptyPath: 'local<->textures/fxinteractive/emptyslot.png'
    hoverSound: 'hoverbutton'
    clickSound: 'clickbutton'
    locationX: "w*0.107"
    locationY: "h*0.018"
    locationZ: "10"
  展示槽位6:
    enable: true
    type: 5
    #槽位的宽和高(可以使用 w h) 例如:size: 'w*0.1' 或 size: 'h*0.1' 或 size: ' w / h * 0.1'
    size: "h*0.036"
    #是否允许与该槽位交互(可删除,默认为false)
    interact: false
    #任何界面中identity都不能用一样的 防止槽位的物品混乱 (如果您是开发者 推荐使用 处理该槽位的插件全名小写_用来逻辑判断的字符)
    #可用萌芽自定义槽位id 或者 fxinter_inv_x 来获取指定位置物品(0 - 40)
    identity: "fxinter_inv_1"
    #当槽位内有物品时显示的图片
    fillPath: 'local<->textures/fxinteractive/emptyslot.png'
    #当槽位为空的时候显示的图片
    emptyPath: 'local<->textures/fxinteractive/emptyslot.png'
    hoverSound: 'hoverbutton'
    clickSound: 'clickbutton'
    locationX: "w*0.107"
    locationY: "h*0.062"
    locationZ: "10"
  展示槽位7:
    enable: true
    type: 5
    #槽位的宽和高(可以使用 w h) 例如:size: 'w*0.1' 或 size: 'h*0.1' 或 size: ' w / h * 0.1'
    size: "h*0.036"
    #是否允许与该槽位交互(可删除,默认为false)
    interact: false
    #任何界面中identity都不能用一样的 防止槽位的物品混乱 (如果您是开发者 推荐使用 处理该槽位的插件全名小写_用来逻辑判断的字符)
    #可用萌芽自定义槽位id 或者 fxinter_inv_x 来获取指定位置物品(0 - 40)
    identity: "fxinter_inv_2"
    #当槽位内有物品时显示的图片
    fillPath: 'local<->textures/fxinteractive/emptyslot.png'
    #当槽位为空的时候显示的图片
    emptyPath: 'local<->textures/fxinteractive/emptyslot.png'
    hoverSound: 'hoverbutton'
    clickSound: 'clickbutton'
    locationX: "w*0.107"
    locationY: "h*0.104"
    locationZ: "10"
  展示槽位8:
    enable: true
    type: 5
    #槽位的宽和高(可以使用 w h) 例如:size: 'w*0.1' 或 size: 'h*0.1' 或 size: ' w / h * 0.1'
    size: "h*0.036"
    #是否允许与该槽位交互(可删除,默认为false)
    interact: false
    #任何界面中identity都不能用一样的 防止槽位的物品混乱 (如果您是开发者 推荐使用 处理该槽位的插件全名小写_用来逻辑判断的字符)
    #可用萌芽自定义槽位id 或者 fxinter_inv_x 来获取指定位置物品(0 - 40)
    identity: "fxinter_inv_3"
    #当槽位内有物品时显示的图片
    fillPath: 'local<->textures/fxinteractive/emptyslot.png'
    #当槽位为空的时候显示的图片
    emptyPath: 'local<->textures/fxinteractive/emptyslot.png'
    hoverSound: 'hoverbutton'
    clickSound: 'clickbutton'
    locationX: "w*0.107"
    locationY: "h*0.148"
    locationZ: "10"
  文本:
    enable: true
    type: 4
    align: "left"
    scale: '1'
    font: "default"
    splitWidth: "w*0.4+40"
    texts:
      - "这里的文本你可以自定义"
      - "例如:"
      - "------------------------------"
      - "血量:           %player_health_rounded%/%player_max_health_rounded%"
      - "------------------------------"
      - "饱食度:         %player_food_level%/20"
      - "------------------------------"
    locationX: "w*0.013"
    locationY: "h*0.228"
    locationZ: "0"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/germmc/wiki-germ-engine.git
git@gitee.com:germmc/wiki-germ-engine.git
germmc
wiki-germ-engine
WikiGermEngine
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891