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
{{ message }}
This repository was archived by the owner on Aug 16, 2020. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+52
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,24 @@ There are two custom properties for `string` schema: `parser` and `params`, whic
17
17
18
18
# List of Parsers
19
19
20
+
## `Command` Parser
21
+
22
+
A parser used to validate commands.
23
+
24
+
### Parameters
25
+
26
+
-`leadingSlash`: (boolean | `null`) Whether the command should start with slash (`/`). The string won't be validated if the value doesn't start with slash and the parameter is set to `true`.
27
+
28
+
## `Entity` Parser
29
+
30
+
A parser used to validate entities.
31
+
32
+
### Parameters
33
+
34
+
-`amount`: (`single` | `multiple`) The acceptable amount of entities.
35
+
-`type`: (`entities` | `players`) The type of the entities.
36
+
-`isScoreHolder`: (boolean) Optional, defaults to `false`. Whether this entity is a score holder.
37
+
20
38
## `Identity` Parser
21
39
22
40
A parser used to validate namespaced IDs.
@@ -29,6 +47,7 @@ A parser used to validate namespaced IDs.
29
47
-`$lootTables`: All available loot tables.
30
48
-`$predicates`: All available predicates.
31
49
-`$recipes`: All available recipes.
50
+
-`$storages`: All available recipes.
32
51
-`$tags/blocks`: All available block tags.
33
52
-`$tags/entityTypes`: All available entity type tags.
34
53
-`$tags/fluids`: All available fluid tags.
@@ -41,6 +60,39 @@ A parser used to validate namespaced IDs.
41
60
-`allowTag`: (boolean) Optional, defaults to `false`. If set to `true`, an ID starting with `#` under the corresponding registry should be accepted.
42
61
-`allowUnknownValue`: (boolean) Optional, defaults to `false`. If set to `true`, IDs that don't exist in neither `registry` nor `values` won't be reported as errors.
43
62
63
+
## `NbtPath` Parser
64
+
65
+
A parser used to validate NBT paths.
66
+
67
+
## `Nbt` Parser
68
+
69
+
A parser used to validate NBT tags.
70
+
71
+
### Parameters
72
+
73
+
-`type`: (`NbtNodeTypeName` | `NbtNodeTypeName[]`) The type of this NBT tag.
74
+
-`category`: (`minecraft:block` | `minecraft:entity` | `minecraft:item`) The type of this NBT.
75
+
-`id`: (string) Optional. An ID in the specific category.
76
+
-`isPredicate`: (boolean) Optional, defaults to `false`. Whether this NBT is in a predicate or not.
77
+
78
+
## `Objective` Parser
79
+
80
+
A parser used to validate scoreboard objectives.
81
+
82
+
## `TranslateKey` Parser
83
+
84
+
A parser used to validate translation keys in resource packs.
85
+
86
+
## `Vector` Parser
87
+
88
+
A parser used to validate number vectors.
89
+
90
+
### Parameters
91
+
92
+
-`dimension`: (number) The dimension of the vector.
93
+
-`allowLocal`: (boolean) Optional, defaults to `true`. Whether local coordinates are acceptable.
94
+
-`allowRelative`: (boolean) Optional, defaults to `true`. Whether relative coordinates are acceptable.
0 commit comments