跳到主要内容

材质

节点别称接受值描述
materialtexture, matString / Object图标材质(原版或特殊源)

原版材质

高版本物品名

material: red stained glass pane

低版本的数字 ID - DATA

material: '35:3'
材质容错

在 Invero 的原版材质写法中,我们是忽略大小写、下划线并自动寻找相似度最高的材质的
因此你既可以简单的写 red stained glass pane 也可以完整拼出 RED_STAINED_GLASS_PANE

模组物品

使用模组提供的物品作为材质时

  • 统一采用“模组名_物品名”的写法(modid_item

示例:

material: 模组名_mythril_ingot

头颅材质

图标结构为根节点,头颅材质可配置如下

texture:
head: '<头颅标识符>'
head: '<头颅标识符>'

这也是多态序列化的一个体现,后续其他类型的材质介绍将直接使用简化写法
所谓头颅标识符,我们支持以下多种类型的自动判别和应用

  • 自定义纹理(base64):eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDRmNDUyZDk5OGVhYmFjNDY0MmM2YjBmZTVhOGY0ZTJlNjczZWRjYWUyYTZkZmQ5ZTZhMmU4NmU3ODZlZGFjMCJ9fX0=
  • 自定义纹理(URL-hash):44f452d998eabac4642c6b0fe5a8f4e2e673edcae2a6dfd9e6a2e86e786edac0
  • 玩家名称:Arasple
  • 变量:{{player name}}
注意

对于在线玩家,插件会获取其玩家档案实际应用的皮肤纹理
对于离线玩家,默认请求此 ID 的正版玩家皮肤纹理
而变量标识符的应用逻辑是,解析变量的返回值重新判断纹理类型再应用

物品源

对第三方插件的支持

节点别称描述
AzureFlowafAzureFlow 插件支持
craftengineceCraftEngine 插件支持
ecoItemsecoEcoItems 插件支持
hmccosmeticshmcHMCCosmetics 插件支持
itemsadderiaItemsAdder 插件支持
ItemToolsitItemTools 插件支持
magiccosmeticsmagicMagicCosmetics 插件支持
magicgemgemMagicGem 插件支持
mmoitemsmiMMOItems 插件支持
NeigeItemsniNeigeItems 插件支持
nexo-Nexo 插件支持
oraxen-Oraxen 插件支持
ratziel-Ratziel 插件支持
sxitemsiSX-Item 插件支持
slimefunsfSlimefun 插件支持
zaphkielzapZaphkiel 插件支持
headdatabasehdbHeadDatabase 插件支持

示例:

  • AzureFlow
azureflow: custom_item
af: custom_item
  • CraftEngine
craftengine: namespace:custom_item
ce: namespace:custom_item
  • EcoItems
ecoitems: custom_item
eco: custom_item
  • HeadDatabase
headdatabase: custom_item
hdb: custom_item
  • HMCCosmetics
hmccosmetics: custom_item
hmc: custom_item
  • ItemsAdder
itemsadder: namespace:custom_item
ia: namespace:custom_item
  • ItemTools
itemtools: custom_item
it: custom_item
  • MagicCosmetics
magiccosmetics: custom_item
magic: custom_item
magiccosmetics: equipped:HAT # 某部位的时装(此处为帽子)
magic: equipped:HAT
  • MagicGem
magicgem: custom_item
gem: custom_item
  • MMOItems
mmoitems: namespace:custom_item
mi: namespace:custom_item
  • NeigeItems
title: 'NI物品测试'

layout: ' * '

items:
'*':
texture:
source: ni
value: ExampleItem

其中的source: ni也可以写成source: neigeitems,没区别
value:后面跟物品ID,也可以加指向数据,比如 value: ExampleItem {"test1":"test1","test2":"test2"}
物品ID优先检测NI物品,获取不到就会尝试获取MM物品

  • oraxen
oraxen: custom_item
  • Ratziel
ratziel: custom_item
  • SX-Item
sxitem: custom_item
si: custom_item
  • Slimefun
slimefun: custom_item
sf: custom_item
  • zaphkiel
zaphkiel: custom_item
zap: custom_item

序列化物品的支持

节点别称描述
serializedbase64, jsonbase64 / json 格式物品

Kether 脚本物品的支持

节点别称描述
kether-Kether 脚本物品

TODO_ DETAILED EXAMPLE