Skip to content

Effects

For: advanced users buffing players.

Potion effects for one player, one role, or everyone. The one-line forms live in the cheatsheet.

Tag Meaning
<peffect:player,effects,hide> Potion effects for one player, empty (alias <peff>).
<geffect:effects,hide> Potion effects for everyone online, empty (alias <geff>).
<reffect:role,effects,hide> Potion effects for one role, empty (alias <reff>).

Effects nest as [[id, amplifier, seconds], ...] (-1 seconds runs forever); the trailing hide flag defaults to true (no particles).

<peffect:player,effects,hide> applies potion effects to one online player, <geffect:effects,hide> to everyone online, and <reffect:role,effects,hide> to the named role members (ALL hits both sides; <peff>, <geff>, and <reff> alias them). The effects nest as [[id, amplifier, seconds], ...], ids bare or minecraft:-prefixed and case-blind, amplifier a whole number of 0 or more, seconds a whole number of 1 or more (-1 runs forever). The trailing hide flag is optional and defaults to true (no particles); set it false to show them. Delivery matches the vanilla effect give command otherwise: seconds run 20 ticks each, no ambient tint, icons shown. Unknown ids skip with one logged warning each while the rest still apply; anything malformed (bad triples, bad numbers, bad hide flag, wrong arity) warns and applies nothing. Offline <peffect> players warn and skip; offline or unknown <reffect> roles resolve like the other r tags.

- "<lf:effect_list,[[wither, 2, 1],[blindness, 0, 3]]>"
- '<peffect:<p>,<lf:effect_list>>'

Next Steps