1

im trying to get particles to show on all players in game mode creative. Currently i have this command:

/execute at <player> run particle minecraft:enchant ~ ~ ~ 1 1 1 1 10 force

How do i make this effect ONLY gamemode creative ??? thanks

0

1 Answer 1

3

This is the syntax for /particle:

/particle <name> <pos> <delta> <speed> <count> [force|normal] [viewers]

In your case you didn't specify the viewers, so it defaults to @a. To make the particles only visible to players in creative mode you can use this command:

/execute at @a run particle minecraft:enchant ~ ~ ~ 1 1 1 1 10 force @a[gamemode=creative]

If you want the particles to be visible to everyone, but only be around players in creative mode, then you can use this command:

/execute at @a[gamemode=creative] run particle minecraft:enchant ~ ~ ~ 1 1 1 1 10 force

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.