
Command
/posteffect
Adds, removes, clears or lists screen effects that are applied to a player's whole view.
| /posteffect (add <targets>|remove <targets>) <posteffect> |
| /posteffect (clear <targets>|list <target>) |
| Argument | Kind of value | What to type |
|---|---|---|
| <targets> | Target selector | For add, remove and clear: the players to change. One or more players. |
| <posteffect> | Id | For add and remove: the id of the screen effect, for example minecraft:invert. |
| <target> | Target selector | For list: the single player whose effects are listed. One player only. |
| Permission level | 2: operators, worlds with cheats on, command blocks and functions |
| Works in | Singleplayer with cheats enabled, operators on multiplayer servers, command blocks and functions. |
| Result | add reports "Added post effect <id> to <player>", remove "Removed post effect <id> from <player>", clear "Removed all post effects from <player>" (or the number of players when several changed). The number /execute store saves of add, remove and clear is the number of players that changed. list reports the player's effects and its result is how many the player has. |
| Sub-commands | add gives players a screen effect, remove takes one away, clear takes all of them away and list shows which effects one player has. |
| Effect ids | The effects included in the game are minecraft:blur, minecraft:creeper, minecraft:entity_outline, minecraft:invert and minecraft:spider. Resource packs can add more. The command accepts any id and does not check that the effect exists. |
| Several effects | A player can have more than one effect at a time. The effects are saved with the player and stay until they are removed. |
| Failures | add fails with "Player already has the specified post effect", remove with "Player does not have the specified post effect" and clear with "Player does not have any post effects to remove" when no chosen player changes. |
/posteffect add @s minecraft:invertInverts the colors of your screen.
/posteffect add @a minecraft:blurBlurs the screen of every player.
/posteffect remove @s minecraft:invertTakes the invert effect off your screen.
/posteffect list @sLists the screen effects you currently have.
/posteffect clear @aRemoves all screen effects from every player.

