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
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,31 +6,29 @@ description: Gets and sets player privileges.
6
6
7
7
## Syntax
8
8
9
-
`ability <player> <ability> [value]`
10
-
11
-
`ability <player> [ability]`
9
+
`ability <player> [ability] [value]`
12
10
13
11
## Arguments
14
12
15
-
`<player>` Selector
13
+
`<player>`[Selector](../data-types.md#selector)
16
14
17
15
Specifies the player for which to grant/revoke/query the privilege.
18
16
19
17
Must be a player name or target selector.
20
18
21
-
`<ability>` or \[`ability]` String
19
+
`[ability]`[String](../data-types.md#string)
22
20
23
21
Specifies the player privilege (such as `fly` or `server`).
24
22
25
-
`[value]` Boolean
23
+
`[value]`[Boolean](../data-types.md#boolean)
26
24
27
25
Specifies the value to set the ability to, must be either `true` or `false`. If not specified, returns the current privilege's value.
28
26
29
27
## Result
30
28
31
29
Fails if the arguments are not specified correctly.
32
30
33
-
On success, sets the player privilege into the specified privilege. If `value: Boolean` isn't specified, returns whether the player has the specified privilege. If `ability: Privilege` 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/execute.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ _Usage_
70
70
71
71
_Arguments_
72
72
73
-
`<axes>` String
73
+
`<axes>`[String](../data-types.md#string)
74
74
75
75
Any non-repeating combination of the characters 'x', 'y', and 'z'. Axes can be declared in any order, but they cannot duplicate. (For example, `x`, `xz`, `zyx`, or `yz`.)
76
76
@@ -101,7 +101,7 @@ _Syntax_
101
101
102
102
_Arguments_
103
103
104
-
`<anchor>`String (either`eyes` or `feet`)
104
+
`<anchor>`[String](../data-types.md#string) (either`eyes` or `feet`)
105
105
106
106
Whether to anchor the executed command to eyes or feet.
107
107
@@ -119,7 +119,7 @@ _Syntax_
119
119
120
120
_Arguments_
121
121
122
-
`<targets>` Selector
122
+
`<targets>`[Selector](../data-types.md#selector)
123
123
124
124
Target entity/entities to become the new executor.
125
125
@@ -153,7 +153,7 @@ _Syntax_
153
153
154
154
_Arguments_
155
155
156
-
`<targets>`: Selector
156
+
`<targets>`[Selector](../data-types.md#selector)
157
157
158
158
Target entity/entities to match position, rotation, and dimension with.
159
159
@@ -196,19 +196,19 @@ _**Arguments**_
196
196
197
197
Options: `facing <pos>`
198
198
199
-
`<pos>` Position
199
+
`<pos>`[Position](../data-types.md#position)
200
200
201
201
Coordinates to rotate toward.
202
202
203
203
Options: `facing entity <targets> [anchor]`
204
204
205
-
`<targets>` Selector
205
+
`<targets>`[Selector](../data-types.md#selector)
206
206
207
207
The target(s) to rotate toward.
208
208
209
209
Must be a player name or [target selector](../target-selectors.md).
210
210
211
-
`[anchor]` String (either `eyes` or `feet`)
211
+
`[anchor]`[String](../data-types.md#string) (either `eyes` or `feet`)
212
212
213
213
Whether to face the target's _eyes_ or _feet_
214
214
@@ -251,13 +251,13 @@ _**Arguments**_
251
251
252
252
Option: `positioned <pos>`
253
253
254
-
`<pos>` Position
254
+
`<pos>`[Position](../data-types.md#position)
255
255
256
256
New position.
257
257
258
258
Option: `positioned as <targets>`
259
259
260
-
`<targets>` Selector
260
+
`<targets>`[Selector](../data-types.md#selector)
261
261
262
262
The target(s) to match position with.
263
263
@@ -293,13 +293,13 @@ _**Arguments**_
293
293
294
294
Option: `rotated <rot>`
295
295
296
-
`<rot>` Rotation
296
+
`<rot>`[Rotation](../data-types.md#rotation)
297
297
298
298
The rotation (yaw and optionally pitch), in degrees
Specifies the display name, defaulting to `<objective>` when unspecified
62
62
63
-
`<slot>` String
63
+
`<slot>`[String](../data-types.md#string)
64
64
65
65
Specifies the slot to display the objective. Must be a scoreboard display slot. Valid slots are `sidebar` and `sidebar.<color>` where `<color>` is a valid team color.
66
66
@@ -72,7 +72,7 @@ Specifies the sort order.
72
72
73
73
Specifies the text to show instead of a score.
74
74
75
-
`<color>` String
75
+
`<color>`[String](../data-types.md#string)
76
76
77
77
Any valid [Minetest colorstring](https://api.minetest.net/colors) or team color.
78
78
@@ -142,49 +142,49 @@ Sets the number format of the targets' scores to fixed, which indicates that the
142
142
143
143
### Arguments
144
144
145
-
`<target>` Selector or String
145
+
`<target>`[Selector](../data-types.md#selector) or String
146
146
147
147
Specifies the score holder.
148
148
149
149
It must be either a target selector, a fake player name, or `*` for all score holders being tracked by the scoreboard system. Named players do not have to be online.
150
150
151
-
`<targets>` Selector or String
151
+
`<targets>`[Selector](../data-types.md#selector) or String
152
152
153
153
Specifies the score holders.
154
154
155
155
It must be either a target selector, a fake player name, or `*` for all score holders being tracked by the scoreboard system. Named players do not have to be online.
156
156
157
-
`<objective>` String
157
+
`<objective>`[String](../data-types.md#string)
158
158
159
159
Specifies the internal objective name
160
160
161
161
Must be a single word containing only alphanumeric characters and underscores.
162
162
163
-
`<score>` Number
163
+
`<score>`[Number](../data-types.md#number)
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 or `*`
167
+
`[min]`/`[max]`[Number](../data-types.md#number) or `*`
168
168
169
169
Specifies the minimum and maximum value.
170
170
171
171
Must be a number from -99,999,999,999,999 to 100,000,000,000,000.
172
172
173
173
If not specified, or `*`, default is minimum or maximum value, respectively.
Must be a single word containing only alphanumeric characters and underscores.
180
180
181
-
`<source>` Selector or String
181
+
`<source>`[Selector](../data-types.md#selector) or String
182
182
183
183
Specifies the source score holders whose scores are used as source inputs.
184
184
185
185
It must be either a target selector, a fake player name, or `*` for all score holders being tracked by the scoreboard system. Named players do not have to be online.
186
186
187
-
`<operation>` String
187
+
`<operation>`[String](../data-types.md#string)
188
188
189
189
Specifies the operation to be applied.
190
190
@@ -202,15 +202,15 @@ 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.
0 commit comments