Skip to content

Particles

本文档由 src/stdlib/particles.mcrs 自动生成,请勿手动编辑。

API 列表


hearts_at

在指定坐标生成爱心粒子

redscript
fn hearts_at(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

flames

在指定坐标生成火焰粒子

redscript
fn flames(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

smoke

在指定坐标生成大烟雾粒子

redscript
fn smoke(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

explosion_effect

在指定坐标生成爆炸粒子

redscript
fn explosion_effect(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

sparkles_at

在指定坐标生成附魔闪烁粒子

redscript
fn sparkles_at(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

angry_at

在指定坐标生成愤怒村民粒子

redscript
fn angry_at(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

happy_at

在指定坐标生成开心村民粒子

redscript
fn happy_at(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

portal_effect

在指定坐标生成传送门粒子

redscript
fn portal_effect(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

totem_at

在指定坐标生成不死图腾粒子

redscript
fn totem_at(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

end_sparkles_at

在指定坐标生成末地烛粒子

redscript
fn end_sparkles_at(x: int, y: int, z: int)

参数

参数说明
xX 坐标
yY 坐标
zZ 坐标

particle_at_fx

在以方块 ×100 表示的定点坐标上生成粒子

redscript
fn particle_at_fx(x_fx: int, y_fx: int, z_fx: int, particle: string)

参数

参数说明
x_fxX 坐标(方块 ×100)
y_fxY 坐标(方块 ×100)
z_fxZ 坐标(方块 ×100)
particle粒子 ID,如 minecraft:flame

draw_line_2d

使用线性插值绘制二维粒子直线

redscript
fn draw_line_2d(x0: int, y0: int, x1: int, y1: int, steps: int, z: int, particle: string)

参数

参数说明
x0起点 X(方块 ×100)
y0起点 Y(方块 ×100)
x1终点 X(方块 ×100)
y1终点 Y(方块 ×100)
steps插值步数
z所在 Z 平面(方块 ×100)
particle粒子 ID

draw_circle

在 XZ 平面绘制粒子圆环

redscript
fn draw_circle(cx: int, cy: int, cz: int, r: int, steps: int, particle: string)

参数

参数说明
cx圆心 X(方块)
cy圆心 Y(方块)
cz圆心 Z(方块)
r半径(方块 ×100)
steps采样点数量
particle粒子 ID

draw_helix

绘制可配置半径、高度和圈数的粒子螺旋

redscript
fn draw_helix(cx: int, cy_start: int, cz: int, r: int, height: int, rotations: int, steps: int, particle: string)

参数

参数说明
cx中心 X(方块)
cy_start起始 Y(方块)
cz中心 Z(方块)
r半径(方块 ×100)
height总高度(方块)
rotations完整旋转圈数
steps采样点数量
particle粒子 ID

particle_dot

在整数方块坐标生成单个粒子

redscript
fn particle_dot(x: int, y: int, z: int, particle: string)

参数

参数说明
xX 坐标(整数方块)
yY 坐标(整数方块)
zZ 坐标(整数方块)
particle粒子 ID

Released under the MIT License.