跳到主要内容

👻 特殊模型

简介

调用游戏的硬编码渲染器渲染物品堆叠。物品堆叠渲染时的渲染变换、粒子纹理变量等可以从物品模型中获取。

警告

当使用 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_colorbanner_patterns 组件

minecraft:decorated_pot

渲染饰纹陶罐,四个面取决于 pot_decorations 组件

minecraft:hanging_sign

根据指定的纹理渲染悬挂式告示牌

model:
type: "minecraft:hanging_sign"
attachment: "ceiling_middle" # 26.1+
wood_type: "oak"
texture: ...

minecraft:standing_sign

根据指定的纹理渲染告示牌

model:
type: "minecraft:standing_sign"
attachment: "ground" # 26.1+
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"
chest_type: "single" # 26.1+
openness: 0.0
texture: ...

minecraft:shulker_box

根据指定的纹理、开合程度和方向渲染潜影盒

model:
type: "minecraft:shulker_box"
openness: 0.0
orientation: up # 1.21.4~1.21.11
texture: ...

minecraft:bed

根据指定的纹理渲染床

model:
type: "minecraft:bed"
part: "head" # 26.1+
texture: ...

minecraft:banner

根据底色和 banner_patterns 物品堆叠组件渲染旗帜

model:
type: "minecraft:banner"
attachment: "ground" # 26.1+
color: white

minecraft:copper_golem_statue

根据指定的纹理渲染铜傀儡像

model:
type: "minecraft:copper_golem_statue"
pose: sitting
texture: ...

minecraft:bell (26.1+)

渲染钟的动画部分

minecraft:book (26.1+)

渲染附魔台和讲台上的书

model:
type: "minecraft:book"
open_angle: 0
page1: 0
page2: 0

minecraft:end_cube (26.1+)

渲染末地折跃门或末地传送门

model:
type: "minecraft:end_cube"
effect: "portal"