Particles around a player while holding a tool

Submitted by Memeseus on Wed, 03/13/2019 - 19:18
Upvotes: 0
Issue description

I was wondering if we could allow a tool to spawn particles around a player while its being held, I've tried to do this with procedures but i couldn't get it right

We already have the option to spawn particles around blocks and mobs, but i was wondering if we could be able to choose a particle a weapon would spawn around a player when held

I've attached some screenshots I created of another mod I made for the bedrock version

When I hold these swords, they spawn assigned particles are the player as long as they're held for.

Attachment Size
Example A97.06 KB 97.06 KB
Example B83.04 KB 83.04 KB

Issue comments

Submitted by Klemen on Wed, 03/13/2019 - 19:35

You can use a global trigger on player entity tick, check the item in players the main hand and spawn the particles if the right item is in the hand.

Submitted by Klemen on Thu, 03/14/2019 - 15:16

You can use repeat n times to spawn multiple particles and to spread them around, add a random number between say -10 to 10 to make them spawn around the entity.