#Particle Condition

1 messages · Page 1 of 1 (latest)

soft blaze
#

Is there anyway I could make a condition where my particle is only shown for those players with a specific item on hand? Or a tag maybe?

rose aurora
#

Try to use animation controllers

#

Have it transition between states by seeing whether the player has the item you are speaking of and then you can have the entity emit particles

soft blaze
#

I don’t want to use entities, I want to use blocks

#

I could do this with commands, but if one player has the item in main hand, the particles would show up for everyone, and I need it to only be shown for those players with the items at hand

rose aurora
#

Ah I see what you mean

#

Is it safe to assume that multiple players would be on the same pack?

soft blaze
#

Yeah of course

dense mural
#

Where do you want to display said particle?

soft blaze
#

In my custom block position

dense mural
#

Are you working on a map and the block position is known beforehand, or they can be placed by players anywhere?

soft blaze
#

By players anywhere, I’m trying to re-create the barriers behavior

#

so the particle will be where the block is, set by a /particle command

dense mural
#

Hmm

#

You can try to engineer a particle in such a way, that it always emits 2 particles

#

But if you spawn it with a special argument, it will emit only one particle

#

And if you control visibility of particles with particle count, by checking if it's odd or even

#

If u emit particles normally w /particle, it will spawn 2 invisible particles, but if you in addition to that spawn the same particle effect, but with a special argument that will ensure that it creates only one particle, then particles created with a command will be visible

#

You can spawn that controlling particle from the player, if q.is_local_player is true and if they're holding necessary item

#

U can make controlling particle invisible

soft blaze
#

I admit I am kinda confused there

#

I do not understand the necessity of the two invisible particles yet

dense mural
#

I have an example

#

#old-particles message