浮空物品 display
以 ItemDisplay 显示单一物品模型,不占装备栏,可自由定位。适合浮空武器、悬浮圣器、头顶光环等不需要骨骼动画的物件。
floating_relic:
type: display
name: '&b浮游圣器'
icon:
material: PAPER
wearable:
material: PAPER
custom-model-data: 10001
item-model: ''
scale: 1.0
follow-rotation: true
offset:
x: 0.0
y: 1.0
z: -0.4
- 物品写在
wearable区块,material必填。 - 每 tick 更新位置,并启用 1 tick 客户端插值,移动时画面平滑。
- 旧版配置中的
type: item仍可使用,会被当作display。