Particles around a player while holding a tool

Published by Memeseus on
Status
Fixed
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.

Issue comments

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.

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.