- ◆ 依赖插件
- Trmenu
通过Trmenu能展示nbt物品的特性,借助宝可梦mod提供的element ui 实现的调用本地贴图效果,因为1.12版本的,本人写了一个RePokeText来支持,本配置专为1.16服务,当然1.12也可以复制下面的配置,修改路径就好了,主要是由于1.12和1.16的贴图路径不一样
效果如下:
trmenu菜单如下,
其中{"type":"STRING","data":"pixelmon:textures/pokemon/888_zacian/all/hero/none/sprite.png"}}}'
代表调用路径,还有其他一些参数是调图片大小什么的,你自己自己修改数字摸索一下
效果如下:
trmenu菜单如下,
其中{"type":"STRING","data":"pixelmon:textures/pokemon/888_zacian/all/hero/none/sprite.png"}}}'
代表调用路径,还有其他一些参数是调图片大小什么的,你自己自己修改数字摸索一下
代码:
Title: '§b主菜单'
Layout:
- ''
- ''
- ' `test`'
- ''
- ' '
Events:
Open:
Close:
- 'sound: BLOCK_CHEST_CLOSE-1-0'
Icons:
'test':
display:
mat: '{"type":"PIXELMON_UI_ELEMENT","data":0,"amount":1,"meta":{"UITextScale":{"type":"FLOAT","data":15.0},"UIImageR":{"type":"FLOAT","data":1.0},"UIImageG":{"type":"FLOAT","data":1.0},"UITexWidth":{"type":"FLOAT","data":15.0},"UIYOffset":{"type":"INT","data":-8},"UITexHeight":{"type":"FLOAT","data":15.0},"UIImageWidth":{"type":"INT","data":18},"UIImageA":{"type":"FLOAT","data":0.98039216},"UIImageHeight":{"type":"INT","data":23},"UIImageB":{"type":"FLOAT","data":1.0},"UIXOffset":{"type":"INT","data":-3},"UIText":{"type":"STRING","data":""},"UIImage":{"type":"STRING","data":"pixelmon:textures/pokemon/888_zacian/all/hero/none/sprite.png"}}}'
name: '&6测试'
lore:
- ''
- ' &e点击即可进入测试!!'
- ''
actions:
all:
- 'open: test'