bc-minecraft-molang 1.2.7 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,43 +7,43 @@ var General;
|
|
|
7
7
|
/**The collection of math functions*/
|
|
8
8
|
General.Math = [
|
|
9
9
|
{
|
|
10
|
-
documentation: "Absolute value of value",
|
|
11
10
|
id: "abs",
|
|
11
|
+
documentation: "Absolute value of value",
|
|
12
12
|
parameters: [{ id: "value" }],
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
documentation: "arccos of value",
|
|
16
15
|
id: "acos",
|
|
16
|
+
documentation: "arccos of value",
|
|
17
17
|
parameters: [{ id: "value" }],
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
documentation: "arcsin of value",
|
|
21
20
|
id: "asin",
|
|
21
|
+
documentation: "arcsin of value",
|
|
22
22
|
parameters: [{ id: "value" }],
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
documentation: "arctan of value",
|
|
26
25
|
id: "atan",
|
|
26
|
+
documentation: "arctan of value",
|
|
27
27
|
parameters: [{ id: "value" }],
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
documentation: "arctan of y/x. NOTE: the order of arguments!",
|
|
31
30
|
id: "atan2",
|
|
31
|
+
documentation: "arctan of y/x. NOTE: the order of arguments!",
|
|
32
32
|
parameters: [{ id: "y" }, { id: "x" }],
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
documentation: "Round value up to nearest integral number",
|
|
36
35
|
id: "ceil",
|
|
36
|
+
documentation: "Round value up to nearest integral number",
|
|
37
37
|
parameters: [{ id: "value" }],
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
documentation: "Clamp value to between min and max inclusive",
|
|
41
40
|
id: "clamp",
|
|
41
|
+
documentation: "Clamp value to between min and max inclusive",
|
|
42
42
|
parameters: [{ id: "value" }, { id: "min" }, { id: "max" }],
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
documentation: "Cosine (in degrees) of value",
|
|
46
45
|
id: "cos",
|
|
46
|
+
documentation: "Cosine (in degrees) of value",
|
|
47
47
|
parameters: [{ id: "value" }],
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -57,13 +57,13 @@ var General;
|
|
|
57
57
|
parameters: [{ id: "num" }, { id: "low" }, { id: "high" }],
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
documentation: "Calculates e to the value'th power",
|
|
61
60
|
id: "exp",
|
|
61
|
+
documentation: "Calculates e to the value'th power",
|
|
62
62
|
parameters: [{ id: "value" }],
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
|
-
documentation: "Round value down to nearest integral number",
|
|
66
65
|
id: "floor",
|
|
66
|
+
documentation: "Round value down to nearest integral number",
|
|
67
67
|
parameters: [{ id: "value" }],
|
|
68
68
|
},
|
|
69
69
|
{
|
|
@@ -72,77 +72,77 @@ var General;
|
|
|
72
72
|
parameters: [{ id: "value" }],
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
documentation: "Lerp from start to end via 0_to_1",
|
|
76
75
|
id: "lerp",
|
|
76
|
+
documentation: "Lerp from start to end via 0_to_1",
|
|
77
77
|
parameters: [{ id: "start" }, { id: "end" }, { id: "0_to_1" }],
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
documentation: "Lerp the shortest direction around a circle from start degrees to end degrees via 0_to_1",
|
|
81
80
|
id: "lerprotate",
|
|
81
|
+
documentation: "Lerp the shortest direction around a circle from start degrees to end degrees via 0_to_1",
|
|
82
82
|
parameters: [{ id: "start" }, { id: "end" }, { id: "0_to_1" }],
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
documentation: "Natural logarithm of value",
|
|
86
85
|
id: "ln",
|
|
86
|
+
documentation: "Natural logarithm of value",
|
|
87
87
|
parameters: [{ id: "value" }],
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
documentation: "Return highest value of A or B",
|
|
91
90
|
id: "max",
|
|
91
|
+
documentation: "Return highest value of A or B",
|
|
92
92
|
parameters: [{ id: "A" }, { id: "B" }],
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
documentation: "Return lowest value of A or B",
|
|
96
95
|
id: "min",
|
|
96
|
+
documentation: "Return lowest value of A or B",
|
|
97
97
|
parameters: [{ id: "A" }, { id: "B" }],
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
|
-
documentation: "Minimize angle magnitude (in degrees) into the range [-180, 180]",
|
|
101
100
|
id: "min_angle",
|
|
101
|
+
documentation: "Minimize angle magnitude (in degrees) into the range [-180, 180]",
|
|
102
102
|
parameters: [{ id: "value" }],
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
|
-
documentation: "Return the remainder of value / denominator",
|
|
106
105
|
id: "mod",
|
|
106
|
+
documentation: "Return the remainder of value / denominator",
|
|
107
107
|
parameters: [{ id: "value" }, { id: "denominator" }],
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
documentation: "Returns the float representation of the constant pi.",
|
|
111
110
|
id: "pi",
|
|
111
|
+
documentation: "Returns the float representation of the constant pi.",
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
|
-
documentation: "Elevates `base` to the `exponent`'th power",
|
|
115
114
|
id: "pow",
|
|
115
|
+
documentation: "Elevates `base` to the `exponent`'th power",
|
|
116
116
|
parameters: [{ id: "base" }, { id: "exponent" }],
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
documentation: "Random value between low and high inclusive",
|
|
120
119
|
id: "random",
|
|
120
|
+
documentation: "Random value between low and high inclusive",
|
|
121
121
|
parameters: [{ id: "low" }, { id: "high" }],
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
documentation: "Random integer value between low and high inclusive",
|
|
125
124
|
id: "random_integer",
|
|
125
|
+
documentation: "Random integer value between low and high inclusive",
|
|
126
126
|
parameters: [{ id: "low" }, { id: "high" }],
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
|
-
documentation: "Round value to nearest integral number",
|
|
130
129
|
id: "round",
|
|
130
|
+
documentation: "Round value to nearest integral number",
|
|
131
131
|
parameters: [{ id: "value" }],
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
documentation: "Sine (in degrees) of value",
|
|
135
134
|
id: "sin",
|
|
135
|
+
documentation: "Sine (in degrees) of value",
|
|
136
136
|
parameters: [{ id: "value" }],
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
documentation: "Square root of value",
|
|
140
139
|
id: "sqrt",
|
|
140
|
+
documentation: "Square root of value",
|
|
141
141
|
parameters: [{ id: "value" }],
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
|
-
documentation: "Round value towards zero",
|
|
145
144
|
id: "trunc",
|
|
145
|
+
documentation: "Round value towards zero",
|
|
146
146
|
parameters: [{ id: "value" }],
|
|
147
147
|
},
|
|
148
148
|
];
|
|
@@ -158,920 +158,972 @@ var General;
|
|
|
158
158
|
/**The collection of queries*/
|
|
159
159
|
General.Queries = [
|
|
160
160
|
{
|
|
161
|
-
documentation: "Gets specified axis of the specified bone orientation pivot",
|
|
162
|
-
id: "get_default_bone_pivot",
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
documentation: "Returns 1.0 if the entity is in contact with any water (water, rain, splash water bottle), else it returns 0.0",
|
|
166
|
-
id: "is_in_contact_with_water",
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
documentation: "Returns 1.0 if the entity is playing dead, else it returns 0.0",
|
|
170
|
-
id: "is_playing_dead",
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
documentation: "Returns the height of the block immediately above the highest solid block at the input (x,z) position",
|
|
174
161
|
id: "above_top_solid",
|
|
162
|
+
documentation: "Returns the height of the block immediately above the highest solid block at the input (x,z) position",
|
|
175
163
|
},
|
|
176
164
|
{
|
|
177
|
-
documentation: "Returns the number of actors rendered in the last frame",
|
|
178
165
|
id: "actor_count",
|
|
166
|
+
documentation: "Returns the number of actors rendered in the last frame",
|
|
179
167
|
},
|
|
180
168
|
{
|
|
181
|
-
documentation: "Only valid in an animation controller. Returns 1.0 if all animations in the current animation controller state have played through at least once, else it returns 0.0",
|
|
182
169
|
id: "all_animations_finished",
|
|
170
|
+
documentation: "Only valid in an animation controller. Returns 1.0 if all animations in the current animation controller state have played through at least once, else it returns 0.0",
|
|
183
171
|
},
|
|
184
172
|
{
|
|
185
|
-
documentation: "Returns if the item or block has all of the tags specified",
|
|
186
173
|
id: "all_tags",
|
|
174
|
+
documentation: "Returns if the item or block has all of the tags specified",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: "all",
|
|
178
|
+
documentation: "Requires at least 3 arguments. Evaluates the first argument, then returns 1.0 if all of the following arguments evaluate to the same value as the first. Otherwise it returns 0.0.",
|
|
179
|
+
parameters: [
|
|
180
|
+
{ id: "evualate", documentation: "The value to evualate" },
|
|
181
|
+
{ id: "first", documentation: "The first value to compare" },
|
|
182
|
+
{ id: "second", documentation: "The first value to compare" },
|
|
183
|
+
],
|
|
187
184
|
},
|
|
188
185
|
{
|
|
189
|
-
documentation: "Returns the time in seconds since the current animation started, else 0.0 if not called within an animation",
|
|
190
186
|
id: "anim_time",
|
|
187
|
+
documentation: "Returns the time in seconds since the current animation started, else 0.0 if not called within an animation",
|
|
191
188
|
},
|
|
192
189
|
{
|
|
193
|
-
documentation: "Only valid in an animation controller. Returns 1.0 if any animation in the current animation controller state has played through at least once, else it returns 0.0",
|
|
194
190
|
id: "any_animation_finished",
|
|
191
|
+
documentation: "Only valid in an animation controller. Returns 1.0 if any animation in the current animation controller state has played through at least once, else it returns 0.0",
|
|
195
192
|
},
|
|
196
193
|
{
|
|
197
|
-
documentation: "Returns if the item or block has any of the tags specified",
|
|
198
194
|
id: "any_tag",
|
|
195
|
+
documentation: "Returns if the item or block has any of the tags specified",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: "any",
|
|
199
|
+
documentation: "Requires at least 3 arguments. Evaluates the first argument, then returns 1.0 if any of the following arguments evaluate to the same value as the first. Otherwise it returns 0.0.",
|
|
200
|
+
parameters: [
|
|
201
|
+
{ id: "evualate", documentation: "The value to evualate" },
|
|
202
|
+
{ id: "first", documentation: "The first value to compare" },
|
|
203
|
+
{ id: "second", documentation: "The first value to compare" },
|
|
204
|
+
],
|
|
199
205
|
},
|
|
200
206
|
{
|
|
201
|
-
documentation: "Returns 1.0 if all of the arguments are within 0.000000 of each other, else 0.0",
|
|
202
207
|
id: "approx_eq",
|
|
208
|
+
documentation: "Returns 1.0 if all of the arguments are within 0.000000 of each other, else 0.0",
|
|
203
209
|
},
|
|
204
210
|
{
|
|
205
|
-
documentation: "Takes the armor slot index as a parameter, and returns the color of the armor in the requested slot",
|
|
206
211
|
id: "armor_color_slot",
|
|
212
|
+
documentation: "Takes the armor slot index as a parameter, and returns the color of the armor in the requested slot",
|
|
213
|
+
parameters: [
|
|
214
|
+
{
|
|
215
|
+
id: "slot",
|
|
216
|
+
documentation: "The armor slot index, (0 is helmet, 1 is chestplace, 2 is leggings, 3 is boots)",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: "channel",
|
|
220
|
+
documentation: "The color channel to return, (0 is red, 1 is green, 2 is blue, 3 is alpha)",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
207
223
|
},
|
|
208
224
|
{
|
|
209
|
-
documentation: "Takes the armor slot index as a parameter, and returns the armor material type in the requested armor slot",
|
|
210
225
|
id: "armor_material_slot",
|
|
226
|
+
documentation: "Takes the armor slot index as a parameter, and returns the armor material type in the requested armor slot",
|
|
211
227
|
},
|
|
212
228
|
{
|
|
213
|
-
documentation: "Takes the armor slot index as a parameter, and returns the texture type of the requested slot",
|
|
214
229
|
id: "armor_texture_slot",
|
|
230
|
+
documentation: "Takes the armor slot index as a parameter, and returns the texture type of the requested slot",
|
|
215
231
|
},
|
|
216
232
|
{
|
|
217
|
-
documentation: "Returns the time in *seconds* of the average frame time over the last 'n' frames. If an argument is passed, it is assumed to be the number of frames in the past that you wish to query. `query.average_frame_time` (or the equivalent `query.average_frame_time(0)`) will return the frame time of the frame before the current one. `query.average_frame_time(1)` will return the average frame time of the previous two frames. Currently we store the history of the last 30 frames, although note that this may change in the future. Asking for more frames will result in only sampling the number of frames stored.",
|
|
218
233
|
id: "average_frame_time",
|
|
234
|
+
documentation: "Returns the time in *seconds* of the average frame time over the last 'n' frames. If an argument is passed, it is assumed to be the number of frames in the past that you wish to query. `query.average_frame_time` (or the equivalent `query.average_frame_time(0)`) will return the frame time of the frame before the current one. `query.average_frame_time(1)` will return the average frame time of the previous two frames. Currently we store the history of the last 30 frames, although note that this may change in the future. Asking for more frames will result in only sampling the number of frames stored.",
|
|
219
235
|
},
|
|
220
236
|
{
|
|
221
|
-
documentation: "Returns the block face for this (only valid for certain triggers such as placing blocks, or interacting with block) (Down=0.0, Up=1.0, North=2.0, South=3.0, West=4.0, East=5.0, Undefined=6.0).",
|
|
222
237
|
id: "block_face",
|
|
238
|
+
documentation: "Returns the block face for this (only valid for certain triggers such as placing blocks, or interacting with block) (Down=0.0, Up=1.0, North=2.0, South=3.0, West=4.0, East=5.0, Undefined=6.0).",
|
|
223
239
|
},
|
|
224
240
|
{
|
|
225
|
-
documentation: "Returns the value of the associated Blocks Block State",
|
|
226
241
|
id: "block_property",
|
|
242
|
+
documentation: "Returns the value of the associated Blocks Block State",
|
|
227
243
|
},
|
|
228
244
|
{
|
|
229
|
-
documentation: "Returns 1.0 if the entity is blocking, else it returns 0.0",
|
|
230
245
|
id: "blocking",
|
|
246
|
+
documentation: "Returns 1.0 if the entity is blocking, else it returns 0.0",
|
|
231
247
|
},
|
|
232
248
|
{
|
|
233
|
-
documentation: "Returns the body pitch rotation if called on an actor, else it returns 0.0",
|
|
234
249
|
id: "body_x_rotation",
|
|
250
|
+
documentation: "Returns the body pitch rotation if called on an actor, else it returns 0.0",
|
|
235
251
|
},
|
|
236
252
|
{
|
|
237
|
-
documentation: "Returns the body yaw rotation if called on an actor, else it returns 0.0",
|
|
238
253
|
id: "body_y_rotation",
|
|
254
|
+
documentation: "Returns the body yaw rotation if called on an actor, else it returns 0.0",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: "bone_aabb",
|
|
258
|
+
documentation: "Returns the axis aligned bounding box of a bone as a struct with members '.min', '.max', along with '.x', '.y', and '.z' values for each.",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
id: "bone_origin",
|
|
262
|
+
documentation: "Returns the initial (from the .geo) pivot of a bone as a struct with members '.x', '.y', and '.z'.",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: "bone_rotation",
|
|
266
|
+
documentation: "Returns the initial (from the .geo) rotation of a bone as a struct with members '.x', '.y', and '.z' in degrees.",
|
|
239
267
|
},
|
|
240
268
|
{
|
|
241
|
-
documentation: "Takes two distances (any order) and return a number from 0 to 1 based on the camera distance between the two ranges clamped to that range. For example, `query.camera_distance_range_lerp(10, 20)` will return 0 for any distance less than or equal to 10, 0.2 for a distance of 12, 0.5 for 15, and 1 for 20 or greater. If you pass in (20, 10), a distance of 20 will return 0.0",
|
|
242
269
|
id: "camera_distance_range_lerp",
|
|
270
|
+
documentation: "Takes two distances (any order) and return a number from 0 to 1 based on the camera distance between the two ranges clamped to that range. For example, `query.camera_distance_range_lerp(10, 20)` will return 0 for any distance less than or equal to 10, 0.2 for a distance of 12, 0.5 for 15, and 1 for 20 or greater. If you pass in (20, 10), a distance of 20 will return 0.0",
|
|
271
|
+
parameters: [
|
|
272
|
+
{ id: "A", documentation: "The first distance" },
|
|
273
|
+
{ id: "B", documentation: "The second distance" },
|
|
274
|
+
],
|
|
243
275
|
},
|
|
244
276
|
{
|
|
245
|
-
documentation: "Returns the rotation of the camera. Requires one argument representing the rotation axis you would like (`0 for x`, `1 for y`)",
|
|
246
277
|
id: "camera_rotation",
|
|
278
|
+
documentation: "Returns the rotation of the camera. Requires one argument representing the rotation axis you would like (`0 for x`, `1 for y`)",
|
|
279
|
+
parameters: [{ id: "axis", documentation: "0 for x, 1 for y" }],
|
|
247
280
|
},
|
|
248
281
|
{
|
|
249
|
-
documentation: "Returns 1.0 if the entity can climb, else it returns 0.0",
|
|
250
282
|
id: "can_climb",
|
|
283
|
+
documentation: "Returns 1.0 if the entity can climb, else it returns 0.0",
|
|
251
284
|
},
|
|
252
285
|
{
|
|
253
|
-
documentation: "Returns 1.0 if the entity can damage nearby mobs, else it returns 0.0",
|
|
254
286
|
id: "can_damage_nearby_mobs",
|
|
287
|
+
documentation: "Returns 1.0 if the entity can damage nearby mobs, else it returns 0.0",
|
|
255
288
|
},
|
|
256
289
|
{
|
|
257
|
-
documentation: "Returns 1.0 if the entity can fly, else it returns 0.0",
|
|
258
290
|
id: "can_fly",
|
|
291
|
+
documentation: "Returns 1.0 if the entity can fly, else it returns 0.0",
|
|
259
292
|
},
|
|
260
293
|
{
|
|
261
|
-
documentation: "Returns 1.0 if the entity can power jump, else it returns 0.0",
|
|
262
294
|
id: "can_power_jump",
|
|
295
|
+
documentation: "Returns 1.0 if the entity can power jump, else it returns 0.0",
|
|
263
296
|
},
|
|
264
297
|
{
|
|
265
|
-
documentation: "Returns 1.0 if the entity can swim, else it returns 0.0",
|
|
266
298
|
id: "can_swim",
|
|
299
|
+
documentation: "Returns 1.0 if the entity can swim, else it returns 0.0",
|
|
267
300
|
},
|
|
268
301
|
{
|
|
269
|
-
documentation: "Returns 1.0 if the entity can walk, else it returns 0.0",
|
|
270
302
|
id: "can_walk",
|
|
303
|
+
documentation: "Returns 1.0 if the entity can walk, else it returns 0.0",
|
|
271
304
|
},
|
|
272
305
|
{
|
|
273
|
-
documentation: "Returns the axis aligned bounding box of a bone as a struct with members '.min', '.max', along with '.x', '.y', and '.z' values for each.",
|
|
274
|
-
id: "bone_aabb",
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
documentation: "Returns the initial (from the .geo) pivot of a bone as a struct with members '.x', '.y', and '.z'.",
|
|
278
|
-
id: "bone_origin",
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
documentation: "Returns the initial (from the .geo) rotation of a bone as a struct with members '.x', '.y', and '.z' in degrees.",
|
|
282
|
-
id: "bone_rotation",
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
documentation: "returns value between 0.0 and 1.0 with 0.0 meaning cape is fully down and 1.0 is cape is fully up",
|
|
286
306
|
id: "cape_flap_amount",
|
|
287
|
-
|
|
288
|
-
/*{
|
|
289
|
-
documentation: "DEPRECATED (please use query.block_face instead) Returns the block face for this (only valid for on_placed_by_player trigger) (Down=0.0, Up=1.0, North=2.0, South=3.0, West=4.0, East=5.0, Undefined=6.0).",
|
|
290
|
-
id: "cardinal_block_face_placed_on",
|
|
291
|
-
},*/
|
|
292
|
-
{
|
|
293
|
-
documentation: "Returns the current facing of the player (Down=0.0, Up=1.0, North=2.0, South=3.0, West=4.0, East=5.0, Undefined=6.0).",
|
|
294
|
-
id: "cardinal_facing",
|
|
307
|
+
documentation: "returns value between 0.0 and 1.0 with 0.0 meaning cape is fully down and 1.0 is cape is fully up",
|
|
295
308
|
},
|
|
296
309
|
{
|
|
297
|
-
documentation: "Returns the current facing of the player ignoring up/down part of the direction (North=2.0, South=3.0, West=4.0, East=5.0, Undefined=6.0).",
|
|
298
310
|
id: "cardinal_facing_2d",
|
|
311
|
+
documentation: "Returns the current facing of the player ignoring up/down part of the direction (North=2.0, South=3.0, West=4.0, East=5.0, Undefined=6.0).",
|
|
299
312
|
},
|
|
300
313
|
{
|
|
314
|
+
id: "cardinal_facing",
|
|
301
315
|
documentation: "Returns the current facing of the player (Down=0.0, Up=1.0, North=2.0, South=3.0, West=4.0, East=5.0, Undefined=6.0).",
|
|
316
|
+
},
|
|
317
|
+
{
|
|
302
318
|
id: "cardinal_player_facing",
|
|
319
|
+
documentation: "Returns the current facing of the player (Down=0.0, Up=1.0, North=2.0, South=3.0, West=4.0, East=5.0, Undefined=6.0).",
|
|
303
320
|
},
|
|
304
321
|
{
|
|
305
|
-
documentation: "Combines any valid entity references from all arguments into a single array. Note that order is not preserved, and duplicates and invalid values are removed.",
|
|
306
322
|
id: "combine_entities",
|
|
323
|
+
documentation: "Combines any valid entity references from all arguments into a single array. Note that order is not preserved, and duplicates and invalid values are removed.",
|
|
307
324
|
},
|
|
308
325
|
{
|
|
309
|
-
documentation: "Counts the number of things passed to it (arrays are counted as the number of elements they contain; non-arrays count as 1).",
|
|
310
326
|
id: "count",
|
|
327
|
+
documentation: "Counts the number of things passed to it (arrays are counted as the number of elements they contain; non-arrays count as 1).",
|
|
311
328
|
},
|
|
312
329
|
{
|
|
313
|
-
documentation: "Returns the squish value for the current entity, or 0.0 if this doesn't make sense",
|
|
314
330
|
id: "current_squish_value",
|
|
331
|
+
documentation: "Returns the squish value for the current entity, or 0.0 if this doesn't make sense",
|
|
315
332
|
},
|
|
333
|
+
{ id: "day", documentation: "Returns the day of the current level." },
|
|
316
334
|
{
|
|
317
|
-
|
|
318
|
-
|
|
335
|
+
id: "death_ticks",
|
|
336
|
+
documentation: "Returns the elapsed ticks since the mob started dying.",
|
|
319
337
|
},
|
|
320
338
|
{
|
|
321
|
-
documentation: "debug log a value to the output debug window for builds that have one",
|
|
322
339
|
id: "debug_output",
|
|
340
|
+
documentation: "debug log a value to the output debug window for builds that have one",
|
|
341
|
+
parameters: [{ id: "value", documentation: "The value to log" }],
|
|
323
342
|
},
|
|
324
343
|
{
|
|
325
|
-
documentation: "Returns the elapsed ticks since the mob started dying.",
|
|
326
|
-
id: "death_ticks",
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
documentation: "Returns the time in seconds since the previous frame",
|
|
330
344
|
id: "delta_time",
|
|
345
|
+
documentation: "Returns the time in seconds since the previous frame",
|
|
331
346
|
},
|
|
332
347
|
{
|
|
333
|
-
documentation: "Returns the distance of the root of this actor or particle emitter from the camera",
|
|
334
348
|
id: "distance_from_camera",
|
|
349
|
+
documentation: "Returns the distance of the root of this actor or particle emitter from the camera",
|
|
335
350
|
},
|
|
336
351
|
{
|
|
337
|
-
documentation: "Returns the total number of active emitters of the callee's particle effect type",
|
|
338
352
|
id: "effect_emitter_count",
|
|
353
|
+
documentation: "Returns the total number of active emitters of the callee's particle effect type",
|
|
339
354
|
},
|
|
340
355
|
{
|
|
341
|
-
documentation: "Returns the total number of active particles of the callee's particle effect type",
|
|
342
356
|
id: "effect_particle_count",
|
|
357
|
+
documentation: "Returns the total number of active particles of the callee's particle effect type",
|
|
343
358
|
},
|
|
344
359
|
{
|
|
345
|
-
documentation: "returns the equipment count for an actor",
|
|
346
360
|
id: "equipment_count",
|
|
361
|
+
documentation: "returns the equipment count for an actor",
|
|
347
362
|
},
|
|
348
363
|
{
|
|
349
|
-
documentation: "takes a slot name followed by any tag you want to check for in the form of 'tag_name' and returns 1 if all of the tags are on that equipped item, 0 otherwise",
|
|
350
364
|
id: "equipped_item_all_tags",
|
|
365
|
+
documentation: "takes a slot name followed by any tag you want to check for in the form of 'tag_name' and returns 1 if all of the tags are on that equipped item, 0 otherwise",
|
|
351
366
|
},
|
|
352
367
|
{
|
|
353
|
-
documentation: "takes a slot name followed by any tag you want to check for in the form of 'tag_name' and returns 0 if none of the tags are on that equipped item or 1 if at least 1 tag exists",
|
|
354
368
|
id: "equipped_item_any_tag",
|
|
369
|
+
documentation: "takes a slot name followed by any tag you want to check for in the form of 'tag_name' and returns 0 if none of the tags are on that equipped item or 1 if at least 1 tag exists",
|
|
355
370
|
},
|
|
356
371
|
{
|
|
357
|
-
documentation: "Takes the desired hand slot as a parameter (0 or 'main_hand' for main hand, 1 or 'off_hand' for off hand), and returns whether the item is an attachable or not.",
|
|
358
372
|
id: "equipped_item_is_attachable",
|
|
373
|
+
documentation: "Takes the desired hand slot as a parameter (0 or 'main_hand' for main hand, 1 or 'off_hand' for off hand), and returns whether the item is an attachable or not.",
|
|
359
374
|
},
|
|
360
375
|
{
|
|
361
|
-
documentation: "returns the X eye rotation of the entity if it makes sense, else it returns 0.0",
|
|
362
376
|
id: "eye_target_x_rotation",
|
|
377
|
+
documentation: "returns the X eye rotation of the entity if it makes sense, else it returns 0.0",
|
|
363
378
|
},
|
|
364
379
|
{
|
|
365
|
-
documentation: "returns the Y eye rotation of the entity if it makes sense, else it returns 0.0",
|
|
366
380
|
id: "eye_target_y_rotation",
|
|
381
|
+
documentation: "returns the Y eye rotation of the entity if it makes sense, else it returns 0.0",
|
|
367
382
|
},
|
|
368
383
|
{
|
|
369
|
-
|
|
370
|
-
|
|
384
|
+
id: "facing_target_to_range_attack",
|
|
385
|
+
documentation: "Returns 1.0 if the entity is attacking from range (i.e. minecraft:behavior.ranged_attack), else it returns 0.0",
|
|
371
386
|
},
|
|
372
387
|
{
|
|
373
|
-
|
|
374
|
-
|
|
388
|
+
id: "frame_alpha",
|
|
389
|
+
documentation: "Returns the ratio (from 0 to 1) of how much between AI ticks this frame is being rendered",
|
|
375
390
|
},
|
|
376
391
|
{
|
|
377
|
-
documentation: "Returns the integer id of an actor by its string name",
|
|
378
392
|
id: "get_actor_info_id",
|
|
393
|
+
documentation: "Returns the integer id of an actor by its string name",
|
|
379
394
|
},
|
|
380
395
|
{
|
|
381
|
-
documentation: "Returns the current texture of the item",
|
|
382
396
|
id: "get_animation_frame",
|
|
397
|
+
documentation: "Returns the current texture of the item",
|
|
383
398
|
},
|
|
384
399
|
{
|
|
385
|
-
|
|
386
|
-
|
|
400
|
+
id: "get_default_bone_pivot",
|
|
401
|
+
documentation: "Gets specified axis of the specified bone orientation pivot",
|
|
387
402
|
},
|
|
388
403
|
{
|
|
389
|
-
documentation: "Gets specified axis of the specified locator offset",
|
|
390
404
|
id: "get_locator_offset",
|
|
405
|
+
documentation: "Gets specified axis of the specified locator offset",
|
|
391
406
|
},
|
|
392
407
|
{
|
|
393
|
-
documentation: "get the name of the mob if there is one, otherwise return ''",
|
|
394
|
-
id: "get_name",
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
documentation: "Gets specified axis of the specified locator offset of the root model",
|
|
398
408
|
id: "get_root_locator_offset",
|
|
409
|
+
documentation: "Gets specified axis of the specified locator offset of the root model",
|
|
399
410
|
},
|
|
400
411
|
{
|
|
401
|
-
documentation: "Returns the ground speed of the entity in metres/second",
|
|
402
412
|
id: "ground_speed",
|
|
413
|
+
documentation: "Returns the ground speed of the entity in metres/second",
|
|
403
414
|
},
|
|
404
415
|
{
|
|
405
|
-
documentation: "Returns 1 if the entity has any of the specified families, else 0.",
|
|
406
416
|
id: "has_any_family",
|
|
417
|
+
documentation: "Returns 1 if the entity has any of the specified families, else 0.",
|
|
407
418
|
},
|
|
408
419
|
{
|
|
409
|
-
documentation: "Takes the armor slot index as a parameter, and returns 1.0 if the entity has armor in the requested slot, else it returns 0.0",
|
|
410
420
|
id: "has_armor_slot",
|
|
421
|
+
documentation: "Takes the armor slot index as a parameter, and returns 1.0 if the entity has armor in the requested slot, else it returns 0.0",
|
|
411
422
|
},
|
|
412
423
|
{
|
|
413
|
-
documentation: "Returns whether or not a Block Placement Target has a specific biome tag",
|
|
414
424
|
id: "has_biome_tag",
|
|
425
|
+
documentation: "Returns whether or not a Block Placement Target has a specific biome tag",
|
|
415
426
|
},
|
|
416
427
|
{
|
|
417
|
-
documentation: "Returns 1.0 if the associated block has the given block property or 0.0 if not",
|
|
418
428
|
id: "has_block_property",
|
|
429
|
+
documentation: "Returns 1.0 if the associated block has the given block property or 0.0 if not",
|
|
419
430
|
},
|
|
420
431
|
{
|
|
421
|
-
documentation: "Returns 1.0 if the player has a cape, else it returns 0.0",
|
|
422
432
|
id: "has_cape",
|
|
433
|
+
documentation: "Returns 1.0 if the player has a cape, else it returns 0.0",
|
|
423
434
|
},
|
|
424
435
|
{
|
|
425
|
-
documentation: "Returns 1.0 if the entity has collisions enabled, else it returns 0.0",
|
|
426
436
|
id: "has_collision",
|
|
437
|
+
documentation: "Returns 1.0 if the entity has collisions enabled, else it returns 0.0",
|
|
427
438
|
},
|
|
428
439
|
{
|
|
429
|
-
documentation: "Returns 1.0 if the entity is affected by gravity, else it returns 0.0",
|
|
430
440
|
id: "has_gravity",
|
|
441
|
+
documentation: "Returns 1.0 if the entity is affected by gravity, else it returns 0.0",
|
|
431
442
|
},
|
|
432
443
|
{
|
|
433
|
-
documentation: "Returns true if the entity has an owner ID else it returns false",
|
|
434
444
|
id: "has_owner",
|
|
445
|
+
documentation: "Returns true if the entity has an owner ID else it returns false",
|
|
435
446
|
},
|
|
436
447
|
{
|
|
437
|
-
documentation: "Returns 1.0 if the entity has a rider, else it returns 0.0",
|
|
438
448
|
id: "has_rider",
|
|
449
|
+
documentation: "Returns 1.0 if the entity has a rider, else it returns 0.0",
|
|
439
450
|
},
|
|
440
451
|
{
|
|
441
|
-
documentation: "Returns 1.0 if the entity has a target, else it returns 0.0",
|
|
442
452
|
id: "has_target",
|
|
453
|
+
documentation: "Returns 1.0 if the entity has a target, else it returns 0.0",
|
|
443
454
|
},
|
|
444
455
|
{
|
|
445
|
-
documentation: "returns the roll angle of the head of the entity if it makes sense, else it returns 0.0",
|
|
446
456
|
id: "head_roll_angle",
|
|
457
|
+
documentation: "returns the roll angle of the head of the entity if it makes sense, else it returns 0.0",
|
|
447
458
|
},
|
|
448
459
|
{
|
|
449
|
-
documentation: "Takes one argument as a parameter. Returns the nth head x rotation of the entity if it makes sense, else it returns 0.0",
|
|
450
460
|
id: "head_x_rotation",
|
|
461
|
+
documentation: "Takes one argument as a parameter. Returns the nth head x rotation of the entity if it makes sense, else it returns 0.0",
|
|
451
462
|
},
|
|
452
463
|
{
|
|
453
|
-
documentation: "Takes one argument as a parameter. Returns the nth head y rotation of the entity if it makes sense, else it returns 0.0",
|
|
454
464
|
id: "head_y_rotation",
|
|
465
|
+
documentation: "Takes one argument as a parameter. Returns the nth head y rotation of the entity if it makes sense, else it returns 0.0",
|
|
455
466
|
},
|
|
456
467
|
{
|
|
457
|
-
documentation: "Returns the health of the entity, or 0.0 if it doesn't make sense to call on this entity.",
|
|
458
468
|
id: "health",
|
|
469
|
+
documentation: "Returns the health of the entity, or 0.0 if it doesn't make sense to call on this entity.",
|
|
459
470
|
},
|
|
471
|
+
{ id: "heightmap", documentation: "Queries Height Map" },
|
|
460
472
|
{
|
|
461
|
-
documentation: "Queries Height Map",
|
|
462
|
-
id: "heightmap",
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
documentation: "returns the hurt direction for the actor, otherwise returns 0",
|
|
466
473
|
id: "hurt_direction",
|
|
474
|
+
documentation: "returns the hurt direction for the actor, otherwise returns 0",
|
|
467
475
|
},
|
|
468
476
|
{
|
|
469
|
-
documentation: "returns the hurt time for the actor, otherwise returns 0",
|
|
470
477
|
id: "hurt_time",
|
|
478
|
+
documentation: "returns the hurt time for the actor, otherwise returns 0",
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
id: "in_range",
|
|
482
|
+
documentation: "Requires 3 numerical arguments: some value, a minimum, and a maximum. If the first argument is between the minimum and maximum (inclusive), returns 1.0. Otherwise returns 0.0.",
|
|
483
|
+
parameters: [
|
|
484
|
+
{ id: "evualate", documentation: "The value to evualate" },
|
|
485
|
+
{
|
|
486
|
+
id: "minimum",
|
|
487
|
+
documentation: "The first value to compare, inclusive",
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
id: "maximum",
|
|
491
|
+
documentation: "The second value to compare, inclusive",
|
|
492
|
+
},
|
|
493
|
+
],
|
|
471
494
|
},
|
|
472
495
|
{
|
|
473
|
-
documentation: "Returns the number of ticks of invulnerability the entity has left if it makes sense, else it returns 0.0",
|
|
474
496
|
id: "invulnerable_ticks",
|
|
497
|
+
documentation: "Returns the number of ticks of invulnerability the entity has left if it makes sense, else it returns 0.0",
|
|
475
498
|
},
|
|
476
499
|
{
|
|
477
|
-
documentation: "Returns 1.0 if the entity is admiring, else it returns 0.0",
|
|
478
500
|
id: "is_admiring",
|
|
501
|
+
documentation: "Returns 1.0 if the entity is admiring, else it returns 0.0",
|
|
479
502
|
},
|
|
480
503
|
{
|
|
481
|
-
documentation: "returns 1.0 if the entity is alive, and 0.0 if it's dead",
|
|
482
504
|
id: "is_alive",
|
|
505
|
+
documentation: "returns 1.0 if the entity is alive, and 0.0 if it's dead",
|
|
483
506
|
},
|
|
484
507
|
{
|
|
485
|
-
documentation: "Returns 1.0 if the entity is angry, else it returns 0.0",
|
|
486
508
|
id: "is_angry",
|
|
509
|
+
documentation: "Returns 1.0 if the entity is angry, else it returns 0.0",
|
|
487
510
|
},
|
|
488
511
|
{
|
|
489
|
-
documentation: "Returns 1.0 if the actor is attached to an entity, else it will return 0.0",
|
|
490
512
|
id: "is_attached_to_entity",
|
|
513
|
+
documentation: "Returns 1.0 if the actor is attached to an entity, else it will return 0.0",
|
|
491
514
|
},
|
|
492
515
|
{
|
|
493
|
-
documentation: "Returns 1.0 if the entity is fleeing from a block, else it returns 0.0",
|
|
494
516
|
id: "is_avoiding_block",
|
|
517
|
+
documentation: "Returns 1.0 if the entity is fleeing from a block, else it returns 0.0",
|
|
495
518
|
},
|
|
496
519
|
{
|
|
497
|
-
documentation: "Returns 1.0 if the entity is fleeing from mobs, else it returns 0.0",
|
|
498
520
|
id: "is_avoiding_mobs",
|
|
521
|
+
documentation: "Returns 1.0 if the entity is fleeing from mobs, else it returns 0.0",
|
|
499
522
|
},
|
|
500
523
|
{
|
|
501
|
-
documentation: "Returns 1.0 if the entity is a baby, else it returns 0.0",
|
|
502
524
|
id: "is_baby",
|
|
525
|
+
documentation: "Returns 1.0 if the entity is a baby, else it returns 0.0",
|
|
503
526
|
},
|
|
504
527
|
{
|
|
505
|
-
documentation: "Returns 1.0 if the entity is breathing, else it returns 0.0",
|
|
506
528
|
id: "is_breathing",
|
|
529
|
+
documentation: "Returns 1.0 if the entity is breathing, else it returns 0.0",
|
|
507
530
|
},
|
|
508
531
|
{
|
|
509
|
-
documentation: "Returns 1.0 if the entity has been bribed, else it returns 0.0",
|
|
510
532
|
id: "is_bribed",
|
|
533
|
+
documentation: "Returns 1.0 if the entity has been bribed, else it returns 0.0",
|
|
511
534
|
},
|
|
512
535
|
{
|
|
513
|
-
documentation: "Returns 1.0 if the entity is carrying a block, else it returns 0.0",
|
|
514
536
|
id: "is_carrying_block",
|
|
537
|
+
documentation: "Returns 1.0 if the entity is carrying a block, else it returns 0.0",
|
|
515
538
|
},
|
|
516
539
|
{
|
|
517
|
-
documentation: "Returns 1.0 if the entity is casting, else it returns 0.0",
|
|
518
540
|
id: "is_casting",
|
|
541
|
+
documentation: "Returns 1.0 if the entity is casting, else it returns 0.0",
|
|
519
542
|
},
|
|
520
543
|
{
|
|
521
|
-
|
|
522
|
-
|
|
544
|
+
id: "is_celebrating_special",
|
|
545
|
+
documentation: "Returns 1.0 if the entity is doing a special celebration, else it returns 0.0",
|
|
523
546
|
},
|
|
524
547
|
{
|
|
525
|
-
|
|
526
|
-
|
|
548
|
+
id: "is_celebrating",
|
|
549
|
+
documentation: "Returns 1.0 if the entity is celebrating, else it returns 0.0",
|
|
527
550
|
},
|
|
528
551
|
{
|
|
529
|
-
documentation: "Returns 1.0 if the entity is charged, else it returns 0.0",
|
|
530
552
|
id: "is_charged",
|
|
553
|
+
documentation: "Returns 1.0 if the entity is charged, else it returns 0.0",
|
|
531
554
|
},
|
|
532
555
|
{
|
|
533
|
-
documentation: "Returns 1.0 if the entity is charging, else it returns 0.0",
|
|
534
556
|
id: "is_charging",
|
|
557
|
+
documentation: "Returns 1.0 if the entity is charging, else it returns 0.0",
|
|
535
558
|
},
|
|
536
559
|
{
|
|
537
|
-
documentation: "Returns 1.0 if the entity has chests attached to it, else it returns 0.0",
|
|
538
560
|
id: "is_chested",
|
|
561
|
+
documentation: "Returns 1.0 if the entity has chests attached to it, else it returns 0.0",
|
|
539
562
|
},
|
|
540
563
|
{
|
|
541
|
-
documentation: "Returns 1.0 if the entity is critical, else it returns 0.0",
|
|
542
564
|
id: "is_critical",
|
|
565
|
+
documentation: "Returns 1.0 if the entity is critical, else it returns 0.0",
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
id: "is_croaking",
|
|
569
|
+
documentation: "Returns 1.0 if the entity is croaking, else it returns 0.0",
|
|
543
570
|
},
|
|
544
571
|
{
|
|
545
|
-
documentation: "Returns 1.0 if the entity is dancing, else it returns 0.0",
|
|
546
572
|
id: "is_dancing",
|
|
573
|
+
documentation: "Returns 1.0 if the entity is dancing, else it returns 0.0",
|
|
547
574
|
},
|
|
548
575
|
{
|
|
549
|
-
documentation: "returns 1.0 if the entity is attacking using the delayed attack, else it returns 0.0",
|
|
550
576
|
id: "is_delayed_attacking",
|
|
577
|
+
documentation: "returns 1.0 if the entity is attacking using the delayed attack, else it returns 0.0",
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
id: "is_eating_mob",
|
|
581
|
+
documentation: "Returns 1.0 if the entity is eating a mob, else it returns 0.0",
|
|
551
582
|
},
|
|
552
583
|
{
|
|
553
|
-
documentation: "Returns 1.0 if the entity is eating, else it returns 0.0",
|
|
554
584
|
id: "is_eating",
|
|
585
|
+
documentation: "Returns 1.0 if the entity is eating, else it returns 0.0",
|
|
555
586
|
},
|
|
556
587
|
{
|
|
557
|
-
documentation: "Returns 1.0 if the entity is an elder version of it, else it returns 0.0",
|
|
558
588
|
id: "is_elder",
|
|
589
|
+
documentation: "Returns 1.0 if the entity is an elder version of it, else it returns 0.0",
|
|
559
590
|
},
|
|
560
591
|
{
|
|
561
|
-
documentation: "Returns 1.0 if the entity is emoting, else it returns 0.0",
|
|
562
592
|
id: "is_emoting",
|
|
593
|
+
documentation: "Returns 1.0 if the entity is emoting, else it returns 0.0",
|
|
563
594
|
},
|
|
564
595
|
{
|
|
565
|
-
documentation: "Returns 1.0 if the entity is enchanted, else it returns 0.0",
|
|
566
596
|
id: "is_enchanted",
|
|
597
|
+
documentation: "Returns 1.0 if the entity is enchanted, else it returns 0.0",
|
|
567
598
|
},
|
|
568
599
|
{
|
|
569
|
-
documentation: "Returns 1.0 if the entity is immune to fire, else it returns 0.0",
|
|
570
600
|
id: "is_fire_immune",
|
|
601
|
+
documentation: "Returns 1.0 if the entity is immune to fire, else it returns 0.0",
|
|
571
602
|
},
|
|
572
603
|
{
|
|
573
|
-
documentation: "Returns 1.0 if the entity is being rendered in first person mode, else it returns 0.0",
|
|
574
604
|
id: "is_first_person",
|
|
605
|
+
documentation: "Returns 1.0 if the entity is being rendered in first person mode, else it returns 0.0",
|
|
575
606
|
},
|
|
576
607
|
{
|
|
577
|
-
documentation: "returns 1.0 if an entity is a ghost, else it returns 0.0",
|
|
578
608
|
id: "is_ghost",
|
|
609
|
+
documentation: "returns 1.0 if an entity is a ghost, else it returns 0.0",
|
|
579
610
|
},
|
|
580
611
|
{
|
|
581
|
-
documentation: "Returns 1.0 if the entity is gliding, else it returns 0.0",
|
|
582
612
|
id: "is_gliding",
|
|
613
|
+
documentation: "Returns 1.0 if the entity is gliding, else it returns 0.0",
|
|
583
614
|
},
|
|
584
615
|
{
|
|
585
|
-
documentation: "Returns 1.0 if the entity is grazing, or 0.0 if not",
|
|
586
616
|
id: "is_grazing",
|
|
617
|
+
documentation: "Returns 1.0 if the entity is grazing, or 0.0 if not",
|
|
587
618
|
},
|
|
588
619
|
{
|
|
589
|
-
documentation: "Returns 1.0 if the entity is idling, else it returns 0.0",
|
|
590
620
|
id: "is_idling",
|
|
621
|
+
documentation: "Returns 1.0 if the entity is idling, else it returns 0.0",
|
|
591
622
|
},
|
|
592
623
|
{
|
|
593
|
-
documentation: "Returns 1.0 if the entity is ignited, else it returns 0.0",
|
|
594
624
|
id: "is_ignited",
|
|
625
|
+
documentation: "Returns 1.0 if the entity is ignited, else it returns 0.0",
|
|
595
626
|
},
|
|
596
627
|
{
|
|
597
|
-
documentation: "Returns 1.0 if the entity is an illager captain, else it returns 0.0",
|
|
598
628
|
id: "is_illager_captain",
|
|
629
|
+
documentation: "Returns 1.0 if the entity is an illager captain, else it returns 0.0",
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
id: "is_in_contact_with_water",
|
|
633
|
+
documentation: "Returns 1.0 if the entity is in contact with any water (water, rain, splash water bottle), else it returns 0.0",
|
|
599
634
|
},
|
|
600
635
|
{
|
|
601
|
-
documentation: "Returns 1.0 if the entity is in love, else it returns 0.0",
|
|
602
636
|
id: "is_in_love",
|
|
637
|
+
documentation: "Returns 1.0 if the entity is in love, else it returns 0.0",
|
|
603
638
|
},
|
|
604
639
|
{
|
|
605
|
-
documentation: "Returns 1.0 if the entity is rendered as part of the UI, else it returns 0.0",
|
|
606
640
|
id: "is_in_ui",
|
|
641
|
+
documentation: "Returns 1.0 if the entity is rendered as part of the UI, else it returns 0.0",
|
|
607
642
|
},
|
|
608
643
|
{
|
|
609
|
-
|
|
610
|
-
|
|
644
|
+
id: "is_in_water_or_rain",
|
|
645
|
+
documentation: "Returns 1.0 if the entity is in water or rain, else it returns 0.0",
|
|
611
646
|
},
|
|
612
647
|
{
|
|
613
|
-
|
|
614
|
-
|
|
648
|
+
id: "is_in_water",
|
|
649
|
+
documentation: "Returns 1.0 if the entity is in water, else it returns 0.0",
|
|
615
650
|
},
|
|
616
651
|
{
|
|
617
|
-
documentation: "Returns 1.0 if the entity is interested, else it returns 0.0",
|
|
618
652
|
id: "is_interested",
|
|
653
|
+
documentation: "Returns 1.0 if the entity is interested, else it returns 0.0",
|
|
619
654
|
},
|
|
620
655
|
{
|
|
621
|
-
documentation: "Returns 1.0 if the entity is invisible, else it returns 0.0",
|
|
622
656
|
id: "is_invisible",
|
|
657
|
+
documentation: "Returns 1.0 if the entity is invisible, else it returns 0.0",
|
|
623
658
|
},
|
|
624
659
|
{
|
|
625
|
-
documentation: "takes one optional hand slot as a parameter (0 or 'main_hand' for main hand, 1 or 'off_hand' for off hand), and returns 1.0 if there is an item in the requested slot (defaulting to the main hand if no parameter is supplied), otherwise returns 0.0.",
|
|
626
660
|
id: "is_item_equipped",
|
|
627
|
-
|
|
661
|
+
documentation: "takes one optional hand slot as a parameter (0 or 'main_hand' for main hand, 1 or 'off_hand' for off hand), and returns 1.0 if there is an item in the requested slot (defaulting to the main hand if no parameter is supplied), otherwise returns 0.0.",
|
|
662
|
+
parameters: [
|
|
663
|
+
{
|
|
664
|
+
id: "slot",
|
|
665
|
+
documentation: "0 or 'main_hand' for main hand, 1 or 'off_hand' for off hand",
|
|
666
|
+
},
|
|
667
|
+
],
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
id: "is_item_name_any",
|
|
671
|
+
documentation: "Takes an equipment slot name (see the replaceitem command) and an optional slot index value. After that, takes one or more full name (with 'namespace:') strings to check for. Returns 1.0 if an item in the specified slot has any of the specified names, otherwise returns 0.0. An empty string '' can be specified to check for an empty slot. Note that querying slot.enderchest, slot.saddle, slot.armor, or slot.chest will only work in behavior packs. A preferred query to query.get_equipped_item_name, as it can be adjusted by Mojang to avoid breaking content if names are changed.",
|
|
672
|
+
parameters: [
|
|
673
|
+
{ id: "quipment slot name", documentation: "quipment slot name" },
|
|
674
|
+
{ id: "slot index", documentation: "" },
|
|
675
|
+
{ id: "item", documentation: "" },
|
|
676
|
+
],
|
|
628
677
|
},
|
|
629
678
|
{
|
|
630
|
-
documentation: "Returns 1.0 if the entity is in water or rain, else it returns 0.0",
|
|
631
679
|
id: "is_jumping",
|
|
680
|
+
documentation: "Returns 1.0 if the entity is in water or rain, else it returns 0.0",
|
|
632
681
|
},
|
|
633
682
|
{
|
|
634
|
-
documentation: "Returns 1.0 if the entity is laying down, else it returns 0.0",
|
|
635
683
|
id: "is_laying_down",
|
|
684
|
+
documentation: "Returns 1.0 if the entity is laying down, else it returns 0.0",
|
|
636
685
|
},
|
|
637
686
|
{
|
|
638
|
-
documentation: "Returns 1.0 if the entity is laying an egg, else it returns 0.0",
|
|
639
687
|
id: "is_laying_egg",
|
|
688
|
+
documentation: "Returns 1.0 if the entity is laying an egg, else it returns 0.0",
|
|
640
689
|
},
|
|
641
690
|
{
|
|
642
|
-
documentation: "Returns 1.0 if the entity is leashed to something, else it returns 0.0",
|
|
643
691
|
id: "is_leashed",
|
|
692
|
+
documentation: "Returns 1.0 if the entity is leashed to something, else it returns 0.0",
|
|
644
693
|
},
|
|
645
694
|
{
|
|
646
|
-
documentation: "Returns 1.0 if the entity is levitating, else it returns 0.0",
|
|
647
695
|
id: "is_levitating",
|
|
696
|
+
documentation: "Returns 1.0 if the entity is levitating, else it returns 0.0",
|
|
648
697
|
},
|
|
649
698
|
{
|
|
650
|
-
documentation: "Returns 1.0 if the entity is lingering, else it returns 0.0",
|
|
651
699
|
id: "is_lingering",
|
|
700
|
+
documentation: "Returns 1.0 if the entity is lingering, else it returns 0.0",
|
|
652
701
|
},
|
|
653
702
|
{
|
|
654
|
-
documentation: "Returns 1.0 if the entity is moving, else it returns 0.0",
|
|
655
703
|
id: "is_moving",
|
|
704
|
+
documentation: "Returns 1.0 if the entity is moving, else it returns 0.0",
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
id: "is_name_any",
|
|
708
|
+
documentation: "Takes one or more arguments. If the entity's name is any of the specified string values, returns 1.0. Otherwise returns 0.0. A preferred query to query.get_name, as it can be adjusted by Mojang to avoid breaking content if names are changed.",
|
|
709
|
+
parameters: [
|
|
710
|
+
{ id: "name 1", documentation: "possible entity name" },
|
|
711
|
+
{ id: "name 2", documentation: "possible entity name" },
|
|
712
|
+
],
|
|
656
713
|
},
|
|
657
714
|
{
|
|
658
|
-
documentation: "returns 1.0 if the entity is on fire, else it returns 0.0",
|
|
659
715
|
id: "is_on_fire",
|
|
716
|
+
documentation: "returns 1.0 if the entity is on fire, else it returns 0.0",
|
|
660
717
|
},
|
|
661
718
|
{
|
|
662
|
-
documentation: "Returns 1.0 if the entity is on the ground, else it returns 0.0",
|
|
663
719
|
id: "is_on_ground",
|
|
720
|
+
documentation: "Returns 1.0 if the entity is on the ground, else it returns 0.0",
|
|
664
721
|
},
|
|
665
722
|
{
|
|
666
|
-
documentation: "returns 1.0 if this is called on an entity at a time when it is known if it is on screen, else it returns 0.0",
|
|
667
723
|
id: "is_on_screen",
|
|
724
|
+
documentation: "returns 1.0 if this is called on an entity at a time when it is known if it is on screen, else it returns 0.0",
|
|
668
725
|
},
|
|
669
726
|
{
|
|
670
|
-
documentation: "Returns 1.0 if the entity is on fire, else it returns 0.0",
|
|
671
727
|
id: "is_onfire",
|
|
728
|
+
documentation: "Returns 1.0 if the entity is on fire, else it returns 0.0",
|
|
672
729
|
},
|
|
673
730
|
{
|
|
674
|
-
documentation: "Returns 1.0 if the entity is orphaned, else it returns 0.0",
|
|
675
731
|
id: "is_orphaned",
|
|
732
|
+
documentation: "Returns 1.0 if the entity is orphaned, else it returns 0.0",
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
id: "is_owner_identifier_any",
|
|
736
|
+
documentation: "Takes one or more arguments. Returns whether the root actor identifier is any of the specified strings. A preferred query to query.owner_identifier, as it can be adjusted by Mojang to avoid breaking content if names are changed.",
|
|
737
|
+
parameters: [
|
|
738
|
+
{ id: "name 1", documentation: "possible entity name" },
|
|
739
|
+
{ id: "name 2", documentation: "possible entity name" },
|
|
740
|
+
],
|
|
676
741
|
},
|
|
677
742
|
{
|
|
678
|
-
documentation: "Returns 1.0 if the player has a persona or permium skin, else it returns 0.0",
|
|
679
743
|
id: "is_persona_or_premium_skin",
|
|
744
|
+
documentation: "Returns 1.0 if the player has a persona or permium skin, else it returns 0.0",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
id: "is_playing_dead",
|
|
748
|
+
documentation: "Returns 1.0 if the entity is playing dead, else it returns 0.0",
|
|
680
749
|
},
|
|
681
750
|
{
|
|
682
|
-
documentation: "Returns 1.0 if the entity is powered, else it returns 0.0",
|
|
683
751
|
id: "is_powered",
|
|
752
|
+
documentation: "Returns 1.0 if the entity is powered, else it returns 0.0",
|
|
684
753
|
},
|
|
685
754
|
{
|
|
686
|
-
documentation: "Returns 1.0 if the entity is pregnant, else it returns 0.0",
|
|
687
755
|
id: "is_pregnant",
|
|
756
|
+
documentation: "Returns 1.0 if the entity is pregnant, else it returns 0.0",
|
|
688
757
|
},
|
|
689
758
|
{
|
|
690
|
-
documentation: "Returns 1.0 if the entity is using a ram attack, else it returns 0.0",
|
|
691
759
|
id: "is_ram_attacking",
|
|
760
|
+
documentation: "Returns 1.0 if the entity is using a ram attack, else it returns 0.0",
|
|
692
761
|
},
|
|
693
762
|
{
|
|
694
|
-
documentation: "Returns 1.0 if the entity is resting, else it returns 0.0",
|
|
695
763
|
id: "is_resting",
|
|
764
|
+
documentation: "Returns 1.0 if the entity is resting, else it returns 0.0",
|
|
696
765
|
},
|
|
697
766
|
{
|
|
698
|
-
documentation: "Returns 1.0 if the entity is riding, else it returns 0.0",
|
|
699
767
|
id: "is_riding",
|
|
768
|
+
documentation: "Returns 1.0 if the entity is riding, else it returns 0.0",
|
|
700
769
|
},
|
|
701
770
|
{
|
|
702
|
-
documentation: "returns 1.0 if the entity is currently roaring, else it returns 0.0",
|
|
703
771
|
id: "is_roaring",
|
|
772
|
+
documentation: "returns 1.0 if the entity is currently roaring, else it returns 0.0",
|
|
704
773
|
},
|
|
705
774
|
{
|
|
706
|
-
documentation: "Returns 1.0 if the entity is rolling, else it returns 0.0",
|
|
707
775
|
id: "is_rolling",
|
|
776
|
+
documentation: "Returns 1.0 if the entity is rolling, else it returns 0.0",
|
|
708
777
|
},
|
|
709
778
|
{
|
|
710
|
-
documentation: "Returns 1.0 if the entity has a saddle, else it returns 0.0",
|
|
711
779
|
id: "is_saddled",
|
|
780
|
+
documentation: "Returns 1.0 if the entity has a saddle, else it returns 0.0",
|
|
712
781
|
},
|
|
713
782
|
{
|
|
714
|
-
documentation: "Returns 1.0 if the entity is scared, else it returns 0.0",
|
|
715
783
|
id: "is_scared",
|
|
784
|
+
documentation: "Returns 1.0 if the entity is scared, else it returns 0.0",
|
|
716
785
|
},
|
|
717
786
|
{
|
|
718
|
-
documentation: "returns true if the player has selected an item in the inventory, else it returns 0.0",
|
|
719
787
|
id: "is_selected_item",
|
|
788
|
+
documentation: "returns true if the player has selected an item in the inventory, else it returns 0.0",
|
|
720
789
|
},
|
|
721
790
|
{
|
|
722
|
-
|
|
723
|
-
|
|
791
|
+
id: "is_shaking_wetness",
|
|
792
|
+
documentation: "returns 1.0 if the entity is shaking water off, else it returns 0.0",
|
|
724
793
|
},
|
|
725
794
|
{
|
|
726
|
-
|
|
727
|
-
|
|
795
|
+
id: "is_shaking",
|
|
796
|
+
documentation: "Returns 1.0 if the entity is casting, else it returns 0.0",
|
|
728
797
|
},
|
|
729
798
|
{
|
|
730
|
-
documentation: "Returns 1.0 if the entity is able to be sheared and is sheared, else it returns 0.0",
|
|
731
799
|
id: "is_sheared",
|
|
800
|
+
documentation: "Returns 1.0 if the entity is able to be sheared and is sheared, else it returns 0.0",
|
|
732
801
|
},
|
|
733
802
|
{
|
|
734
|
-
documentation: "Returns 1.0f if the entity has an active powered shield if it makes sense, else it returns 0.0",
|
|
735
803
|
id: "is_shield_powered",
|
|
804
|
+
documentation: "Returns 1.0f if the entity has an active powered shield if it makes sense, else it returns 0.0",
|
|
736
805
|
},
|
|
737
806
|
{
|
|
738
|
-
documentation: "Returns 1.0 if the entity is silent, else it returns 0.0",
|
|
739
807
|
id: "is_silent",
|
|
808
|
+
documentation: "Returns 1.0 if the entity is silent, else it returns 0.0",
|
|
740
809
|
},
|
|
741
810
|
{
|
|
742
|
-
documentation: "Returns 1.0 if the entity is sitting, else it returns 0.0",
|
|
743
811
|
id: "is_sitting",
|
|
812
|
+
documentation: "Returns 1.0 if the entity is sitting, else it returns 0.0",
|
|
744
813
|
},
|
|
745
814
|
{
|
|
746
|
-
documentation: "Returns 1.0 if the entity is sleeping, else it returns 0.0",
|
|
747
815
|
id: "is_sleeping",
|
|
816
|
+
documentation: "Returns 1.0 if the entity is sleeping, else it returns 0.0",
|
|
748
817
|
},
|
|
749
818
|
{
|
|
750
|
-
documentation: "Returns 1.0 if the entity is sneaking, else it returns 0.0",
|
|
751
819
|
id: "is_sneaking",
|
|
820
|
+
documentation: "Returns 1.0 if the entity is sneaking, else it returns 0.0",
|
|
752
821
|
},
|
|
753
822
|
{
|
|
754
|
-
documentation: "Returns 1.0 if the entity is sneezing, else it returns 0.0",
|
|
755
823
|
id: "is_sneezing",
|
|
824
|
+
documentation: "Returns 1.0 if the entity is sneezing, else it returns 0.0",
|
|
756
825
|
},
|
|
757
826
|
{
|
|
758
|
-
documentation: "Returns 1.0 if the entity is sprinting, else it returns 0.0",
|
|
759
827
|
id: "is_sprinting",
|
|
828
|
+
documentation: "Returns 1.0 if the entity is sprinting, else it returns 0.0",
|
|
760
829
|
},
|
|
761
830
|
{
|
|
762
|
-
documentation: "Returns 1.0 if the entity is stackable, else it returns 0.0",
|
|
763
831
|
id: "is_stackable",
|
|
832
|
+
documentation: "Returns 1.0 if the entity is stackable, else it returns 0.0",
|
|
764
833
|
},
|
|
765
834
|
{
|
|
766
|
-
documentation: "Returns 1.0 if the entity is stalking, else it returns 0.0",
|
|
767
835
|
id: "is_stalking",
|
|
836
|
+
documentation: "Returns 1.0 if the entity is stalking, else it returns 0.0",
|
|
768
837
|
},
|
|
769
838
|
{
|
|
770
|
-
documentation: "Returns 1.0 if the entity is standing, else it returns 0.0",
|
|
771
839
|
id: "is_standing",
|
|
840
|
+
documentation: "Returns 1.0 if the entity is standing, else it returns 0.0",
|
|
772
841
|
},
|
|
773
842
|
{
|
|
774
|
-
documentation: "returns 1.0 if the entity is currently stunned, else it returns 0.0",
|
|
775
843
|
id: "is_stunned",
|
|
844
|
+
documentation: "returns 1.0 if the entity is currently stunned, else it returns 0.0",
|
|
776
845
|
},
|
|
777
846
|
{
|
|
778
|
-
documentation: "Returns 1.0 if the entity is swimming, else it returns 0.0",
|
|
779
847
|
id: "is_swimming",
|
|
848
|
+
documentation: "Returns 1.0 if the entity is swimming, else it returns 0.0",
|
|
780
849
|
},
|
|
781
850
|
{
|
|
782
|
-
documentation: "Returns 1.0 if the entity is tamed, else it returns 0.0",
|
|
783
851
|
id: "is_tamed",
|
|
852
|
+
documentation: "Returns 1.0 if the entity is tamed, else it returns 0.0",
|
|
784
853
|
},
|
|
785
854
|
{
|
|
786
|
-
documentation: "Returns 1.0 if the entity is transforming, else it returns 0.0",
|
|
787
855
|
id: "is_transforming",
|
|
856
|
+
documentation: "Returns 1.0 if the entity is transforming, else it returns 0.0",
|
|
788
857
|
},
|
|
789
858
|
{
|
|
790
|
-
documentation: "Returns 1.0 if the entity is using an item, else it returns 0.0",
|
|
791
859
|
id: "is_using_item",
|
|
860
|
+
documentation: "Returns 1.0 if the entity is using an item, else it returns 0.0",
|
|
792
861
|
},
|
|
793
862
|
{
|
|
794
|
-
documentation: "Returns 1.0 if the entity is climbing a wall, else it returns 0.0",
|
|
795
863
|
id: "is_wall_climbing",
|
|
864
|
+
documentation: "Returns 1.0 if the entity is climbing a wall, else it returns 0.0",
|
|
796
865
|
},
|
|
797
866
|
{
|
|
798
|
-
documentation: "Returns the amount of time an item has been in use in seconds up to the maximum duration, else 0.0 if it doesn't make sense",
|
|
799
867
|
id: "item_in_use_duration",
|
|
868
|
+
documentation: "Returns the amount of time an item has been in use in seconds up to the maximum duration, else 0.0 if it doesn't make sense",
|
|
800
869
|
},
|
|
801
870
|
{
|
|
802
|
-
documentation: "takes one optional hand slot as a parameter (0 or 'main_hand' for main hand, 1 or `off_hand` for off hand), and returns 1.0 if the item is charged in the requested slot (defaulting to the main hand if no parameter is supplied), otherwise returns 0.0.",
|
|
803
871
|
id: "item_is_charged",
|
|
804
|
-
|
|
872
|
+
documentation: "takes one optional hand slot as a parameter (0 or 'main_hand' for main hand, 1 or `off_hand` for off hand), and returns 1.0 if the item is charged in the requested slot (defaulting to the main hand if no parameter is supplied), otherwise returns 0.0.",
|
|
873
|
+
parameters: [
|
|
874
|
+
{
|
|
875
|
+
id: "slot",
|
|
876
|
+
documentation: "0 or 'main_hand' for main hand, 1 or 'off_hand' for off hand",
|
|
877
|
+
},
|
|
878
|
+
],
|
|
805
879
|
},
|
|
806
880
|
{
|
|
807
|
-
documentation: "Returns the maximum amount of time the item can be used, else 0.0 if it doesn't make sense",
|
|
808
881
|
id: "item_max_use_duration",
|
|
882
|
+
documentation: "Returns the maximum amount of time the item can be used, else 0.0 if it doesn't make sense",
|
|
809
883
|
},
|
|
810
884
|
{
|
|
811
|
-
documentation: "Returns the amount of time an item has left to use, else 0.0 if it doesn't make sense. Item queried is specified by the slot name `main_hand` or `off_hand`. Time remaining is normalized using the normalization value, only if one is given, else it is returned in seconds.",
|
|
812
885
|
id: "item_remaining_use_duration",
|
|
886
|
+
documentation: "Returns the amount of time an item has left to use, else 0.0 if it doesn't make sense. Item queried is specified by the slot name `main_hand` or `off_hand`. Time remaining is normalized using the normalization value, only if one is given, else it is returned in seconds.",
|
|
813
887
|
},
|
|
814
888
|
{
|
|
815
|
-
documentation: "query.item_slot_to_bone_name requires one parameter: the name of the equipment slot. This id returns the name of the bone this entity has mapped to that slot.",
|
|
816
889
|
id: "item_slot_to_bone_name",
|
|
890
|
+
documentation: "query.item_slot_to_bone_name requires one parameter: the name of the equipment slot. This id returns the name of the bone this entity has mapped to that slot.",
|
|
817
891
|
},
|
|
818
892
|
{
|
|
819
|
-
documentation: "Returns the ratio between the previous and next key frames",
|
|
820
893
|
id: "key_frame_lerp_time",
|
|
894
|
+
documentation: "Returns the ratio between the previous and next key frames",
|
|
821
895
|
},
|
|
822
896
|
{
|
|
823
|
-
documentation: "Returns the time in *seconds* of the last frame. If an argument is passed, it is assumed to be the number of frames in the past that you wish to query. 'query.last_frame_time' (or the equivalent 'query.last_frame_time(0)') will return the frame time of the frame before the current one. 'query.last_frame_time(1)' will return the frame time of two frames ago. Currently we store the history of the last 30 frames, although note that this may change in the future. Passing an index more than the available data will return the oldest frame stored.",
|
|
824
897
|
id: "last_frame_time",
|
|
898
|
+
documentation: "Returns the time in *seconds* of the last frame. If an argument is passed, it is assumed to be the number of frames in the past that you wish to query. 'query.last_frame_time' (or the equivalent 'query.last_frame_time(0)') will return the frame time of the frame before the current one. 'query.last_frame_time(1)' will return the frame time of two frames ago. Currently we store the history of the last 30 frames, although note that this may change in the future. Passing an index more than the available data will return the oldest frame stored.",
|
|
825
899
|
},
|
|
826
900
|
{
|
|
827
|
-
documentation: "Returns 1.0 if the entity was last hit by the player, else it returns 0.0. If called by the client always returns 0.0",
|
|
828
901
|
id: "last_hit_by_player",
|
|
902
|
+
documentation: "Returns 1.0 if the entity was last hit by the player, else it returns 0.0. If called by the client always returns 0.0",
|
|
829
903
|
},
|
|
830
904
|
{
|
|
831
|
-
documentation: "Returns the lie down amount for the entity",
|
|
832
905
|
id: "lie_amount",
|
|
906
|
+
documentation: "Returns the lie down amount for the entity",
|
|
833
907
|
},
|
|
834
908
|
{
|
|
835
|
-
documentation: "returns the limited life span of an entity, or 0.0 if it lives forever",
|
|
836
909
|
id: "life_span",
|
|
910
|
+
documentation: "returns the limited life span of an entity, or 0.0 if it lives forever",
|
|
837
911
|
},
|
|
838
912
|
{
|
|
839
|
-
documentation: "Returns the time in seconds since the current animation started, else 0.0 if not called within an animation",
|
|
840
913
|
id: "life_time",
|
|
914
|
+
documentation: "Returns the time in seconds since the current animation started, else 0.0 if not called within an animation",
|
|
841
915
|
},
|
|
842
916
|
{
|
|
843
|
-
documentation: "Takes an array of distances and returns the zero - based index of which range the actor is in based on distance from the camera.For example, 'query.lod_index(10, 20, 30)' will return 0, 1, or 2 based on whether the mob is less than 10, 20, or 30 units away from the camera, or it will return 3 if it is greater than 30.",
|
|
844
917
|
id: "lod_index",
|
|
918
|
+
documentation: "Takes an array of distances and returns the zero - based index of which range the actor is in based on distance from the camera.For example, 'query.lod_index(10, 20, 30)' will return 0, 1, or 2 based on whether the mob is less than 10, 20, or 30 units away from the camera, or it will return 3 if it is greater than 30.",
|
|
845
919
|
},
|
|
846
920
|
{
|
|
847
|
-
documentation: "debug log a value to the content log",
|
|
848
921
|
id: "log",
|
|
922
|
+
documentation: "debug log a value to the content log",
|
|
923
|
+
parameters: [{ id: "value", documentation: "The value to log" }],
|
|
849
924
|
},
|
|
850
925
|
{
|
|
851
|
-
documentation: "Returns the use time maximum duration for the main hand item if it makes sense, else it returns 0.0",
|
|
852
926
|
id: "main_hand_item_max_duration",
|
|
927
|
+
documentation: "Returns the use time maximum duration for the main hand item if it makes sense, else it returns 0.0",
|
|
853
928
|
},
|
|
854
929
|
{
|
|
855
|
-
documentation: "Returns the use time for the main hand item.",
|
|
856
930
|
id: "main_hand_item_use_duration",
|
|
931
|
+
documentation: "Returns the use time for the main hand item.",
|
|
857
932
|
},
|
|
933
|
+
{ id: "mark_variant", documentation: "Returns the entity's mark variant" },
|
|
858
934
|
{
|
|
859
|
-
documentation: "Returns the entity's mark variant",
|
|
860
|
-
id: "mark_variant",
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
documentation: "Returns the max durability an item can take",
|
|
864
935
|
id: "max_durability",
|
|
936
|
+
documentation: "Returns the max durability an item can take",
|
|
865
937
|
},
|
|
866
938
|
{
|
|
867
|
-
documentation: "Returns the maximum health of the entity, or 0.0 if it doesn't make sense to call on this entity.",
|
|
868
939
|
id: "max_health",
|
|
940
|
+
documentation: "Returns the maximum health of the entity, or 0.0 if it doesn't make sense to call on this entity.",
|
|
869
941
|
},
|
|
870
942
|
{
|
|
871
|
-
documentation: "Returns the maximum trade tier of the entity if it makes sense, else it returns 0.0",
|
|
872
943
|
id: "max_trade_tier",
|
|
944
|
+
documentation: "Returns the maximum trade tier of the entity if it makes sense, else it returns 0.0",
|
|
873
945
|
},
|
|
874
946
|
{
|
|
875
|
-
documentation: "Returns the time in *seconds* of the most expensive frame over the last 'n' frames. If an argument is passed, it is assumed to be the number of frames in the past that you wish to query. 'query.maximum_frame_time' (or the equivalent 'query.maximum_frame_time(0)') will return the frame time of the frame before the current one. 'query.maximum_frame_time(1)' will return the maximum frame time of the previous two frames. Currently we store the history of the last 30 frames, although note that this may change in the future. Asking for more frames will result in only sampling the number of frames stored.",
|
|
876
947
|
id: "maximum_frame_time",
|
|
948
|
+
documentation: "Returns the time in *seconds* of the most expensive frame over the last 'n' frames. If an argument is passed, it is assumed to be the number of frames in the past that you wish to query. 'query.maximum_frame_time' (or the equivalent 'query.maximum_frame_time(0)') will return the frame time of the frame before the current one. 'query.maximum_frame_time(1)' will return the maximum frame time of the previous two frames. Currently we store the history of the last 30 frames, although note that this may change in the future. Asking for more frames will result in only sampling the number of frames stored.",
|
|
877
949
|
},
|
|
878
950
|
{
|
|
879
|
-
documentation: "Returns the time in *seconds* of the least expensive frame over the last 'n' frames. If an argument is passed, it is assumed to be the number of frames in the past that you wish to query. 'query.minimum_frame_time' (or the equivalent 'query.minimum_frame_time(0)') will return the frame time of the frame before the current one. 'query.minimum_frame_time(1)' will return the minimum frame time of the previous two frames. Currently we store the history of the last 30 frames, although note that this may change in the future. Asking for more frames will result in only sampling the number of frames stored.",
|
|
880
951
|
id: "minimum_frame_time",
|
|
952
|
+
documentation: "Returns the time in *seconds* of the least expensive frame over the last 'n' frames. If an argument is passed, it is assumed to be the number of frames in the past that you wish to query. 'query.minimum_frame_time' (or the equivalent 'query.minimum_frame_time(0)') will return the frame time of the frame before the current one. 'query.minimum_frame_time(1)' will return the minimum frame time of the previous two frames. Currently we store the history of the last 30 frames, although note that this may change in the future. Asking for more frames will result in only sampling the number of frames stored.",
|
|
881
953
|
},
|
|
882
954
|
{
|
|
883
|
-
documentation: "Returns the scale of the current entity",
|
|
884
955
|
id: "model_scale",
|
|
956
|
+
documentation: "Returns the scale of the current entity",
|
|
885
957
|
},
|
|
886
958
|
{
|
|
887
|
-
documentation: "Returns the total distance the entity has moved horizontally in meters (since the entity was last loaded, not necessarily since it was originally created) modified along the way by status flags such as is_baby or on_fire",
|
|
888
959
|
id: "modified_distance_moved",
|
|
960
|
+
documentation: "Returns the total distance the entity has moved horizontally in meters (since the entity was last loaded, not necessarily since it was originally created) modified along the way by status flags such as is_baby or on_fire",
|
|
889
961
|
},
|
|
890
962
|
{
|
|
891
|
-
documentation: "Returns the current walk speed of the entity modified by status flags such as is_baby or on_fire",
|
|
892
963
|
id: "modified_move_speed",
|
|
964
|
+
documentation: "Returns the current walk speed of the entity modified by status flags such as is_baby or on_fire",
|
|
893
965
|
},
|
|
894
966
|
{
|
|
895
|
-
documentation: "Returns the brightness of the moon (FULL_MOON=1.0, WANING_GIBBOUS=0.75, FIRST_QUARTER=0.5, WANING_CRESCENT=0.25, NEW_MOON=0.0, WAXING_CRESCENT=0.25, LAST_QUARTER=0.5, WAXING_GIBBOUS=0.75).",
|
|
896
967
|
id: "moon_brightness",
|
|
968
|
+
documentation: "Returns the brightness of the moon (FULL_MOON=1.0, WANING_GIBBOUS=0.75, FIRST_QUARTER=0.5, WANING_CRESCENT=0.25, NEW_MOON=0.0, WAXING_CRESCENT=0.25, LAST_QUARTER=0.5, WAXING_GIBBOUS=0.75).",
|
|
897
969
|
},
|
|
898
970
|
{
|
|
899
|
-
documentation: "Returns the phase of the moon (FULL_MOON=0, WANING_GIBBOUS=1, FIRST_QUARTER=2, WANING_CRESCENT=3, NEW_MOON=4, WAXING_CRESCENT=5, LAST_QUARTER=6, WAXING_GIBBOUS=7).",
|
|
900
971
|
id: "moon_phase",
|
|
972
|
+
documentation: "Returns the phase of the moon (FULL_MOON=0, WANING_GIBBOUS=1, FIRST_QUARTER=2, WANING_CRESCENT=3, NEW_MOON=4, WAXING_CRESCENT=5, LAST_QUARTER=6, WAXING_GIBBOUS=7).",
|
|
901
973
|
},
|
|
902
974
|
{
|
|
903
|
-
documentation: "returns the specified axis of the normalized position delta of the entity",
|
|
904
975
|
id: "movement_direction",
|
|
976
|
+
documentation: "returns the specified axis of the normalized position delta of the entity",
|
|
905
977
|
parameters: [{ id: "axis", documentation: "0 for x, 1 for y, 2 for z" }],
|
|
906
978
|
},
|
|
979
|
+
{ id: "noise", documentation: "Queries Perlin Noise Map" },
|
|
907
980
|
{
|
|
908
|
-
documentation: "Queries Perlin Noise Map",
|
|
909
|
-
id: "noise",
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
documentation: "returns the time that the entity is on fire, else it returns 0.0",
|
|
913
981
|
id: "on_fire_time",
|
|
982
|
+
documentation: "returns the time that the entity is on fire, else it returns 0.0",
|
|
914
983
|
},
|
|
915
984
|
{
|
|
916
|
-
documentation: "Returns 1.0 if the entity is out of control, else it returns 0.0",
|
|
917
985
|
id: "out_of_control",
|
|
986
|
+
documentation: "Returns 1.0 if the entity is out of control, else it returns 0.0",
|
|
918
987
|
},
|
|
919
988
|
{
|
|
920
|
-
documentation: "Do not use - this id is deprecated and will be removed",
|
|
921
|
-
id: "overlay_alpha",
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
documentation: "Returns the root actor identifier",
|
|
925
|
-
id: "owner_identifier",
|
|
926
|
-
},
|
|
927
|
-
{
|
|
928
|
-
documentation: "returns the players level if the actor is a player, otherwise returns 0",
|
|
929
989
|
id: "player_level",
|
|
990
|
+
documentation: "returns the players level if the actor is a player, otherwise returns 0",
|
|
930
991
|
},
|
|
931
992
|
{
|
|
932
|
-
|
|
933
|
-
|
|
993
|
+
id: "position_delta",
|
|
994
|
+
documentation: "Returns the position delta for an actor. Takes one argument that represents the desired axis (0 for x-axis, 1 for y-axis, 2 for z-axis).",
|
|
995
|
+
parameters: [{ id: "axis", documentation: "0 for x, 1 for y, 2 for z" }],
|
|
934
996
|
},
|
|
935
997
|
{
|
|
936
|
-
|
|
937
|
-
|
|
998
|
+
id: "position",
|
|
999
|
+
documentation: "Returns the absolute position of an actor. Takes one argument that represents the desired axis (0 for x-axis, 1 for y-axis, 2 for z-axis).",
|
|
1000
|
+
parameters: [{ id: "axis", documentation: "0 for x, 1 for y, 2 for z" }],
|
|
938
1001
|
},
|
|
939
1002
|
{
|
|
940
|
-
documentation: "Returns the previous squish value for the current entity, or 0.0 if this doesn't make sense",
|
|
941
1003
|
id: "previous_squish_value",
|
|
1004
|
+
documentation: "Returns the previous squish value for the current entity, or 0.0 if this doesn't make sense",
|
|
942
1005
|
},
|
|
943
1006
|
{
|
|
944
|
-
documentation: "Returns the how much durability an item has remaining",
|
|
945
1007
|
id: "remaining_durability",
|
|
1008
|
+
documentation: "Returns the how much durability an item has remaining",
|
|
946
1009
|
},
|
|
947
1010
|
{
|
|
948
|
-
documentation: "Returns the roll counter of the entity",
|
|
949
1011
|
id: "roll_counter",
|
|
1012
|
+
documentation: "Returns the roll counter of the entity",
|
|
950
1013
|
},
|
|
951
1014
|
{
|
|
952
|
-
documentation: "Returns the rotation required to aim at the camera. Requires one argument representing the rotation axis you would like (0 for x, 1 for y)",
|
|
953
1015
|
id: "rotation_to_camera",
|
|
1016
|
+
documentation: "Returns the rotation required to aim at the camera. Requires one argument representing the rotation axis you would like (0 for x, 1 for y)",
|
|
1017
|
+
parameters: [{ id: "axis", documentation: "0 for x, 1 for y" }],
|
|
954
1018
|
},
|
|
955
1019
|
{
|
|
956
|
-
documentation: "returns the shaking angle of the entity if it makes sense, else it returns 0.0",
|
|
957
1020
|
id: "shake_angle",
|
|
1021
|
+
documentation: "returns the shaking angle of the entity if it makes sense, else it returns 0.0",
|
|
958
1022
|
},
|
|
959
1023
|
{
|
|
960
|
-
documentation: "Returns the shake time of the entity.",
|
|
961
1024
|
id: "shake_time",
|
|
1025
|
+
documentation: "Returns the shake time of the entity.",
|
|
962
1026
|
},
|
|
963
1027
|
{
|
|
964
|
-
documentation: "Returns the how much the offhand shield should translate down when blocking and being hit.",
|
|
965
1028
|
id: "shield_blocking_bob",
|
|
1029
|
+
documentation: "Returns the how much the offhand shield should translate down when blocking and being hit.",
|
|
966
1030
|
},
|
|
967
1031
|
{
|
|
968
|
-
|
|
969
|
-
|
|
1032
|
+
id: "show_bottom",
|
|
1033
|
+
documentation: "Returns 1.0 if we render the entity's bottom, else it returns 0.0",
|
|
970
1034
|
},
|
|
971
1035
|
{
|
|
972
|
-
|
|
973
|
-
|
|
1036
|
+
id: "sit_amount",
|
|
1037
|
+
documentation: "Returns the current sit amount of the entity",
|
|
974
1038
|
},
|
|
1039
|
+
{ id: "skin_id", documentation: "Returns the entity's skin ID" },
|
|
975
1040
|
{
|
|
976
|
-
documentation: "returns the rotation of the bed the player is sleeping on.",
|
|
977
1041
|
id: "sleep_rotation",
|
|
1042
|
+
documentation: "returns the rotation of the bed the player is sleeping on.",
|
|
978
1043
|
},
|
|
979
1044
|
{
|
|
980
|
-
documentation: "Returns the sneeze counter of the entity",
|
|
981
1045
|
id: "sneeze_counter",
|
|
1046
|
+
documentation: "Returns the sneeze counter of the entity",
|
|
982
1047
|
},
|
|
983
1048
|
{
|
|
984
|
-
documentation: "Returns 1.0 if we render the entity's bottom, else it returns 0.0",
|
|
985
|
-
id: "show_bottom",
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
documentation: "Returns the entity spell colour if it makes sense, else it returns 0.0",
|
|
989
1049
|
id: "spellcolor",
|
|
1050
|
+
documentation: "Returns the entity spell colour if it makes sense, else it returns 0.0",
|
|
990
1051
|
},
|
|
991
1052
|
{
|
|
992
|
-
documentation: "Returns the scale of how standing up the entity is",
|
|
993
1053
|
id: "standing_scale",
|
|
1054
|
+
documentation: "Returns the scale of how standing up the entity is",
|
|
994
1055
|
},
|
|
995
1056
|
{
|
|
996
|
-
documentation: "returns the structural integrity for the actor, otherwise returns 0",
|
|
997
1057
|
id: "structural_integrity",
|
|
1058
|
+
documentation: "returns the structural integrity for the actor, otherwise returns 0",
|
|
998
1059
|
},
|
|
1060
|
+
{ id: "swell_amount", documentation: "Returns how swollen the entity is" },
|
|
999
1061
|
{
|
|
1000
|
-
documentation: "Returns how swollen the entity is",
|
|
1001
|
-
id: "swell_amount",
|
|
1002
|
-
},
|
|
1003
|
-
{
|
|
1004
|
-
documentation: "Returns the swelling direction of the entity if it makes sense, else it returns 0.0",
|
|
1005
1062
|
id: "swelling_dir",
|
|
1063
|
+
documentation: "Returns the swelling direction of the entity if it makes sense, else it returns 0.0",
|
|
1006
1064
|
},
|
|
1007
1065
|
{
|
|
1008
|
-
documentation: "Returns the amount the current entity is swimming",
|
|
1009
1066
|
id: "swim_amount",
|
|
1067
|
+
documentation: "Returns the amount the current entity is swimming",
|
|
1010
1068
|
},
|
|
1011
1069
|
{
|
|
1012
|
-
documentation: "returns the angle of the tail of the entity if it makes sense, else it returns 0.0",
|
|
1013
1070
|
id: "tail_angle",
|
|
1071
|
+
documentation: "returns the angle of the tail of the entity if it makes sense, else it returns 0.0",
|
|
1014
1072
|
},
|
|
1015
1073
|
{
|
|
1016
|
-
documentation: "Returns the x rotation required to aim at the entity's current target if it has one, else it returns 0.0",
|
|
1017
1074
|
id: "target_x_rotation",
|
|
1075
|
+
documentation: "Returns the x rotation required to aim at the entity's current target if it has one, else it returns 0.0",
|
|
1018
1076
|
},
|
|
1019
1077
|
{
|
|
1020
|
-
documentation: "Returns the y rotation required to aim at the entity's current target if it has one, else it returns 0.0",
|
|
1021
1078
|
id: "target_y_rotation",
|
|
1079
|
+
documentation: "Returns the y rotation required to aim at the entity's current target if it has one, else it returns 0.0",
|
|
1022
1080
|
},
|
|
1023
1081
|
{
|
|
1024
|
-
documentation: "Returns the icon index of the experience orb",
|
|
1025
1082
|
id: "texture_frame_index",
|
|
1083
|
+
documentation: "Returns the icon index of the experience orb",
|
|
1026
1084
|
},
|
|
1027
1085
|
{
|
|
1028
|
-
documentation: "Returns the time of day (midnight=0.0, sunrise=0.25, noon=0.5, sunset=0.75) of the dimension the entity is in.",
|
|
1029
1086
|
id: "time_of_day",
|
|
1087
|
+
documentation: "Returns the time of day (midnight=0.0, sunrise=0.25, noon=0.5, sunset=0.75) of the dimension the entity is in.",
|
|
1030
1088
|
},
|
|
1031
1089
|
{
|
|
1032
|
-
documentation: "Returns the current time stamp of the level",
|
|
1033
1090
|
id: "time_stamp",
|
|
1091
|
+
documentation: "Returns the current time stamp of the level",
|
|
1034
1092
|
},
|
|
1035
1093
|
{
|
|
1036
|
-
documentation: "Returns the total number of active emitters in the world",
|
|
1037
1094
|
id: "total_emitter_count",
|
|
1095
|
+
documentation: "Returns the total number of active emitters in the world",
|
|
1038
1096
|
},
|
|
1039
1097
|
{
|
|
1040
|
-
documentation: "Returns the total number of active particles in the world",
|
|
1041
1098
|
id: "total_particle_count",
|
|
1099
|
+
documentation: "Returns the total number of active particles in the world",
|
|
1042
1100
|
},
|
|
1043
1101
|
{
|
|
1044
|
-
documentation: "Returns the trade tier of the entity if it makes sense, else it returns 0.0",
|
|
1045
1102
|
id: "trade_tier",
|
|
1103
|
+
documentation: "Returns the trade tier of the entity if it makes sense, else it returns 0.0",
|
|
1046
1104
|
},
|
|
1047
1105
|
{
|
|
1048
|
-
documentation: "Returns how unhappy the entity is",
|
|
1049
1106
|
id: "unhappy_counter",
|
|
1107
|
+
documentation: "Returns how unhappy the entity is",
|
|
1050
1108
|
},
|
|
1109
|
+
{ id: "variant", documentation: "Returns the entity's variant index" },
|
|
1051
1110
|
{
|
|
1052
|
-
documentation: "Returns the entity's variant index",
|
|
1053
|
-
id: "variant",
|
|
1054
|
-
},
|
|
1055
|
-
{
|
|
1056
|
-
documentation: "Returns the speed of the entity up or down in metres/second, where positive is up",
|
|
1057
1111
|
id: "vertical_speed",
|
|
1112
|
+
documentation: "Returns the speed of the entity up or down in metres/second, where positive is up",
|
|
1058
1113
|
},
|
|
1059
1114
|
{
|
|
1060
|
-
documentation: "Returns the walk distance of the entity.",
|
|
1061
1115
|
id: "walk_distance",
|
|
1116
|
+
documentation: "Returns the walk distance of the entity.",
|
|
1062
1117
|
},
|
|
1063
1118
|
{
|
|
1064
|
-
documentation: "Returns the wing flap position of the entity, or 0.0 if this doesn't make sense",
|
|
1065
1119
|
id: "wing_flap_position",
|
|
1120
|
+
documentation: "Returns the wing flap position of the entity, or 0.0 if this doesn't make sense",
|
|
1066
1121
|
},
|
|
1067
1122
|
{
|
|
1068
|
-
documentation: "Returns the wing flap speed of the entity, or 0.0 if this doesn't make sense",
|
|
1069
1123
|
id: "wing_flap_speed",
|
|
1124
|
+
documentation: "Returns the wing flap speed of the entity, or 0.0 if this doesn't make sense",
|
|
1070
1125
|
},
|
|
1071
|
-
{
|
|
1072
|
-
documentation: "Returns the entity's yaw speed",
|
|
1073
|
-
id: "yaw_speed",
|
|
1074
|
-
},
|
|
1126
|
+
{ id: "yaw_speed", documentation: "Returns the entity's yaw speed" },
|
|
1075
1127
|
];
|
|
1076
1128
|
function getQuery(id) {
|
|
1077
1129
|
for (let I = 0; I < General.Math.length; I++) {
|