Skip to content

Default particle speed (extra) should be set to 0 instead of 1 #12859

@Privatech38

Description

@Privatech38

Expected behavior

Particle speed should default to 0, NMS code for the particle command, with only a name and position argument, is:

Commands.argument("pos", Vec3Argument.vec3())
    .executes(
        context1 -> sendParticles(
            context1.getSource(),
            ParticleArgument.getParticle(context1, "name"),
            Vec3Argument.getVec3(context1, "pos"),
            Vec3.ZERO,
            0.0F,
            0,
            false,
            context1.getSource().getServer().getPlayerList().getPlayers()
        )
    )

Observed/Actual behavior

Spawning a particle with the API defaults the extra (speed) field to 1. paper-server code:

@Override
public <T> void spawnParticle(Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, T data) {
this.spawnParticle(particle, x, y, z, count, offsetX, offsetY, offsetZ, 1, data);
}

and
@Override
public <T> void spawnParticle(Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, T data) {
this.spawnParticle(particle, x, y, z, count, offsetX, offsetY, offsetZ, 1, data);
}

This results in some of the particles to appear "aggressive" shooting off into the distance.

Steps/models to reproduce

Spawn a particle affected by speed like FLAME or CLOUD

Plugin and Datapack List

/

Paper version

[21:10:34 INFO]: This server is running Paper version 1.21.8-3-main@6fb36e3 (2025-07-17T16:11:32Z) (Implementing API version 1.21.8-R0.1-SNAPSHOT)

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions