You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commands/ability.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ description: Gets and sets player privileges.
6
6
7
7
## Syntax
8
8
9
-
`ability <player> [ability] [value]`
9
+
`ability <player> [<privilege>] [<value>]`
10
10
11
11
## Arguments
12
12
@@ -16,19 +16,19 @@ Specifies the player for which to grant/revoke/query the privilege.
16
16
17
17
Must be a player name or target selector.
18
18
19
-
`[ability]`[String](../data-types.md#string)
19
+
`<ability>`[String](../data-types.md#string)
20
20
21
21
Specifies the player privilege (such as `fly` or `server`).
22
22
23
-
`[value]`[Boolean](../data-types.md#boolean)
23
+
`<value>`[Boolean](../data-types.md#boolean)
24
24
25
25
Specifies the value to set the ability to, must be either `true` or `false`. If not specified, returns the current privilege's value.
26
26
27
27
## Result
28
28
29
29
Fails if the arguments are not specified correctly.
30
30
31
-
On success, sets the player privilege into the specified privilege. If `[value]` isn't specified, returns whether the player has the specified privilege. If `<ability>` isn't specified, returns what privileges the player has.
31
+
On success, sets the player privilege into the specified privilege. If `<value>` isn't specified, returns whether the player has the specified privilege. If `<ability>` isn't specified, returns what privileges the player has.
Copy file name to clipboardExpand all lines: commands/clear.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -12,23 +12,23 @@ Can remove items in the inventory lists specified by the "Clear Lists" setting.
12
12
13
13
## Syntax
14
14
15
-
`clear [targets] [item] [maxCount]`
15
+
`clear [<targets>] [<item>] [<maxCount>]`
16
16
17
17
## Arguments
18
18
19
-
`[targets]` Selector
19
+
`<targets>` Selector
20
20
21
21
Specifies the player(s) whose items are cleared. If not specified, defaults to the player who executes the command.
22
22
23
-
`[item]` Item
23
+
`<item>` Item
24
24
25
25
Specifies the item to be cleared. If not specified, or if `*`, all items are cleared.
26
26
27
27
If any metadata is included (including just `[]`, the item must match exactly; otherwise, only the names must match.
28
28
29
29
Supports `group:groupname` syntax (but ignores metadata when using it).
30
30
31
-
`[maxCount]` Number
31
+
`<maxCount>` Number
32
32
33
33
Specifies the maximum number of items to be cleared. If not specified, or if `-1`, all items that match `[item]` are cleared. If `0`, instead of clearing items, detects and queries the amount of specified items.
Creates a new objective with the givven internal objective name, specified criterion, and the optional display name.
17
+
Creates a new objective with the given internal objective name, specified criterion, and the optional display name (display name defaults to internal name if unspecified).
18
18
19
19
`scoreboard objectives remove <objective>`
20
20
21
21
Deletes the named objective from the scoreboard system. Data is deleted from the objectives list, and if it was on a display list it is no longer displayed.
Displays score info for the objective in the given slot. Note that the objective parameter is optional; if no objective is provided, this display slot is cleared (returned to its default state). If slot is `sidebar`, there is an additional optional argument `ascending|descending` to specify the sort order (added in v2.0).
26
26
@@ -80,9 +80,9 @@ Any valid [Minetest colorstring](https://api.minetest.net/colors) or team color.
80
80
81
81
### Syntax
82
82
83
-
`scoreboard players list [targets]`
83
+
`scoreboard players list [<targets>]`
84
84
85
-
Lists all score holders that are tracked in some way by the scoreboard system. The optional `[targets]` parameter is used to list the scores of particular score holders.
85
+
Lists all score holders that are tracked in some way by the scoreboard system. The optional `[<targets>]` parameter is used to list the scores of particular score holders.
86
86
87
87
`scoreboard players get <target> <objective>`
88
88
@@ -100,17 +100,17 @@ Increments the targets' scores in that objective by the given amount. A negative
100
100
101
101
Decrements the targets' scores in that objective by the given amount. A negative number adds to the score.
Deletes score or all scores for the targets. If `[objective]` is specified, then only that objective is cleared. Otherwise, this applies to all objectives.
106
106
107
107
Note that this does not merely set the scores to 0: it removes the targets from the scoreboard system (or for the given objective) altogether.
108
108
109
109
This also disables the target players' ability to use `/trigger` command (on the given objective if specified).
110
110
111
-
`scoreboard players test <player> <objective> [min] [max]`
111
+
`scoreboard players test <player> <objective> [<min>] [<max>]`
112
112
113
-
Test if scores are between min and max (`[min]` and `[max]` default to -99,999,999,999,999 and 100,000,000,000,000 if not specified or `*`).
113
+
Test if scores are between min and max (`[<min>]` and `[<max>]` default to -99,999,999,999,999 and 100,000,000,000,000 if not specified or `*`).
114
114
115
115
`scoreboard players enable <targets> <objective>`
116
116
@@ -124,9 +124,9 @@ Note that if any of the targets did not previously have a score for that scorebo
124
124
125
125
Applies an arithmetic operation altering the targets' scores in the target objective, using sources' scores in the source objective as input.
126
126
127
-
`scoreboard players display name <targets> <objective> [displayName]`
127
+
`scoreboard players display name <targets> <objective> [<displayName>]`
128
128
129
-
Changes the display name of the targets' scores (if `[displayName]` is not specified, display name is reset).
129
+
Changes the display name of the targets' scores (if `<displayName>` is not specified, display name is reset).
@@ -164,7 +164,7 @@ Must be a single word containing only alphanumeric characters and underscores.
164
164
165
165
Specifies the new score, or an amount to add/subtract from the score. Must be a number from -99,999,999,999,999 to 100,000,000,000,000.
166
166
167
-
`[min]`/`[max]`[Number](../data-types.md#number) or `*`
167
+
`<min>`/`<max>`[Number](../data-types.md#number) or `*`
168
168
169
169
Specifies the minimum and maximum value.
170
170
@@ -178,7 +178,7 @@ Specifies the objective for targets.
178
178
179
179
Must be a single word containing only alphanumeric characters and underscores.
180
180
181
-
`<source>`[Selector](../target-selectors.md) or (../data-types.md#string)
181
+
`<source>`[Selector](../target-selectors.md) or \[String]\(../data-types.md#string)
182
182
183
183
Specifies the source score holders whose scores are used as source inputs.
184
184
@@ -202,7 +202,7 @@ Valid values:
202
202
203
203
In all cases except `><`, source's score remains unchanged when performing the operation on a target. If target or source isn't tracked by the specified objective, it is set to 0. If more than one score holder is specified as sources, performs the operation once with each source's score. If more than one target score holder is specified, performs the operation for each target one by one.
Copy file name to clipboardExpand all lines: commands/summon.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -6,21 +6,21 @@ description: Summons an entity.
6
6
7
7
## Syntax
8
8
9
-
`summon <entity> [pos] [rot]`
9
+
`summon <entity> [<pos>] [<rot>]`
10
10
11
-
`summon <entity> [pos] [facing <target>]`
11
+
`summon <entity> [<pos>] [facing <target>]`
12
12
13
13
## Arguments
14
14
15
15
`<entity>`[String](../data-types.md#string) (entity ID or alias)
16
16
17
17
Specifies the entity to be summoned. You can include the entity's staticdata in \[square brackets]. If an entity alias is used, and the alias matches multiple different entities, chooses a random one.
18
18
19
-
`[pos]`[Position](../data-types.md#position)
19
+
`<pos>`[Position](../data-types.md#position)
20
20
21
21
Specifies the position to summon the entity. If not specified, defaults to the position of the command's execution.
22
22
23
-
`[rot]`[Rotation](../data-types.md#rotation)
23
+
`<rot>`[Rotation](../data-types.md#rotation)
24
24
25
25
Specifies the rotation (yaw and optionally pitch) of the summoned entity. If not specified, defaults to the rotation of the command's executor.
0 commit comments