Manage Posteffects for Players in Minecraft
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.
/posteffect add <targets> <posteffect>/posteffect clear <targets>/posteffect list <target>/posteffect remove <targets> <posteffect>/posteffect add <targets> <posteffect>/posteffect clear <targets>/posteffect list <target>/posteffect remove <targets> <posteffect>| Argument | Type | What 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 ID | A 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. |
/posteffect add @s minecraft:stoneAdds the posteffect with the resource ID minecraft:stone to the player running the command.
/posteffect list @pLists all active posteffects currently applied to the nearest player.
/posteffect clear @aClears every active posteffect from all players in the world.
/posteffect add Steve custom:blurApplies the custom:blur posteffect specifically to the player named Steve.
/posteffect remove @a[team=red] custom:tintRemoves the custom:tint posteffect from all players who are on the red team.
/posteffect clear @a[distance=..15]Clears all posteffects from any players standing within 15 blocks of where the command is run.
/posteffect list AlexChecks which posteffects are currently active on the player named Alex.
/posteffect remove @p[tag=finished] map:darknessRemoves the map:darkness posteffect from the nearest player who has the finished tag.
Measured from the game files of every Java release from 1.13 to 26.3.
The /posteffect command is only available in Minecraft Java Edition starting in version 26.3, and Bedrock Edition has no command with this name.
The /posteffect command was added to Minecraft Java Edition in version 26.3.
No, the target arguments for /posteffect only allow players, so you cannot apply posteffects to mobs or other non-player entities.
No, Minecraft Bedrock Edition does not have a /posteffect command.