/posteffect Command in Minecraft Java Edition

Manage Posteffects for Players in Minecraft

Java EditionSound & VisualsPermission: Level 2Added in 26.3

The /posteffect command lets operators add, remove, clear, or list posteffects applied to players in Minecraft Java Edition. It was introduced in version 26.3 and requires permission level 2 (cheats enabled in single-player).

Players and mapmakers use this command in command blocks or chat to control active posteffects on specific targets or checking which posteffects a player currently has.

Syntax (Java 26.3, 4 forms)

  1. /posteffect add <targets> <posteffect>
  2. /posteffect clear <targets>
  3. /posteffect list <target>
  4. /posteffect remove <targets> <posteffect>

The forms you will use most

/posteffect add <targets> <posteffect>
Adds a specific posteffect by its resource ID to one or more target players.
/posteffect clear <targets>
Removes all active posteffects from the selected target players.
/posteffect list <target>
Lists the current posteffects active on a single target player.
/posteffect remove <targets> <posteffect>
Removes one specific posteffect by its resource ID from the selected target players.

Arguments

ArgumentTypeWhat it means
<targets>target selector
players only
A player name, a UUID, or a target selector such as @p, @a, @e, or @s that selects one or more players.
<posteffect>resource IDA namespaced resource ID specifying the posteffect to add or remove.
<target>target selector
players only, one target
A player name, a UUID, or a target selector such as @p or @s that selects only a single player.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 26.3 Command added.

Tips

Common mistakes

Java vs Bedrock

The /posteffect command is only available in Minecraft Java Edition starting in version 26.3, and Bedrock Edition has no command with this name.

FAQ

What version of Minecraft added the /posteffect command?

The /posteffect command was added to Minecraft Java Edition in version 26.3.

Can I use /posteffect on mobs or other entities?

No, the target arguments for /posteffect only allow players, so you cannot apply posteffects to mobs or other non-player entities.

Does /posteffect work in Minecraft Bedrock Edition?

No, Minecraft Bedrock Edition does not have a /posteffect command.

Related commands

/particle/playsound/stopsound