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: docs/en/create-commands/arguments/types/list-arguments.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,13 @@ List arguments allows users to provide a list of values. This argument can take
19
19
20
20
Unlike other arguments, because this argument can be interpreted in various different ways, this argument can only be created using a `ListArgumentBuilder`, instead of directly accessing the `ListArgument` constructor. The `ListArgumentBuilder` loosely follows the following format:
21
21
22
-
$$
23
-
\begin{align}
24
-
&\quad\texttt{Create a ListArgumentBuilder} \\\\
25
-
\rightarrow&\quad\texttt{(Provide the list delimiter)} \\\\
26
-
\rightarrow&\quad\texttt{Provide the list to pull suggestions from} \\\\
27
-
\rightarrow&\quad\texttt{Provide the mapper of the list items to a string} \\\\
28
-
\rightarrow&\quad\texttt{Build the ListArgument}
29
-
\end{align}
30
-
$$
22
+
```mermaid
23
+
graph TD
24
+
A(Create a ListArgumentBuilder) --> B("(Provide the list delimiter)")
25
+
B --> C(Provide the list to pull suggestions from)
26
+
C --> D(Provide the mapper of the list items to a string)
Copy file name to clipboardExpand all lines: docs/en/create-commands/arguments/types/map-arguments.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,14 @@ It returns a `LinkedHashMap` object.
15
15
16
16
Similar to the `ListArgument`, this argument also uses a builder class to construct it.
17
17
18
-
$$\begin{align}
19
-
&\quad\texttt{Create a MapArgumentBuilder and possibly provide the delimiter or separator} \\\\
20
-
\rightarrow&\quad\texttt{Provide the mapper from a string to an object of the provided key type} \\\\
21
-
\rightarrow&\quad\texttt{Provide the mapper from a string to an object of the provided value type} \\\\
22
-
\rightarrow&\quad\texttt{Provide the list with keys to pull suggestions from} \\\\
23
-
\rightarrow&\quad\texttt{Provide the list with values to pull suggestions from} \\\\
24
-
\rightarrow&\quad\texttt{Build the MapArgument}
25
-
\end{align}$$
18
+
```mermaid
19
+
graph TD
20
+
A(Create a MapArgumentBuilder<br/>possibly provide the delimiter or separator) --> B(Provide the mapper from a string to an object of the provided key type)
21
+
B --> C(Provide the mapper from a string to an object of the provided value type)
22
+
C --> D(Provide the list with keys to pull suggestions from)
23
+
D --> E(Provide the list with values to pull suggestions from)
Copy file name to clipboardExpand all lines: docs/en/create-commands/arguments/types/misc/angle-arguments.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,18 @@ authors:
9
9
The angle argument is used to represent the _yaw_ (horizontal) angle in degrees. The value returned from this argument range from -180.0 (inclusive) to 180 (exclusive), with -180.0 being due north:
10
10
11
11
$$
12
-
\begin{align}
13
-
-1&80.0 \\\\
14
-
&\hspace{0.1em}N \\\\
15
-
&\uparrow \\\\
16
-
90.0\ W \leftarrow &\hspace{0.75em}\rightarrow E\ -90.0 \\\\
17
-
&\downarrow \\\\
18
-
&\hspace{0.2em}S \\\\
19
-
&0.0 \\\\
20
-
\end{align}
12
+
\begin{array}{c}
13
+
& N (-180°) & \\
14
+
& \uparrow & \\
15
+
& & \\
16
+
& & \\
17
+
W (90°) \leftarrow\hspace{0.4em} & \bullet & \hspace{0.4em}\rightarrow E (-90°) \\
18
+
& & \\
19
+
& & \\
20
+
& \downarrow & \\
21
+
& S (0°) & \\
22
+
\end{array}
21
23
$$
22
24
25
+
23
26
The `~` notation can be used to specify a rotation relative to the executor's yaw angle.
Copy file name to clipboardExpand all lines: docs/en/incompatible-versions.md
+23-13Lines changed: 23 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,24 +25,34 @@ Running functions generated via the `FunctionArgument` on Minecraft version **1.
25
25
26
26
In Minecraft version **1.16**, the way datapacks were loaded changed in such a way that the CommandAPI had to put in additional countermeasures to provide full support to it. To illustrate this, this was the previous loading sequence for Bukkit servers in Minecraft 1.15:
However, Minecraft 1.16 changed the loading sequence to the following:
36
+
37
+
```mermaid
38
+
graph LR
39
+
A(Start loads) --> B(DataPacks load)
40
+
B --> C(Plugins load)
41
+
C --> D(Server finishes loading)
42
+
```
33
43
34
44
Because the CommandAPI used to register vanilla Minecraft commands _before_ datapacks (and thus, custom Minecraft functions), it was possible to register custom commands that can be used in functions. With this new loading sequence change in Minecraft 1.16, this meant that datapacks load first before the CommandAPI does, so custom commands are not registered and functions with custom commands would fail to load.
35
45
36
46
To resolve this, the CommandAPI reloads datapacks _and recipes_ at the end:
Copy file name to clipboardExpand all lines: docs/en/internal/brigadier-plus-commandapi.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,15 +74,15 @@ In this scenario, if we ran this command, we would expect "Hello!" to appear in
74
74
```mermaid
75
75
graph TD
76
76
A(execute) --> B(if)
77
-
B --> C("randomchance <numerator> <denominator>")
77
+
B --> C("randomchance <numerator><denominator>")
78
78
```
79
79
80
80
- After entering our predicate, we want to route back to `execute` (because the argument after `execute` is `run`, which is used in our example command above):
81
81
82
82
```mermaid
83
83
graph TD
84
84
A(execute) --> B(if)
85
-
B --> C("randomchance <numerator> <denominator>")
85
+
B --> C("randomchance <numerator><denominator>")
0 commit comments