跳到主要内容

✨ 墙上火把粒子方块

方块实体

属性名称属性类型是否必需
facinghorizontal_direction
blocks:
default:amethyst_wall_torch:
behavior:
type: wall_torch_particle_block
tick-interval: 10
particles: # 见下方粒子参数
- particle: smoke
x: 0.5
y: 0.7
z: 0.5
count: 1
offset-x: 0
offset-y: 0
offset-z: 0
speed: 0

粒子参数

particle: minecraft:end_rod # 必填; 字符串
x: 0 # 可选; 数字; 默认值: 0
y: 0 # 可选; 数字; 默认值: 0
z: 0 # 可选; 数字; 默认值: 0
count: 5 # 可选; 数字; 默认值: 1
offset-x: 0.3 # 可选; 数字; 默认值: 0
offset-y: 0.3 # 可选; 数字; 默认值: 0
offset-z: 0.3 # 可选; 数字; 默认值: 0
speed: 0 # 可选; 数字; 默认值: 0

# 以下参数仅在粒子为特定类型时才有效。

# 带物品粒子选项的粒子类型:item
item: default:chinese_lantern

# 带方块粒子选项的粒子类型:block、block_marker、falling_dust、dust_pillar 和 block_crumble
block-state: default:plam_log[axis=y]

# 带幽匿块充能粒子选项的粒子类型:sculk_charge
charge: 1.5

# 带尖啸粒子选项的粒子类型:shriek
shriek: 1

# 带粉末粒子选项的粒子类型:dust
color: 255,255,255
scale: 1.0

# 带粉末颜色过渡选项的粒子类型:dust_color_transition
from: 255,255,255
to: 0,0,0
scale: 4.0

# 带振动粒子选项的粒子类型:vibration
target-x: 0
target-y: 1
target-z: 0
arrival-time: 10

# 带目标颜色粒子选项的粒子类型:trail
target-x: 0
target-y: 1
target-z: 0
duration: 10