|This feature is exclusive to Bedrock Edition and Education Edition.|
Sets or queries player with a specific ability.
ability <player: target> <ability: Ability> <value: Boolean>
ability <player: target> [ability: Ability]
- Specifies the target to grant/revoke player ability. Must be a player name or target selector.
- Specifies the player ability.
- These abilities are:
worldbuildergives the selector the ability to become a world builder.
mayflylets the selector fly.
mutemutes the selector. If they chat, no-one can hear (or see) them.
- Specifies the value to set the ability to, must in between
Fails if the arguments are not specified correctly.
On success, Sets the player ability into the specified ability. If
value: Boolean isn't specified, returns whether the player has the specified ability. If
ability: Ability isn't specified, returns what abilities the player has.
|?||Added the function of query.|