![]() |
VOOZH | about |
/ability| Permission level required |
1 |
|---|---|
| Restrictions | Cheat only |
{
"title": "<code>/ability</code>",
"rows": [
{
"field": "1",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Cheat article, displayed as Cheat) only<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Sets or queries a player with a specific ability.
ability <player: target> <ability: Ability> [value: Boolean]ability <player: target> [ability: Ability]player: target: CommandSelector<Player>
ability: Ability: enum
worldbuilder gives the selector the ability to become a world builder. This allows the player to build - even in Adventure Mode.mayfly lets the selector fly as if they were in Creative Mode.mute mutes the selector. If they chat, no one can hear (or see) their message.value: Boolean: enum
true or false. If not specified, returns the current ability's value.Fails if the arguments are not specified correctly.
On success, sets the player ability into the specified ability. If value: Boolean is not specified, returns whether the player has the specified ability. If ability: Ability is not specified, returns what abilities the player has.
| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.16.0 | build 1 | Added /ability. | |||||
| Bedrock Edition | |||||||
| 1.5.0 | beta 1.5.0.4 | Added the function of query. | |||||
| Minecraft Education | |||||||
|---|---|---|---|---|---|---|---|
| 1.7 | Added /ability. | ||||||