Closed Cybermaxke closed 7 years ago
it's really sponge issue
look here
https://gyazo.com/269beb199cfce0f2e31fa5fbd7d3828c
and as you see here
https://jd.spongepowered.org/6.0.0/org/spongepowered/api/effect/particle/ParticleTypes.html
there is no NotePitch
for particletypes
just NOTE
nothing else
There is a NOTE
ParticleType
and a NOTE
ParticleOption
which requires a NotePitch
:
https://github.com/SpongePowered/SpongeAPI/blob/bleeding/src/main/java/org/spongepowered/api/effect/particle/ParticleOptions.java#L109
I'm not sure how do change it using NotePitch when sponge does not allow it to be the colors to be change
Here is an example: (This should give blue, I hope so)
ParticleEffect effect = ParticleEffect.builder().type(ParticleTypes.NOTE)
.option(ParticleOptions.NOTE, NotePitches.A_SHARP2)
.build();
ooooooh! thanks <3 I'll make improvement with your example thanks you very much
Thanks again :D
I noticed that you had issues with coloring notes in this plugin: https://github.com/runescapejon/CrazyFeet-Sponge/blob/master/src/main/java/me/runescapejon/CrazyFeet/Listeners/CrazyFeetListener.java#L41 It is true that you cannot change the color with the
COLOR
option, but you can use theNOTE
option instead. Just use theNotePitch
that matches the color that you want: https://minecraft.gamepedia.com/Note_Block