👻 特殊模型
简介
调用游戏的硬编码渲染器渲染物品堆叠。物品堆叠渲染时的渲染变换、粒子纹理变量等可以从物品模型中获取。
警告
当使用 minecraft:special
时,你需要指定一个硬编码渲染器。path
参数是基础模型渲染所必需的。
items:
default:gui_head_size_1:
model:
type: minecraft:special
path: minecraft:item/custom/gui_head_size_1
model:
type: minecraft:head
kind: player
硬编码渲染器
请查看 https://zh.minecraft.wiki/w/物品模型映射#special 以获取每个参数的解释。
minecraft:trident
渲染三叉戟
minecraft:conduit
渲染潮涌核心
minecraft:shield
渲染盾牌,底色和图案取决于
base_color
和banner_patterns
组件
minecraft:decorated_pot
渲染饰纹陶罐,四个面取决于
pot_decorations
组件
minecraft:hanging_sign
根据指定的纹理渲染悬挂式告示牌。
model:
type: "minecraft:hanging_sign"
wood-type: "oak"
texture: ...
minecraft:standing_sign
根据指定的纹理渲染告示牌。
model:
type: "minecraft:standing_sign"
wood-type: "oak"
texture: ...
minecraft:head
按照指定的头颅类型渲染生物头颅。 [当适用时,使用
minecraft:profile
组件中的玩家游戏档案信息。(1.21.4-1.21.5)]
model:
type: "minecraft:head"
kind: player
texture: ...
animation: 0.0
minecraft:player_head (1.21.6+)
渲染玩家的头,皮肤取决于
profile
组件
model:
type: "minecraft:player_head"
minecraft:chest
根据指定的纹理和开合程度渲染箱子。
model:
type: "minecraft:chest"
openness: 0.0
texture: ...
minecraft:shulker_box
根据指定的纹理、开合程度和方向渲染潜影盒。
model:
type: "minecraft:shulker_box"
openness: 0.0
orientation: up
texture: ...
minecraft:bed
根据指定的纹理渲染床。
model:
type: "minecraft:bed"
texture: ...
minecraft:banner
根据底色和
banner_patterns
物品堆叠组件渲染旗帜。
model:
type: "minecraft:bed"
color: white