(→Arguments: Changed thing up a bit) Tag: Mobile edit |
(Added first introduced version for PE, still unknown in EE) Tag: Mobile edit |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Infobox command |
||
− | {{:commands/infobox |
||
|ability |
|ability |
||
+ | |member |
||
− | |op |
||
+ | |BE Alpha 0.16.0|BE Alpha 0.16.0 build 1 |
||
}} |
}} |
||
{{exclusive|bedrock|education}} |
{{exclusive|bedrock|education}} |
||
Line 22: | Line 23: | ||
:* <code>worldbuilder</code> gives the selector the ability to become a world builder. |
:* <code>worldbuilder</code> gives the selector the ability to become a world builder. |
||
:* <code>mayfly</code> lets the selector fly. |
:* <code>mayfly</code> lets the selector fly. |
||
− | :* <code>mute</code> mutes the selector. If they chat, no |
+ | :* <code>mute</code> mutes the selector. If they chat, no one can hear (or see) them. |
<code>value: Boolean</code> |
<code>value: Boolean</code> |
Revision as of 18:48, 15 October 2020
This feature is exclusive to Bedrock Edition and Minecraft Education.
Sets or queries player with a specific ability.
Syntax
ability <player: target> <ability: Ability> <value: Boolean>
ability <player: target> [ability: Ability]
Arguments
player: target
- Specifies the target to grant/revoke player ability. Must be a player name or target selector.
ability: Ability
- Specifies the player ability.
- These abilities are:
worldbuilder
gives the selector the ability to become a world builder.mayfly
lets the selector fly.mute
mutes the selector. If they chat, no one can hear (or see) them.
value: Boolean
- Specifies the value to set the ability to, must in between
true
orfalse
.
Result
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.
History
Education Edition | |||||
---|---|---|---|---|---|
? | Added /ability . | ||||
? | Added the function of query. |