Commands/posteffect
Minecraft Wiki article. Categories: In_development, In_development_Java_Edition, Java_Edition_upcoming, Commands
📌 Mirrored from Minecraft Wiki
This article is reproduced from Commands/posteffect on the Minecraft Wiki. Mirrored from revision 3724479. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
This article describes content that is currently in development for Java Edition.
This content has appeared in development versions for Java Edition 26.3, but the full update adding it has not been released yet.
/posteffect{
"title": "<code>/posteffect</code>",
"rows": [
{
"field": "2",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "None",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Allows adding or removing post effects to players.
Syntax
/posteffect add <players> <posteffect>- Adds the post effect to the players, if it doesn't already exist.
/posteffect clear <players>- Removes all post effects from the players, if any exist.
/posteffect list <target>- Lists all post effects applied to the player, if any exist.
/posteffect remove <players> <posteffect>- Removes the post effect from the players, if it exists.
Arguments
<players>: entity
- Specifies one or more players to modify.
- Must be a player name, a target selector or a UUID. And the target selector must be of player type.
<target>: entity
- Specifies a player to show the post effects applied list.
- Must be a player name, a target selector or a UUID. And the target selector must be of single-player type.
<posteffect>: resource_location
- Specifies the post effect to be added/removed. To be effective, the post-processing effect must be in
assets/<namespace>/post_effect. In vanilla, the post effects areminecraft:blur,minecraft:creeper,minecraft:entity_outline,minecraft:invert, andminecraft:spider. See post effect. - Must be a resource location for an unregistered content.
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
<players> fails to resolve to one or more online players. | Failed | |
/posteffect list | <target> selector allows more than 1 player. | |
| Any | Otherwise | Successful |
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On fail | 0 | 0 | 0 |
/posteffect list ... | On success | 1 | 1 | the total number of post effect a player has. | |
Other | On success | 1 | 1 | the total number of players affected. |
History
| Upcoming Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 26.3 | snap3 | Added /posteffect. | |||||
Navigation
Sources
- Commands/posteffect — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3724479.