Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added data field to the Particle Struct and particles system #529

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

leElvyn
Copy link
Contributor

@leElvyn leElvyn commented Jan 23, 2022

Added data field to the Particle Struct and particles system

Status

  • Ready
  • Development
  • Hold

Description

  • Added field data: f32 to struct struct Particle.
  • Added that field in send_particle()
  • Added that field to particle-examples

Related issues

Leave empty if none

Checklist

  • Ran cargo fmt, cargo clippy --all-targets, cargo build --release and cargo test and fixed any generated errors!
  • Removed unnecessary commented out code
  • Used specific traces (if you trace actions please specify the cause i.e. the player)

Note: if you locally don't get any errors, but GitHub Actions fails (especially at clippy) you might want to check your rust toolchain version. You can then feel free to fix these warnings/errors in your PR.

@Iaiao
Copy link
Contributor

Iaiao commented Jan 23, 2022

What is particle data? Is it particle speed or what? If so, I think it should be renamed (and also changed on wiki.vg)

@oxkitsune
Copy link
Member

it usually means speed, but for some particles it changes other stuff like colour fade speed, size variations etc. particle data is fine in my opinion.

not sure why i didnt include it originally when i did the particle stuff

@Iaiao
Copy link
Contributor

Iaiao commented Jan 23, 2022

Color transitions, colors, block data and other particle stuff is defined in ParticleKind (https://wiki.vg/Protocol#Particle)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants