概览
minecraft:destruction_particles 是一个方块组件:写在自定义方块的 components 对象中。 设置方块被破坏时飞出的小碎片。
字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
texture | string | "" | 碎片使用的纹理名称(来自 terrain_texture.json)。 |
tint_method | Tint Method | "none" | 碎片如何根据生物群系着色,例如 "grass" 或 "default_foliage"。用 "none" 保留纹理原本的颜色。 |
particle_count | integer | 100 | 方块破坏时出现多少碎片。范围:0 到 255 |
示例
写在 BP/blocks/<name>.json 的 components 对象中(值为默认值或占位值):
BP/blocks/<name>.json
{
"minecraft:destruction_particles": {
"texture": "",
"tint_method": "none",
"particle_count": 100
}
}