VOOZH about

URL: https://minecraft.wiki/w/Ability

⇱ /ability – Minecraft Wiki


/ability

From Minecraft Wiki
(Redirected from Ability)
Jump to navigation Jump to search
This page describes an education-related feature.
 
This feature is available only in Minecraft Education or when enabling the "Minecraft Education features" cheat setting in Bedrock Edition.
/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.

Syntax

[edit | edit source]
ability <player: target> <ability: Ability> [value: Boolean]
ability <player: target> [ability: Ability]

Arguments

[edit | edit source]

player: target: CommandSelector<Player>

Specifies the target for which to grant/revoke/query the ability.

ability: Ability: enum

Specifies the player ability.
These abilities are:
  • 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

Specifies the value to set the ability to, must be either true or false. If not specified, returns the current ability's value.

Result

[edit | edit source]

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.

History

[edit | edit source]

Bedrock Edition

[edit | edit source]
Pocket Edition Alpha
v0.16.0build 1Added /ability.
Bedrock Edition
1.5.0beta 1.5.0.4Added the function of query.

Minecraft Education

[edit | edit source]
Minecraft Education
1.7Added /ability.

Navigation

[edit | edit source]
Retrieved from "https://minecraft.wiki/w/Commands/ability?oldid=3591462"

Navigation menu