Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
797 B
4
Indexable
Never
    @Override
    public void tick() {
        super.tick();

        if (!this.level.isClientSide) {
            Vec3 movement = this.getDeltaMovement();
            ServerLevel serverLevel = (ServerLevel) this.level;

            for (int i = 0; i < 16; i++) {
                serverLevel.sendParticles(ParticleTypes.FLAME, (this.getX() - movement.x) * random.nextDouble(), ((this.getY() + 1.0D) - movement.y) * random.nextDouble(), (this.getZ() - movement.z) * random.nextDouble(), 0, 0.0D, 0.0D, 0.0D, 0.0D);
                serverLevel.sendParticles(ParticleTypes.LARGE_SMOKE,(this.getX() - movement.x) * random.nextDouble(), ((this.getY() + 1.0D) - movement.y) * random.nextDouble(), (this.getZ() - movement.z) * random.nextDouble(), 0, 0.0D, 0.0D, 0.0D, 0.0D);
            }
        }
    }