Skip to content

Commit 31d3bc6

Browse files
ThePython10110gitbook-bot
authored andcommitted
GITBOOK-34: No subject
1 parent 514e191 commit 31d3bc6

15 files changed

+91
-89
lines changed

commands/README.md

+39-39
Large diffs are not rendered by default.

commands/ability.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Gets and sets player privileges.
66

77
## Syntax
88

9-
`ability <player> [ability] [value]`
9+
`ability <player> [<privilege>] [<value>]`
1010

1111
## Arguments
1212

@@ -16,19 +16,19 @@ Specifies the player for which to grant/revoke/query the privilege.
1616

1717
Must be a player name or target selector.
1818

19-
`[ability]` [String](../data-types.md#string)
19+
`<ability>` [String](../data-types.md#string)
2020

2121
Specifies the player privilege (such as `fly` or `server`).
2222

23-
`[value]` [Boolean](../data-types.md#boolean)
23+
`<value>` [Boolean](../data-types.md#boolean)
2424

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

2727
## Result
2828

2929
Fails if the arguments are not specified correctly.
3030

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.
3232

3333
## History
3434

commands/clear.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ Can remove items in the inventory lists specified by the "Clear Lists" setting.
1212

1313
## Syntax
1414

15-
`clear [targets] [item] [maxCount]`
15+
`clear [<targets>] [<item>] [<maxCount>]`
1616

1717
## Arguments
1818

19-
`[targets]` Selector
19+
`<targets>` Selector
2020

2121
Specifies the player(s) whose items are cleared. If not specified, defaults to the player who executes the command.
2222

23-
`[item]` Item
23+
`<item>` Item
2424

2525
Specifies the item to be cleared. If not specified, or if `*`, all items are cleared.
2626

2727
If any metadata is included (including just `[]`, the item must match exactly; otherwise, only the names must match.
2828

2929
Supports `group:groupname` syntax (but ignores metadata when using it).
3030

31-
`[maxCount]` Number
31+
`<maxCount>` Number
3232

3333
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.
3434

commands/clearspawnpoint.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ description: Clears respawn points set with /spawnpoint
66

77
## Syntax
88

9-
`/clearspawnpoint [targets]`
9+
`/clearspawnpoint [<targets>]`
1010

1111
## Arguments
1212

13-
`[targets]` [Selector](../data-types.md#selector)
13+
`<targets>` [Selector](../data-types.md#selector)
1414

1515
The player(s) to clear the spawnpoint for. If omitted, defaults to the executor.
1616

commands/enchant.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: >-
88

99
## Syntax
1010

11-
`enchant <targets> <enchantment> [level]`
11+
`enchant <targets> <enchantment> [<level>]`
1212

1313
## Arguments
1414

@@ -20,7 +20,7 @@ Specifies the target(s).
2020

2121
Specifies the enchantment to be added to the item held in the target's main hand.
2222

23-
`[level]` Number
23+
`<level>` Number
2424

2525
Specifies the enchantment level. Should not be greater than the maximum level for the specified enchantment. If not specified, defaults to 1.
2626

commands/execute.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ There are currently eight subcommands (eventually, there will be 12-13) for the
4848
* `... align <axes> -> execute`
4949
* `... as <targets> -> execute`
5050
* `... at <targets> -> execute`
51-
* `... facing (<pos>|entity <targets> [anchor]) -> execute`
51+
* `... facing (<pos>|entity <targets>) -> execute`
5252
* `... positioned (<pos>|as <targets>) -> execute`
5353
* `... rotated (<rot>|as <targets>) -> execute`
5454
* `... run <command>`
@@ -295,11 +295,13 @@ _**Syntax**_
295295

296296
_**Arguments**_
297297

298-
`<command>` [Long string](../data-types.md#long-string) Can be any [Better Command](./)
298+
`<command>` [Long string](../data-types.md#long-string)
299+
300+
Can be any [Better Command](./)
299301

300302
_**Result**_
301303

302-
Execute this command. Fails if fails.
304+
Execute the specified command. Fails if the command fails.
303305

304306
## Examples
305307

commands/forceenchant.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: >-
88

99
## Syntax
1010

11-
`forceenchant <targets> <enchantment> [level]`
11+
`forceenchant <targets> <enchantment> [<level>]`
1212

1313
## Arguments
1414

@@ -20,7 +20,7 @@ Specifies the target(s).
2020

2121
Specifies the enchantment to be added to the item held in the target's main hand.
2222

23-
`[level]` Number
23+
`<level>` Number
2424

2525
Specifies the enchantment level. If not specified, defaults to 1.
2626

commands/gamemode.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Sets a player's game mode.
66

77
## Syntax
88

9-
`gamemode <gamemode> [target]`
9+
`gamemode <gamemode> [<target>]`
1010

1111
## Arguments
1212

@@ -19,7 +19,7 @@ Must be one of the following:
1919
* `survival` (can be abbreviated as `s` or `0`)
2020
* `creative` (can be abbreviated as `c` or `1`)
2121

22-
`[target]` [Selector](../target-selectors.md)
22+
`<target>` [Selector](../target-selectors.md)
2323

2424
Specifies the target(s). If not specified, defaults to the player who executes the command.
2525

commands/gamerule.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ description: 'Sets or queries a setting (aliases: /changesetting)'
66

77
## Syntax
88

9-
`gamerule <setting> [value]`
9+
`gamerule <setting> [<value>]`
1010

1111
## Arguments
1212

1313
`<setting>` String
1414

1515
Specifies the setting to set or query.
1616

17-
`[value]`
17+
`<value>`
1818

1919
Specifies the value to set the setting to. If not specified, queries the value of the setting instead of setting it.
2020

commands/kill.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Kills entities. If, for some reason, entities do not die when attempting to kill
1010

1111
## Syntax
1212

13-
`kill [targets]`
13+
`kill [<targets>]`
1414

1515
`killme` (equivalent to `kill @s`)
1616

1717
## Arguments
1818

19-
`[targets]` [Selector](../target-selectors.md)
19+
`<targets>` [Selector](../target-selectors.md)
2020

2121
Specifies the target(s) to kill. If not specified, defaults to the player who executed the command.
2222

commands/remove.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Removes entities (like [`/kill`](kill.md), but doesn't call death callbacks). If
1010

1111
## Syntax
1212

13-
`remove [targets]`
13+
`remove [<targets>]`
1414

1515
## Arguments
1616

17-
`[targets]` [Selector](../target-selectors.md)
17+
`<targets>` [Selector](../target-selectors.md)
1818

1919
Specifies the target(s) to remove. If not specified, defaults to the player who executed the command.
2020

commands/scoreboard.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ description: Manages and displays scores for various scoreboard objectives.
1212

1313
Lists all existing objectives with their display names and criteria
1414

15-
`scoreboard objectives add <objective> <criterion> [displayName]`
15+
`scoreboard objectives add <objective> <criterion> [<displayName>]`
1616

17-
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).
1818

1919
`scoreboard objectives remove <objective>`
2020

2121
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.
2222

23-
`scoreboard objectives setdisplay <slot> [objective] [ascending|descending]`
23+
`scoreboard objectives setdisplay <slot> [<objective>] [ascending|descending]`
2424

2525
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).
2626

@@ -80,9 +80,9 @@ Any valid [Minetest colorstring](https://api.minetest.net/colors) or team color.
8080

8181
### Syntax
8282

83-
`scoreboard players list [targets]`
83+
`scoreboard players list [<targets>]`
8484

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.
8686

8787
`scoreboard players get <target> <objective>`
8888

@@ -100,17 +100,17 @@ Increments the targets' scores in that objective by the given amount. A negative
100100

101101
Decrements the targets' scores in that objective by the given amount. A negative number adds to the score.
102102

103-
`scoreboard players reset <targets> [objective]`
103+
`scoreboard players reset <targets> [<objective>]`
104104

105105
Deletes score or all scores for the targets. If `[objective]` is specified, then only that objective is cleared. Otherwise, this applies to all objectives.
106106

107107
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.
108108

109109
This also disables the target players' ability to use `/trigger` command (on the given objective if specified).
110110

111-
`scoreboard players test <player> <objective> [min] [max]`
111+
`scoreboard players test <player> <objective> [<min>] [<max>]`
112112

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 `*`).
114114

115115
`scoreboard players enable <targets> <objective>`
116116

@@ -124,9 +124,9 @@ Note that if any of the targets did not previously have a score for that scorebo
124124

125125
Applies an arithmetic operation altering the targets' scores in the target objective, using sources' scores in the source objective as input.
126126

127-
`scoreboard players display name <targets> <objective> [displayName]`
127+
`scoreboard players display name <targets> <objective> [<displayName>]`
128128

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).
130130

131131
`scoreboard players display numberformat <targets> <objective> blank`
132132

@@ -164,7 +164,7 @@ Must be a single word containing only alphanumeric characters and underscores.
164164

165165
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.
166166

167-
`[min]`/`[max]` [Number](../data-types.md#number) or `*`
167+
`<min>`/`<max>` [Number](../data-types.md#number) or `*`
168168

169169
Specifies the minimum and maximum value.
170170

@@ -178,7 +178,7 @@ Specifies the objective for targets.
178178

179179
Must be a single word containing only alphanumeric characters and underscores.
180180

181-
`<source>` [Selector](../target-selectors.md) or (../data-types.md#string)
181+
`<source>` [Selector](../target-selectors.md) or \[String]\(../data-types.md#string)
182182

183183
Specifies the source score holders whose scores are used as source inputs.
184184

@@ -202,7 +202,7 @@ Valid values:
202202

203203
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.
204204

205-
`[displayName]` [Long string](../data-types.md#long-string)
205+
`<displayName>` [Long string](../data-types.md#long-string)
206206

207207
Specifies the display name.
208208

commands/spawnpoint.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ description: Sets players' respawn points
66

77
## Syntax
88

9-
`/spawnpoint [targets]`
9+
`/spawnpoint [<targets>]`
1010

1111
## Arguments
1212

13-
`[targets]` [Selector](../data-types.md#selector)
13+
`<targets>` [Selector](../data-types.md#selector)
1414

1515
The player(s) to set the spawnpoint for. If omitted, defaults to the executor.
1616

commands/summon.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ description: Summons an entity.
66

77
## Syntax
88

9-
`summon <entity> [pos] [rot]`
9+
`summon <entity> [<pos>] [<rot>]`
1010

11-
`summon <entity> [pos] [facing <target>]`
11+
`summon <entity> [<pos>] [facing <target>]`
1212

1313
## Arguments
1414

1515
`<entity>` [String](../data-types.md#string) (entity ID or alias)
1616

1717
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.
1818

19-
`[pos]` [Position](../data-types.md#position)
19+
`<pos>` [Position](../data-types.md#position)
2020

2121
Specifies the position to summon the entity. If not specified, defaults to the position of the command's execution.
2222

23-
`[rot]` [Rotation](../data-types.md#rotation)
23+
`<rot>` [Rotation](../data-types.md#rotation)
2424

2525
Specifies the rotation (yaw and optionally pitch) of the summoned entity. If not specified, defaults to the rotation of the command's executor.
2626

commands/team.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ description: Controls teams.
66

77
## Syntax
88

9-
`team list [team]`
9+
`team list [<team>]`
1010

1111
Lists all teams, with their display names and the amount of entities in them. The optional `[team]` can be used to specify a particular team.
1212

13-
`team add <team> [displayName]`
13+
`team add <team> [<displayName>]`
1414

1515
Creates a team with the given name and optional display name. `[displayName]` defaults to `<team>` when unspecified.
1616

@@ -22,11 +22,11 @@ Deletes the specified team.
2222

2323
Removes all members from the named team.
2424

25-
`team join <team> [members]`
25+
`team join <team> [<members>]`
2626

2727
Assigns the specified entities to the specified team. If no entities are specified, makes the executor join the team.
2828

29-
`team leave [members]`
29+
`team leave [<members>]`
3030

3131
Makes the specified entities leave their teams. If no entities are specified, makes the executor leave their team.
3232

@@ -42,11 +42,11 @@ Specifies the name of a team.
4242

4343
Must be a single word containing only alphanumeric characters and underscores.
4444

45-
`[displayName]` [Long string](../data-types.md#long-string)
45+
`<displayName>` [Long string](../data-types.md#long-string)
4646

4747
Specifies the team name to be displayed.
4848

49-
`[members]` [Selector](../target-selectors.md) or (../data-types.md#string)
49+
`<members>` [Selector](../target-selectors.md) or (../data-types.md#string)
5050

5151
Specifies the entities to join or leave the team.
5252

0 commit comments

Comments
 (0)