bc-minecraft-molang 1.2.5 → 1.2.9
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,949 @@ 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",
|
|
207
213
|
},
|
|
208
214
|
{
|
|
209
|
-
documentation: "Takes the armor slot index as a parameter, and returns the armor material type in the requested armor slot",
|
|
210
215
|
id: "armor_material_slot",
|
|
216
|
+
documentation: "Takes the armor slot index as a parameter, and returns the armor material type in the requested armor slot",
|
|
211
217
|
},
|
|
212
218
|
{
|
|
213
|
-
documentation: "Takes the armor slot index as a parameter, and returns the texture type of the requested slot",
|
|
214
219
|
id: "armor_texture_slot",
|
|
220
|
+
documentation: "Takes the armor slot index as a parameter, and returns the texture type of the requested slot",
|
|
215
221
|
},
|
|
216
222
|
{
|
|
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
223
|
id: "average_frame_time",
|
|
224
|
+
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
225
|
},
|
|
220
226
|
{
|
|
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
227
|
id: "block_face",
|
|
228
|
+
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
229
|
},
|
|
224
230
|
{
|
|
225
|
-
documentation: "Returns the value of the associated Blocks Block State",
|
|
226
231
|
id: "block_property",
|
|
232
|
+
documentation: "Returns the value of the associated Blocks Block State",
|
|
227
233
|
},
|
|
228
234
|
{
|
|
229
|
-
documentation: "Returns 1.0 if the entity is blocking, else it returns 0.0",
|
|
230
235
|
id: "blocking",
|
|
236
|
+
documentation: "Returns 1.0 if the entity is blocking, else it returns 0.0",
|
|
231
237
|
},
|
|
232
238
|
{
|
|
233
|
-
documentation: "Returns the body pitch rotation if called on an actor, else it returns 0.0",
|
|
234
239
|
id: "body_x_rotation",
|
|
240
|
+
documentation: "Returns the body pitch rotation if called on an actor, else it returns 0.0",
|
|
235
241
|
},
|
|
236
242
|
{
|
|
237
|
-
documentation: "Returns the body yaw rotation if called on an actor, else it returns 0.0",
|
|
238
243
|
id: "body_y_rotation",
|
|
244
|
+
documentation: "Returns the body yaw rotation if called on an actor, else it returns 0.0",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
id: "bone_aabb",
|
|
248
|
+
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.",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: "bone_origin",
|
|
252
|
+
documentation: "Returns the initial (from the .geo) pivot of a bone as a struct with members '.x', '.y', and '.z'.",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
id: "bone_rotation",
|
|
256
|
+
documentation: "Returns the initial (from the .geo) rotation of a bone as a struct with members '.x', '.y', and '.z' in degrees.",
|
|
239
257
|
},
|
|
240
258
|
{
|
|
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
259
|
id: "camera_distance_range_lerp",
|
|
260
|
+
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",
|
|
243
261
|
},
|
|
244
262
|
{
|
|
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
263
|
id: "camera_rotation",
|
|
264
|
+
documentation: "Returns the rotation of the camera. Requires one argument representing the rotation axis you would like (`0 for x`, `1 for y`)",
|
|
265
|
+
parameters: [{ id: "axis", documentation: "0 for x, 1 for y" }],
|
|
247
266
|
},
|
|
248
267
|
{
|
|
249
|
-
documentation: "Returns 1.0 if the entity can climb, else it returns 0.0",
|
|
250
268
|
id: "can_climb",
|
|
269
|
+
documentation: "Returns 1.0 if the entity can climb, else it returns 0.0",
|
|
251
270
|
},
|
|
252
271
|
{
|
|
253
|
-
documentation: "Returns 1.0 if the entity can damage nearby mobs, else it returns 0.0",
|
|
254
272
|
id: "can_damage_nearby_mobs",
|
|
273
|
+
documentation: "Returns 1.0 if the entity can damage nearby mobs, else it returns 0.0",
|
|
255
274
|
},
|
|
256
275
|
{
|
|
257
|
-
documentation: "Returns 1.0 if the entity can fly, else it returns 0.0",
|
|
258
276
|
id: "can_fly",
|
|
277
|
+
documentation: "Returns 1.0 if the entity can fly, else it returns 0.0",
|
|
259
278
|
},
|
|
260
279
|
{
|
|
261
|
-
documentation: "Returns 1.0 if the entity can power jump, else it returns 0.0",
|
|
262
280
|
id: "can_power_jump",
|
|
281
|
+
documentation: "Returns 1.0 if the entity can power jump, else it returns 0.0",
|
|
263
282
|
},
|
|
264
283
|
{
|
|
265
|
-
documentation: "Returns 1.0 if the entity can swim, else it returns 0.0",
|
|
266
284
|
id: "can_swim",
|
|
285
|
+
documentation: "Returns 1.0 if the entity can swim, else it returns 0.0",
|
|
267
286
|
},
|
|
268
287
|
{
|
|
269
|
-
documentation: "Returns 1.0 if the entity can walk, else it returns 0.0",
|
|
270
288
|
id: "can_walk",
|
|
289
|
+
documentation: "Returns 1.0 if the entity can walk, else it returns 0.0",
|
|
271
290
|
},
|
|
272
291
|
{
|
|
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
292
|
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",
|
|
293
|
+
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
294
|
},
|
|
296
295
|
{
|
|
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
296
|
id: "cardinal_facing_2d",
|
|
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).",
|
|
299
298
|
},
|
|
300
299
|
{
|
|
300
|
+
id: "cardinal_facing",
|
|
301
301
|
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).",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
302
304
|
id: "cardinal_player_facing",
|
|
305
|
+
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
306
|
},
|
|
304
307
|
{
|
|
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
308
|
id: "combine_entities",
|
|
309
|
+
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
310
|
},
|
|
308
311
|
{
|
|
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
312
|
id: "count",
|
|
313
|
+
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
314
|
},
|
|
312
315
|
{
|
|
313
|
-
documentation: "Returns the squish value for the current entity, or 0.0 if this doesn't make sense",
|
|
314
316
|
id: "current_squish_value",
|
|
317
|
+
documentation: "Returns the squish value for the current entity, or 0.0 if this doesn't make sense",
|
|
315
318
|
},
|
|
319
|
+
{ id: "day", documentation: "Returns the day of the current level." },
|
|
316
320
|
{
|
|
317
|
-
|
|
318
|
-
|
|
321
|
+
id: "death_ticks",
|
|
322
|
+
documentation: "Returns the elapsed ticks since the mob started dying.",
|
|
319
323
|
},
|
|
320
324
|
{
|
|
321
|
-
documentation: "debug log a value to the output debug window for builds that have one",
|
|
322
325
|
id: "debug_output",
|
|
326
|
+
documentation: "debug log a value to the output debug window for builds that have one",
|
|
323
327
|
},
|
|
324
328
|
{
|
|
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
329
|
id: "delta_time",
|
|
330
|
+
documentation: "Returns the time in seconds since the previous frame",
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
|
-
documentation: "Returns the distance of the root of this actor or particle emitter from the camera",
|
|
334
333
|
id: "distance_from_camera",
|
|
334
|
+
documentation: "Returns the distance of the root of this actor or particle emitter from the camera",
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
|
-
documentation: "Returns the total number of active emitters of the callee's particle effect type",
|
|
338
337
|
id: "effect_emitter_count",
|
|
338
|
+
documentation: "Returns the total number of active emitters of the callee's particle effect type",
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
|
-
documentation: "Returns the total number of active particles of the callee's particle effect type",
|
|
342
341
|
id: "effect_particle_count",
|
|
342
|
+
documentation: "Returns the total number of active particles of the callee's particle effect type",
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
|
-
documentation: "returns the equipment count for an actor",
|
|
346
345
|
id: "equipment_count",
|
|
346
|
+
documentation: "returns the equipment count for an actor",
|
|
347
347
|
},
|
|
348
348
|
{
|
|
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
349
|
id: "equipped_item_all_tags",
|
|
350
|
+
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
351
|
},
|
|
352
352
|
{
|
|
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
353
|
id: "equipped_item_any_tag",
|
|
354
|
+
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
355
|
},
|
|
356
356
|
{
|
|
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
357
|
id: "equipped_item_is_attachable",
|
|
358
|
+
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
359
|
},
|
|
360
360
|
{
|
|
361
|
-
documentation: "returns the X eye rotation of the entity if it makes sense, else it returns 0.0",
|
|
362
361
|
id: "eye_target_x_rotation",
|
|
362
|
+
documentation: "returns the X eye rotation of the entity if it makes sense, else it returns 0.0",
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
|
-
documentation: "returns the Y eye rotation of the entity if it makes sense, else it returns 0.0",
|
|
366
365
|
id: "eye_target_y_rotation",
|
|
366
|
+
documentation: "returns the Y eye rotation of the entity if it makes sense, else it returns 0.0",
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
id: "facing_target_to_range_attack",
|
|
370
|
+
documentation: "Returns 1.0 if the entity is attacking from range (i.e. minecraft:behavior.ranged_attack), else it returns 0.0",
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
|
-
|
|
374
|
-
|
|
373
|
+
id: "frame_alpha",
|
|
374
|
+
documentation: "Returns the ratio (from 0 to 1) of how much between AI ticks this frame is being rendered",
|
|
375
375
|
},
|
|
376
376
|
{
|
|
377
|
-
documentation: "Returns the integer id of an actor by its string name",
|
|
378
377
|
id: "get_actor_info_id",
|
|
378
|
+
documentation: "Returns the integer id of an actor by its string name",
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
|
-
documentation: "Returns the current texture of the item",
|
|
382
381
|
id: "get_animation_frame",
|
|
382
|
+
documentation: "Returns the current texture of the item",
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
|
-
|
|
386
|
-
|
|
385
|
+
id: "get_default_bone_pivot",
|
|
386
|
+
documentation: "Gets specified axis of the specified bone orientation pivot",
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
|
-
documentation: "Gets specified axis of the specified locator offset",
|
|
390
389
|
id: "get_locator_offset",
|
|
390
|
+
documentation: "Gets specified axis of the specified locator offset",
|
|
391
391
|
},
|
|
392
392
|
{
|
|
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
393
|
id: "get_root_locator_offset",
|
|
394
|
+
documentation: "Gets specified axis of the specified locator offset of the root model",
|
|
399
395
|
},
|
|
400
396
|
{
|
|
401
|
-
documentation: "Returns the ground speed of the entity in metres/second",
|
|
402
|
-
id: "ground_speed",
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
documentation: "Returns 1 if the entity has any of the specified families, else 0.",
|
|
406
397
|
id: "has_any_family",
|
|
398
|
+
documentation: "Returns 1 if the entity has any of the specified families, else 0.",
|
|
407
399
|
},
|
|
408
400
|
{
|
|
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
401
|
id: "has_armor_slot",
|
|
402
|
+
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
403
|
},
|
|
412
404
|
{
|
|
413
|
-
documentation: "Returns whether or not a Block Placement Target has a specific biome tag",
|
|
414
405
|
id: "has_biome_tag",
|
|
406
|
+
documentation: "Returns whether or not a Block Placement Target has a specific biome tag",
|
|
415
407
|
},
|
|
416
408
|
{
|
|
417
|
-
documentation: "Returns 1.0 if the associated block has the given block property or 0.0 if not",
|
|
418
409
|
id: "has_block_property",
|
|
410
|
+
documentation: "Returns 1.0 if the associated block has the given block property or 0.0 if not",
|
|
419
411
|
},
|
|
420
412
|
{
|
|
421
|
-
documentation: "Returns 1.0 if the player has a cape, else it returns 0.0",
|
|
422
413
|
id: "has_cape",
|
|
414
|
+
documentation: "Returns 1.0 if the player has a cape, else it returns 0.0",
|
|
423
415
|
},
|
|
424
416
|
{
|
|
425
|
-
documentation: "Returns 1.0 if the entity has collisions enabled, else it returns 0.0",
|
|
426
417
|
id: "has_collision",
|
|
418
|
+
documentation: "Returns 1.0 if the entity has collisions enabled, else it returns 0.0",
|
|
427
419
|
},
|
|
428
420
|
{
|
|
429
|
-
documentation: "Returns 1.0 if the entity is affected by gravity, else it returns 0.0",
|
|
430
421
|
id: "has_gravity",
|
|
422
|
+
documentation: "Returns 1.0 if the entity is affected by gravity, else it returns 0.0",
|
|
431
423
|
},
|
|
432
424
|
{
|
|
433
|
-
documentation: "Returns true if the entity has an owner ID else it returns false",
|
|
434
425
|
id: "has_owner",
|
|
426
|
+
documentation: "Returns true if the entity has an owner ID else it returns false",
|
|
435
427
|
},
|
|
436
428
|
{
|
|
437
|
-
documentation: "Returns 1.0 if the entity has a rider, else it returns 0.0",
|
|
438
429
|
id: "has_rider",
|
|
430
|
+
documentation: "Returns 1.0 if the entity has a rider, else it returns 0.0",
|
|
439
431
|
},
|
|
440
432
|
{
|
|
441
|
-
documentation: "Returns 1.0 if the entity has a target, else it returns 0.0",
|
|
442
433
|
id: "has_target",
|
|
434
|
+
documentation: "Returns 1.0 if the entity has a target, else it returns 0.0",
|
|
443
435
|
},
|
|
444
436
|
{
|
|
445
|
-
documentation: "returns the roll angle of the head of the entity if it makes sense, else it returns 0.0",
|
|
446
437
|
id: "head_roll_angle",
|
|
438
|
+
documentation: "returns the roll angle of the head of the entity if it makes sense, else it returns 0.0",
|
|
447
439
|
},
|
|
448
440
|
{
|
|
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
441
|
id: "head_x_rotation",
|
|
442
|
+
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
443
|
},
|
|
452
444
|
{
|
|
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
445
|
id: "head_y_rotation",
|
|
446
|
+
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
447
|
},
|
|
456
448
|
{
|
|
457
|
-
documentation: "Returns the health of the entity, or 0.0 if it doesn't make sense to call on this entity.",
|
|
458
449
|
id: "health",
|
|
450
|
+
documentation: "Returns the health of the entity, or 0.0 if it doesn't make sense to call on this entity.",
|
|
459
451
|
},
|
|
452
|
+
{ id: "heightmap", documentation: "Queries Height Map" },
|
|
460
453
|
{
|
|
461
|
-
documentation: "Queries Height Map",
|
|
462
|
-
id: "heightmap",
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
documentation: "returns the hurt direction for the actor, otherwise returns 0",
|
|
466
454
|
id: "hurt_direction",
|
|
455
|
+
documentation: "returns the hurt direction for the actor, otherwise returns 0",
|
|
467
456
|
},
|
|
468
457
|
{
|
|
469
|
-
documentation: "returns the hurt time for the actor, otherwise returns 0",
|
|
470
458
|
id: "hurt_time",
|
|
459
|
+
documentation: "returns the hurt time for the actor, otherwise returns 0",
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
id: "in_range",
|
|
463
|
+
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.",
|
|
464
|
+
parameters: [
|
|
465
|
+
{ id: "evualate", documentation: "The value to evualate" },
|
|
466
|
+
{
|
|
467
|
+
id: "minimum",
|
|
468
|
+
documentation: "The first value to compare, inclusive",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
id: "maximum",
|
|
472
|
+
documentation: "The second value to compare, inclusive",
|
|
473
|
+
},
|
|
474
|
+
],
|
|
471
475
|
},
|
|
472
476
|
{
|
|
473
|
-
documentation: "Returns the number of ticks of invulnerability the entity has left if it makes sense, else it returns 0.0",
|
|
474
477
|
id: "invulnerable_ticks",
|
|
478
|
+
documentation: "Returns the number of ticks of invulnerability the entity has left if it makes sense, else it returns 0.0",
|
|
475
479
|
},
|
|
476
480
|
{
|
|
477
|
-
documentation: "Returns 1.0 if the entity is admiring, else it returns 0.0",
|
|
478
481
|
id: "is_admiring",
|
|
482
|
+
documentation: "Returns 1.0 if the entity is admiring, else it returns 0.0",
|
|
479
483
|
},
|
|
480
484
|
{
|
|
481
|
-
documentation: "returns 1.0 if the entity is alive, and 0.0 if it's dead",
|
|
482
485
|
id: "is_alive",
|
|
486
|
+
documentation: "returns 1.0 if the entity is alive, and 0.0 if it's dead",
|
|
483
487
|
},
|
|
484
488
|
{
|
|
485
|
-
documentation: "Returns 1.0 if the entity is angry, else it returns 0.0",
|
|
486
489
|
id: "is_angry",
|
|
490
|
+
documentation: "Returns 1.0 if the entity is angry, else it returns 0.0",
|
|
487
491
|
},
|
|
488
492
|
{
|
|
489
|
-
documentation: "Returns 1.0 if the actor is attached to an entity, else it will return 0.0",
|
|
490
493
|
id: "is_attached_to_entity",
|
|
494
|
+
documentation: "Returns 1.0 if the actor is attached to an entity, else it will return 0.0",
|
|
491
495
|
},
|
|
492
496
|
{
|
|
493
|
-
documentation: "Returns 1.0 if the entity is fleeing from a block, else it returns 0.0",
|
|
494
497
|
id: "is_avoiding_block",
|
|
498
|
+
documentation: "Returns 1.0 if the entity is fleeing from a block, else it returns 0.0",
|
|
495
499
|
},
|
|
496
500
|
{
|
|
497
|
-
documentation: "Returns 1.0 if the entity is fleeing from mobs, else it returns 0.0",
|
|
498
501
|
id: "is_avoiding_mobs",
|
|
502
|
+
documentation: "Returns 1.0 if the entity is fleeing from mobs, else it returns 0.0",
|
|
499
503
|
},
|
|
500
504
|
{
|
|
501
|
-
documentation: "Returns 1.0 if the entity is a baby, else it returns 0.0",
|
|
502
505
|
id: "is_baby",
|
|
506
|
+
documentation: "Returns 1.0 if the entity is a baby, else it returns 0.0",
|
|
503
507
|
},
|
|
504
508
|
{
|
|
505
|
-
documentation: "Returns 1.0 if the entity is breathing, else it returns 0.0",
|
|
506
509
|
id: "is_breathing",
|
|
510
|
+
documentation: "Returns 1.0 if the entity is breathing, else it returns 0.0",
|
|
507
511
|
},
|
|
508
512
|
{
|
|
509
|
-
documentation: "Returns 1.0 if the entity has been bribed, else it returns 0.0",
|
|
510
513
|
id: "is_bribed",
|
|
514
|
+
documentation: "Returns 1.0 if the entity has been bribed, else it returns 0.0",
|
|
511
515
|
},
|
|
512
516
|
{
|
|
513
|
-
documentation: "Returns 1.0 if the entity is carrying a block, else it returns 0.0",
|
|
514
517
|
id: "is_carrying_block",
|
|
518
|
+
documentation: "Returns 1.0 if the entity is carrying a block, else it returns 0.0",
|
|
515
519
|
},
|
|
516
520
|
{
|
|
517
|
-
documentation: "Returns 1.0 if the entity is casting, else it returns 0.0",
|
|
518
521
|
id: "is_casting",
|
|
522
|
+
documentation: "Returns 1.0 if the entity is casting, else it returns 0.0",
|
|
519
523
|
},
|
|
520
524
|
{
|
|
521
|
-
|
|
522
|
-
|
|
525
|
+
id: "is_celebrating_special",
|
|
526
|
+
documentation: "Returns 1.0 if the entity is doing a special celebration, else it returns 0.0",
|
|
523
527
|
},
|
|
524
528
|
{
|
|
525
|
-
|
|
526
|
-
|
|
529
|
+
id: "is_celebrating",
|
|
530
|
+
documentation: "Returns 1.0 if the entity is celebrating, else it returns 0.0",
|
|
527
531
|
},
|
|
528
532
|
{
|
|
529
|
-
documentation: "Returns 1.0 if the entity is charged, else it returns 0.0",
|
|
530
533
|
id: "is_charged",
|
|
534
|
+
documentation: "Returns 1.0 if the entity is charged, else it returns 0.0",
|
|
531
535
|
},
|
|
532
536
|
{
|
|
533
|
-
documentation: "Returns 1.0 if the entity is charging, else it returns 0.0",
|
|
534
537
|
id: "is_charging",
|
|
538
|
+
documentation: "Returns 1.0 if the entity is charging, else it returns 0.0",
|
|
535
539
|
},
|
|
536
540
|
{
|
|
537
|
-
documentation: "Returns 1.0 if the entity has chests attached to it, else it returns 0.0",
|
|
538
541
|
id: "is_chested",
|
|
542
|
+
documentation: "Returns 1.0 if the entity has chests attached to it, else it returns 0.0",
|
|
539
543
|
},
|
|
540
544
|
{
|
|
541
|
-
documentation: "Returns 1.0 if the entity is critical, else it returns 0.0",
|
|
542
545
|
id: "is_critical",
|
|
546
|
+
documentation: "Returns 1.0 if the entity is critical, else it returns 0.0",
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
id: "is_croaking",
|
|
550
|
+
documentation: "Returns 1.0 if the entity is croaking, else it returns 0.0",
|
|
543
551
|
},
|
|
544
552
|
{
|
|
545
|
-
documentation: "Returns 1.0 if the entity is dancing, else it returns 0.0",
|
|
546
553
|
id: "is_dancing",
|
|
554
|
+
documentation: "Returns 1.0 if the entity is dancing, else it returns 0.0",
|
|
547
555
|
},
|
|
548
556
|
{
|
|
549
|
-
documentation: "returns 1.0 if the entity is attacking using the delayed attack, else it returns 0.0",
|
|
550
557
|
id: "is_delayed_attacking",
|
|
558
|
+
documentation: "returns 1.0 if the entity is attacking using the delayed attack, else it returns 0.0",
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
id: "is_eating_mob",
|
|
562
|
+
documentation: "Returns 1.0 if the entity is eating a mob, else it returns 0.0",
|
|
551
563
|
},
|
|
552
564
|
{
|
|
553
|
-
documentation: "Returns 1.0 if the entity is eating, else it returns 0.0",
|
|
554
565
|
id: "is_eating",
|
|
566
|
+
documentation: "Returns 1.0 if the entity is eating, else it returns 0.0",
|
|
555
567
|
},
|
|
556
568
|
{
|
|
557
|
-
documentation: "Returns 1.0 if the entity is an elder version of it, else it returns 0.0",
|
|
558
569
|
id: "is_elder",
|
|
570
|
+
documentation: "Returns 1.0 if the entity is an elder version of it, else it returns 0.0",
|
|
559
571
|
},
|
|
560
572
|
{
|
|
561
|
-
documentation: "Returns 1.0 if the entity is emoting, else it returns 0.0",
|
|
562
573
|
id: "is_emoting",
|
|
574
|
+
documentation: "Returns 1.0 if the entity is emoting, else it returns 0.0",
|
|
563
575
|
},
|
|
564
576
|
{
|
|
565
|
-
documentation: "Returns 1.0 if the entity is enchanted, else it returns 0.0",
|
|
566
577
|
id: "is_enchanted",
|
|
578
|
+
documentation: "Returns 1.0 if the entity is enchanted, else it returns 0.0",
|
|
567
579
|
},
|
|
568
580
|
{
|
|
569
|
-
documentation: "Returns 1.0 if the entity is immune to fire, else it returns 0.0",
|
|
570
581
|
id: "is_fire_immune",
|
|
582
|
+
documentation: "Returns 1.0 if the entity is immune to fire, else it returns 0.0",
|
|
571
583
|
},
|
|
572
584
|
{
|
|
573
|
-
documentation: "Returns 1.0 if the entity is being rendered in first person mode, else it returns 0.0",
|
|
574
585
|
id: "is_first_person",
|
|
586
|
+
documentation: "Returns 1.0 if the entity is being rendered in first person mode, else it returns 0.0",
|
|
575
587
|
},
|
|
576
588
|
{
|
|
577
|
-
documentation: "returns 1.0 if an entity is a ghost, else it returns 0.0",
|
|
578
589
|
id: "is_ghost",
|
|
590
|
+
documentation: "returns 1.0 if an entity is a ghost, else it returns 0.0",
|
|
579
591
|
},
|
|
580
592
|
{
|
|
581
|
-
documentation: "Returns 1.0 if the entity is gliding, else it returns 0.0",
|
|
582
593
|
id: "is_gliding",
|
|
594
|
+
documentation: "Returns 1.0 if the entity is gliding, else it returns 0.0",
|
|
583
595
|
},
|
|
584
596
|
{
|
|
585
|
-
documentation: "Returns 1.0 if the entity is grazing, or 0.0 if not",
|
|
586
597
|
id: "is_grazing",
|
|
598
|
+
documentation: "Returns 1.0 if the entity is grazing, or 0.0 if not",
|
|
587
599
|
},
|
|
588
600
|
{
|
|
589
|
-
documentation: "Returns 1.0 if the entity is idling, else it returns 0.0",
|
|
590
601
|
id: "is_idling",
|
|
602
|
+
documentation: "Returns 1.0 if the entity is idling, else it returns 0.0",
|
|
591
603
|
},
|
|
592
604
|
{
|
|
593
|
-
documentation: "Returns 1.0 if the entity is ignited, else it returns 0.0",
|
|
594
605
|
id: "is_ignited",
|
|
606
|
+
documentation: "Returns 1.0 if the entity is ignited, else it returns 0.0",
|
|
595
607
|
},
|
|
596
608
|
{
|
|
597
|
-
documentation: "Returns 1.0 if the entity is an illager captain, else it returns 0.0",
|
|
598
609
|
id: "is_illager_captain",
|
|
610
|
+
documentation: "Returns 1.0 if the entity is an illager captain, else it returns 0.0",
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
id: "is_in_contact_with_water",
|
|
614
|
+
documentation: "Returns 1.0 if the entity is in contact with any water (water, rain, splash water bottle), else it returns 0.0",
|
|
599
615
|
},
|
|
600
616
|
{
|
|
601
|
-
documentation: "Returns 1.0 if the entity is in love, else it returns 0.0",
|
|
602
617
|
id: "is_in_love",
|
|
618
|
+
documentation: "Returns 1.0 if the entity is in love, else it returns 0.0",
|
|
603
619
|
},
|
|
604
620
|
{
|
|
605
|
-
documentation: "Returns 1.0 if the entity is rendered as part of the UI, else it returns 0.0",
|
|
606
621
|
id: "is_in_ui",
|
|
622
|
+
documentation: "Returns 1.0 if the entity is rendered as part of the UI, else it returns 0.0",
|
|
607
623
|
},
|
|
608
624
|
{
|
|
609
|
-
|
|
610
|
-
|
|
625
|
+
id: "is_in_water_or_rain",
|
|
626
|
+
documentation: "Returns 1.0 if the entity is in water or rain, else it returns 0.0",
|
|
611
627
|
},
|
|
612
628
|
{
|
|
613
|
-
|
|
614
|
-
|
|
629
|
+
id: "is_in_water",
|
|
630
|
+
documentation: "Returns 1.0 if the entity is in water, else it returns 0.0",
|
|
615
631
|
},
|
|
616
632
|
{
|
|
617
|
-
documentation: "Returns 1.0 if the entity is interested, else it returns 0.0",
|
|
618
633
|
id: "is_interested",
|
|
634
|
+
documentation: "Returns 1.0 if the entity is interested, else it returns 0.0",
|
|
619
635
|
},
|
|
620
636
|
{
|
|
621
|
-
documentation: "Returns 1.0 if the entity is invisible, else it returns 0.0",
|
|
622
637
|
id: "is_invisible",
|
|
638
|
+
documentation: "Returns 1.0 if the entity is invisible, else it returns 0.0",
|
|
623
639
|
},
|
|
624
640
|
{
|
|
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
641
|
id: "is_item_equipped",
|
|
627
|
-
|
|
642
|
+
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.",
|
|
643
|
+
parameters: [
|
|
644
|
+
{
|
|
645
|
+
id: "slot",
|
|
646
|
+
documentation: "0 or 'main_hand' for main hand, 1 or 'off_hand' for off hand",
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
id: "is_item_name_any",
|
|
652
|
+
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.",
|
|
653
|
+
parameters: [
|
|
654
|
+
{ id: "quipment slot name", documentation: "quipment slot name" },
|
|
655
|
+
{ id: "slot index", documentation: "" },
|
|
656
|
+
{ id: "item", documentation: "" },
|
|
657
|
+
],
|
|
628
658
|
},
|
|
629
659
|
{
|
|
630
|
-
documentation: "Returns 1.0 if the entity is in water or rain, else it returns 0.0",
|
|
631
660
|
id: "is_jumping",
|
|
661
|
+
documentation: "Returns 1.0 if the entity is in water or rain, else it returns 0.0",
|
|
632
662
|
},
|
|
633
663
|
{
|
|
634
|
-
documentation: "Returns 1.0 if the entity is laying down, else it returns 0.0",
|
|
635
664
|
id: "is_laying_down",
|
|
665
|
+
documentation: "Returns 1.0 if the entity is laying down, else it returns 0.0",
|
|
636
666
|
},
|
|
637
667
|
{
|
|
638
|
-
documentation: "Returns 1.0 if the entity is laying an egg, else it returns 0.0",
|
|
639
668
|
id: "is_laying_egg",
|
|
669
|
+
documentation: "Returns 1.0 if the entity is laying an egg, else it returns 0.0",
|
|
640
670
|
},
|
|
641
671
|
{
|
|
642
|
-
documentation: "Returns 1.0 if the entity is leashed to something, else it returns 0.0",
|
|
643
672
|
id: "is_leashed",
|
|
673
|
+
documentation: "Returns 1.0 if the entity is leashed to something, else it returns 0.0",
|
|
644
674
|
},
|
|
645
675
|
{
|
|
646
|
-
documentation: "Returns 1.0 if the entity is levitating, else it returns 0.0",
|
|
647
676
|
id: "is_levitating",
|
|
677
|
+
documentation: "Returns 1.0 if the entity is levitating, else it returns 0.0",
|
|
648
678
|
},
|
|
649
679
|
{
|
|
650
|
-
documentation: "Returns 1.0 if the entity is lingering, else it returns 0.0",
|
|
651
680
|
id: "is_lingering",
|
|
681
|
+
documentation: "Returns 1.0 if the entity is lingering, else it returns 0.0",
|
|
652
682
|
},
|
|
653
683
|
{
|
|
654
|
-
documentation: "Returns 1.0 if the entity is moving, else it returns 0.0",
|
|
655
684
|
id: "is_moving",
|
|
685
|
+
documentation: "Returns 1.0 if the entity is moving, else it returns 0.0",
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
id: "is_name_any",
|
|
689
|
+
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.",
|
|
690
|
+
parameters: [
|
|
691
|
+
{ id: "name 1", documentation: "possible entity name" },
|
|
692
|
+
{ id: "name 2", documentation: "possible entity name" },
|
|
693
|
+
],
|
|
656
694
|
},
|
|
657
695
|
{
|
|
658
|
-
documentation: "returns 1.0 if the entity is on fire, else it returns 0.0",
|
|
659
696
|
id: "is_on_fire",
|
|
697
|
+
documentation: "returns 1.0 if the entity is on fire, else it returns 0.0",
|
|
660
698
|
},
|
|
661
699
|
{
|
|
662
|
-
documentation: "Returns 1.0 if the entity is on the ground, else it returns 0.0",
|
|
663
700
|
id: "is_on_ground",
|
|
701
|
+
documentation: "Returns 1.0 if the entity is on the ground, else it returns 0.0",
|
|
664
702
|
},
|
|
665
703
|
{
|
|
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
704
|
id: "is_on_screen",
|
|
705
|
+
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
706
|
},
|
|
669
707
|
{
|
|
670
|
-
documentation: "Returns 1.0 if the entity is on fire, else it returns 0.0",
|
|
671
708
|
id: "is_onfire",
|
|
709
|
+
documentation: "Returns 1.0 if the entity is on fire, else it returns 0.0",
|
|
672
710
|
},
|
|
673
711
|
{
|
|
674
|
-
documentation: "Returns 1.0 if the entity is orphaned, else it returns 0.0",
|
|
675
712
|
id: "is_orphaned",
|
|
713
|
+
documentation: "Returns 1.0 if the entity is orphaned, else it returns 0.0",
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
id: "is_owner_identifier_any",
|
|
717
|
+
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.",
|
|
718
|
+
parameters: [
|
|
719
|
+
{ id: "name 1", documentation: "possible entity name" },
|
|
720
|
+
{ id: "name 2", documentation: "possible entity name" },
|
|
721
|
+
],
|
|
676
722
|
},
|
|
677
723
|
{
|
|
678
|
-
documentation: "Returns 1.0 if the player has a persona or permium skin, else it returns 0.0",
|
|
679
724
|
id: "is_persona_or_premium_skin",
|
|
725
|
+
documentation: "Returns 1.0 if the player has a persona or permium skin, else it returns 0.0",
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
id: "is_playing_dead",
|
|
729
|
+
documentation: "Returns 1.0 if the entity is playing dead, else it returns 0.0",
|
|
680
730
|
},
|
|
681
731
|
{
|
|
682
|
-
documentation: "Returns 1.0 if the entity is powered, else it returns 0.0",
|
|
683
732
|
id: "is_powered",
|
|
733
|
+
documentation: "Returns 1.0 if the entity is powered, else it returns 0.0",
|
|
684
734
|
},
|
|
685
735
|
{
|
|
686
|
-
documentation: "Returns 1.0 if the entity is pregnant, else it returns 0.0",
|
|
687
736
|
id: "is_pregnant",
|
|
737
|
+
documentation: "Returns 1.0 if the entity is pregnant, else it returns 0.0",
|
|
688
738
|
},
|
|
689
739
|
{
|
|
690
|
-
documentation: "Returns 1.0 if the entity is using a ram attack, else it returns 0.0",
|
|
691
740
|
id: "is_ram_attacking",
|
|
741
|
+
documentation: "Returns 1.0 if the entity is using a ram attack, else it returns 0.0",
|
|
692
742
|
},
|
|
693
743
|
{
|
|
694
|
-
documentation: "Returns 1.0 if the entity is resting, else it returns 0.0",
|
|
695
744
|
id: "is_resting",
|
|
745
|
+
documentation: "Returns 1.0 if the entity is resting, else it returns 0.0",
|
|
696
746
|
},
|
|
697
747
|
{
|
|
698
|
-
documentation: "Returns 1.0 if the entity is riding, else it returns 0.0",
|
|
699
748
|
id: "is_riding",
|
|
749
|
+
documentation: "Returns 1.0 if the entity is riding, else it returns 0.0",
|
|
700
750
|
},
|
|
701
751
|
{
|
|
702
|
-
documentation: "returns 1.0 if the entity is currently roaring, else it returns 0.0",
|
|
703
752
|
id: "is_roaring",
|
|
753
|
+
documentation: "returns 1.0 if the entity is currently roaring, else it returns 0.0",
|
|
704
754
|
},
|
|
705
755
|
{
|
|
706
|
-
documentation: "Returns 1.0 if the entity is rolling, else it returns 0.0",
|
|
707
756
|
id: "is_rolling",
|
|
757
|
+
documentation: "Returns 1.0 if the entity is rolling, else it returns 0.0",
|
|
708
758
|
},
|
|
709
759
|
{
|
|
710
|
-
documentation: "Returns 1.0 if the entity has a saddle, else it returns 0.0",
|
|
711
760
|
id: "is_saddled",
|
|
761
|
+
documentation: "Returns 1.0 if the entity has a saddle, else it returns 0.0",
|
|
712
762
|
},
|
|
713
763
|
{
|
|
714
|
-
documentation: "Returns 1.0 if the entity is scared, else it returns 0.0",
|
|
715
764
|
id: "is_scared",
|
|
765
|
+
documentation: "Returns 1.0 if the entity is scared, else it returns 0.0",
|
|
716
766
|
},
|
|
717
767
|
{
|
|
718
|
-
documentation: "returns true if the player has selected an item in the inventory, else it returns 0.0",
|
|
719
768
|
id: "is_selected_item",
|
|
769
|
+
documentation: "returns true if the player has selected an item in the inventory, else it returns 0.0",
|
|
720
770
|
},
|
|
721
771
|
{
|
|
722
|
-
|
|
723
|
-
|
|
772
|
+
id: "is_shaking_wetness",
|
|
773
|
+
documentation: "returns 1.0 if the entity is shaking water off, else it returns 0.0",
|
|
724
774
|
},
|
|
725
775
|
{
|
|
726
|
-
|
|
727
|
-
|
|
776
|
+
id: "is_shaking",
|
|
777
|
+
documentation: "Returns 1.0 if the entity is casting, else it returns 0.0",
|
|
728
778
|
},
|
|
729
779
|
{
|
|
730
|
-
documentation: "Returns 1.0 if the entity is able to be sheared and is sheared, else it returns 0.0",
|
|
731
780
|
id: "is_sheared",
|
|
781
|
+
documentation: "Returns 1.0 if the entity is able to be sheared and is sheared, else it returns 0.0",
|
|
732
782
|
},
|
|
733
783
|
{
|
|
734
|
-
documentation: "Returns 1.0f if the entity has an active powered shield if it makes sense, else it returns 0.0",
|
|
735
784
|
id: "is_shield_powered",
|
|
785
|
+
documentation: "Returns 1.0f if the entity has an active powered shield if it makes sense, else it returns 0.0",
|
|
736
786
|
},
|
|
737
787
|
{
|
|
738
|
-
documentation: "Returns 1.0 if the entity is silent, else it returns 0.0",
|
|
739
788
|
id: "is_silent",
|
|
789
|
+
documentation: "Returns 1.0 if the entity is silent, else it returns 0.0",
|
|
740
790
|
},
|
|
741
791
|
{
|
|
742
|
-
documentation: "Returns 1.0 if the entity is sitting, else it returns 0.0",
|
|
743
792
|
id: "is_sitting",
|
|
793
|
+
documentation: "Returns 1.0 if the entity is sitting, else it returns 0.0",
|
|
744
794
|
},
|
|
745
795
|
{
|
|
746
|
-
documentation: "Returns 1.0 if the entity is sleeping, else it returns 0.0",
|
|
747
796
|
id: "is_sleeping",
|
|
797
|
+
documentation: "Returns 1.0 if the entity is sleeping, else it returns 0.0",
|
|
748
798
|
},
|
|
749
799
|
{
|
|
750
|
-
documentation: "Returns 1.0 if the entity is sneaking, else it returns 0.0",
|
|
751
800
|
id: "is_sneaking",
|
|
801
|
+
documentation: "Returns 1.0 if the entity is sneaking, else it returns 0.0",
|
|
752
802
|
},
|
|
753
803
|
{
|
|
754
|
-
documentation: "Returns 1.0 if the entity is sneezing, else it returns 0.0",
|
|
755
804
|
id: "is_sneezing",
|
|
805
|
+
documentation: "Returns 1.0 if the entity is sneezing, else it returns 0.0",
|
|
756
806
|
},
|
|
757
807
|
{
|
|
758
|
-
documentation: "Returns 1.0 if the entity is sprinting, else it returns 0.0",
|
|
759
808
|
id: "is_sprinting",
|
|
809
|
+
documentation: "Returns 1.0 if the entity is sprinting, else it returns 0.0",
|
|
760
810
|
},
|
|
761
811
|
{
|
|
762
|
-
documentation: "Returns 1.0 if the entity is stackable, else it returns 0.0",
|
|
763
812
|
id: "is_stackable",
|
|
813
|
+
documentation: "Returns 1.0 if the entity is stackable, else it returns 0.0",
|
|
764
814
|
},
|
|
765
815
|
{
|
|
766
|
-
documentation: "Returns 1.0 if the entity is stalking, else it returns 0.0",
|
|
767
816
|
id: "is_stalking",
|
|
817
|
+
documentation: "Returns 1.0 if the entity is stalking, else it returns 0.0",
|
|
768
818
|
},
|
|
769
819
|
{
|
|
770
|
-
documentation: "Returns 1.0 if the entity is standing, else it returns 0.0",
|
|
771
820
|
id: "is_standing",
|
|
821
|
+
documentation: "Returns 1.0 if the entity is standing, else it returns 0.0",
|
|
772
822
|
},
|
|
773
823
|
{
|
|
774
|
-
documentation: "returns 1.0 if the entity is currently stunned, else it returns 0.0",
|
|
775
824
|
id: "is_stunned",
|
|
825
|
+
documentation: "returns 1.0 if the entity is currently stunned, else it returns 0.0",
|
|
776
826
|
},
|
|
777
827
|
{
|
|
778
|
-
documentation: "Returns 1.0 if the entity is swimming, else it returns 0.0",
|
|
779
828
|
id: "is_swimming",
|
|
829
|
+
documentation: "Returns 1.0 if the entity is swimming, else it returns 0.0",
|
|
780
830
|
},
|
|
781
831
|
{
|
|
782
|
-
documentation: "Returns 1.0 if the entity is tamed, else it returns 0.0",
|
|
783
832
|
id: "is_tamed",
|
|
833
|
+
documentation: "Returns 1.0 if the entity is tamed, else it returns 0.0",
|
|
784
834
|
},
|
|
785
835
|
{
|
|
786
|
-
documentation: "Returns 1.0 if the entity is transforming, else it returns 0.0",
|
|
787
836
|
id: "is_transforming",
|
|
837
|
+
documentation: "Returns 1.0 if the entity is transforming, else it returns 0.0",
|
|
788
838
|
},
|
|
789
839
|
{
|
|
790
|
-
documentation: "Returns 1.0 if the entity is using an item, else it returns 0.0",
|
|
791
840
|
id: "is_using_item",
|
|
841
|
+
documentation: "Returns 1.0 if the entity is using an item, else it returns 0.0",
|
|
792
842
|
},
|
|
793
843
|
{
|
|
794
|
-
documentation: "Returns 1.0 if the entity is climbing a wall, else it returns 0.0",
|
|
795
844
|
id: "is_wall_climbing",
|
|
845
|
+
documentation: "Returns 1.0 if the entity is climbing a wall, else it returns 0.0",
|
|
796
846
|
},
|
|
797
847
|
{
|
|
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
848
|
id: "item_in_use_duration",
|
|
849
|
+
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
850
|
},
|
|
801
851
|
{
|
|
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
852
|
id: "item_is_charged",
|
|
804
|
-
|
|
853
|
+
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.",
|
|
854
|
+
parameters: [
|
|
855
|
+
{
|
|
856
|
+
id: "slot",
|
|
857
|
+
documentation: "0 or 'main_hand' for main hand, 1 or 'off_hand' for off hand",
|
|
858
|
+
},
|
|
859
|
+
],
|
|
805
860
|
},
|
|
806
861
|
{
|
|
807
|
-
documentation: "Returns the maximum amount of time the item can be used, else 0.0 if it doesn't make sense",
|
|
808
862
|
id: "item_max_use_duration",
|
|
863
|
+
documentation: "Returns the maximum amount of time the item can be used, else 0.0 if it doesn't make sense",
|
|
809
864
|
},
|
|
810
865
|
{
|
|
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
866
|
id: "item_remaining_use_duration",
|
|
867
|
+
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
868
|
},
|
|
814
869
|
{
|
|
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
870
|
id: "item_slot_to_bone_name",
|
|
871
|
+
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
872
|
},
|
|
818
873
|
{
|
|
819
|
-
documentation: "Returns the ratio between the previous and next key frames",
|
|
820
874
|
id: "key_frame_lerp_time",
|
|
875
|
+
documentation: "Returns the ratio between the previous and next key frames",
|
|
821
876
|
},
|
|
822
877
|
{
|
|
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
878
|
id: "last_frame_time",
|
|
879
|
+
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
880
|
},
|
|
826
881
|
{
|
|
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
882
|
id: "last_hit_by_player",
|
|
883
|
+
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
884
|
},
|
|
830
885
|
{
|
|
831
|
-
documentation: "Returns the lie down amount for the entity",
|
|
832
886
|
id: "lie_amount",
|
|
887
|
+
documentation: "Returns the lie down amount for the entity",
|
|
833
888
|
},
|
|
834
889
|
{
|
|
835
|
-
documentation: "returns the limited life span of an entity, or 0.0 if it lives forever",
|
|
836
890
|
id: "life_span",
|
|
891
|
+
documentation: "returns the limited life span of an entity, or 0.0 if it lives forever",
|
|
837
892
|
},
|
|
838
893
|
{
|
|
839
|
-
documentation: "Returns the time in seconds since the current animation started, else 0.0 if not called within an animation",
|
|
840
894
|
id: "life_time",
|
|
895
|
+
documentation: "Returns the time in seconds since the current animation started, else 0.0 if not called within an animation",
|
|
841
896
|
},
|
|
842
897
|
{
|
|
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
898
|
id: "lod_index",
|
|
899
|
+
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
900
|
},
|
|
901
|
+
{ id: "log", documentation: "debug log a value to the content log" },
|
|
846
902
|
{
|
|
847
|
-
documentation: "debug log a value to the content log",
|
|
848
|
-
id: "log",
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
documentation: "Returns the use time maximum duration for the main hand item if it makes sense, else it returns 0.0",
|
|
852
903
|
id: "main_hand_item_max_duration",
|
|
904
|
+
documentation: "Returns the use time maximum duration for the main hand item if it makes sense, else it returns 0.0",
|
|
853
905
|
},
|
|
854
906
|
{
|
|
855
|
-
documentation: "Returns the use time for the main hand item.",
|
|
856
907
|
id: "main_hand_item_use_duration",
|
|
908
|
+
documentation: "Returns the use time for the main hand item.",
|
|
857
909
|
},
|
|
910
|
+
{ id: "mark_variant", documentation: "Returns the entity's mark variant" },
|
|
858
911
|
{
|
|
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
912
|
id: "max_durability",
|
|
913
|
+
documentation: "Returns the max durability an item can take",
|
|
865
914
|
},
|
|
866
915
|
{
|
|
867
|
-
documentation: "Returns the maximum health of the entity, or 0.0 if it doesn't make sense to call on this entity.",
|
|
868
916
|
id: "max_health",
|
|
917
|
+
documentation: "Returns the maximum health of the entity, or 0.0 if it doesn't make sense to call on this entity.",
|
|
869
918
|
},
|
|
870
919
|
{
|
|
871
|
-
documentation: "Returns the maximum trade tier of the entity if it makes sense, else it returns 0.0",
|
|
872
920
|
id: "max_trade_tier",
|
|
921
|
+
documentation: "Returns the maximum trade tier of the entity if it makes sense, else it returns 0.0",
|
|
873
922
|
},
|
|
874
923
|
{
|
|
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
924
|
id: "maximum_frame_time",
|
|
925
|
+
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
926
|
},
|
|
878
927
|
{
|
|
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
928
|
id: "minimum_frame_time",
|
|
929
|
+
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
930
|
},
|
|
882
931
|
{
|
|
883
|
-
documentation: "Returns the scale of the current entity",
|
|
884
932
|
id: "model_scale",
|
|
933
|
+
documentation: "Returns the scale of the current entity",
|
|
885
934
|
},
|
|
886
935
|
{
|
|
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
936
|
id: "modified_distance_moved",
|
|
937
|
+
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
938
|
},
|
|
890
939
|
{
|
|
891
|
-
documentation: "Returns the current walk speed of the entity modified by status flags such as is_baby or on_fire",
|
|
892
940
|
id: "modified_move_speed",
|
|
941
|
+
documentation: "Returns the current walk speed of the entity modified by status flags such as is_baby or on_fire",
|
|
893
942
|
},
|
|
894
943
|
{
|
|
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
944
|
id: "moon_brightness",
|
|
945
|
+
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
946
|
},
|
|
898
947
|
{
|
|
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
948
|
id: "moon_phase",
|
|
949
|
+
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
950
|
},
|
|
902
951
|
{
|
|
903
|
-
documentation: "returns the specified axis of the normalized position delta of the entity",
|
|
904
952
|
id: "movement_direction",
|
|
953
|
+
documentation: "returns the specified axis of the normalized position delta of the entity",
|
|
905
954
|
parameters: [{ id: "axis", documentation: "0 for x, 1 for y, 2 for z" }],
|
|
906
955
|
},
|
|
956
|
+
{ id: "noise", documentation: "Queries Perlin Noise Map" },
|
|
907
957
|
{
|
|
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
958
|
id: "on_fire_time",
|
|
959
|
+
documentation: "returns the time that the entity is on fire, else it returns 0.0",
|
|
914
960
|
},
|
|
915
961
|
{
|
|
916
|
-
documentation: "Returns 1.0 if the entity is out of control, else it returns 0.0",
|
|
917
962
|
id: "out_of_control",
|
|
963
|
+
documentation: "Returns 1.0 if the entity is out of control, else it returns 0.0",
|
|
918
964
|
},
|
|
919
965
|
{
|
|
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
966
|
id: "player_level",
|
|
967
|
+
documentation: "returns the players level if the actor is a player, otherwise returns 0",
|
|
930
968
|
},
|
|
931
969
|
{
|
|
932
|
-
|
|
933
|
-
|
|
970
|
+
id: "position_delta",
|
|
971
|
+
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).",
|
|
972
|
+
parameters: [{ id: "axis", documentation: "0 for x, 1 for y, 2 for z" }],
|
|
934
973
|
},
|
|
935
974
|
{
|
|
936
|
-
|
|
937
|
-
|
|
975
|
+
id: "position",
|
|
976
|
+
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).",
|
|
977
|
+
parameters: [{ id: "axis", documentation: "0 for x, 1 for y, 2 for z" }],
|
|
938
978
|
},
|
|
939
979
|
{
|
|
940
|
-
documentation: "Returns the previous squish value for the current entity, or 0.0 if this doesn't make sense",
|
|
941
980
|
id: "previous_squish_value",
|
|
981
|
+
documentation: "Returns the previous squish value for the current entity, or 0.0 if this doesn't make sense",
|
|
942
982
|
},
|
|
943
983
|
{
|
|
944
|
-
documentation: "Returns the how much durability an item has remaining",
|
|
945
984
|
id: "remaining_durability",
|
|
985
|
+
documentation: "Returns the how much durability an item has remaining",
|
|
946
986
|
},
|
|
947
987
|
{
|
|
948
|
-
documentation: "Returns the roll counter of the entity",
|
|
949
988
|
id: "roll_counter",
|
|
989
|
+
documentation: "Returns the roll counter of the entity",
|
|
950
990
|
},
|
|
951
991
|
{
|
|
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
992
|
id: "rotation_to_camera",
|
|
993
|
+
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)",
|
|
994
|
+
parameters: [{ id: "axis", documentation: "0 for x, 1 for y" }],
|
|
954
995
|
},
|
|
955
996
|
{
|
|
956
|
-
documentation: "returns the shaking angle of the entity if it makes sense, else it returns 0.0",
|
|
957
997
|
id: "shake_angle",
|
|
998
|
+
documentation: "returns the shaking angle of the entity if it makes sense, else it returns 0.0",
|
|
958
999
|
},
|
|
959
1000
|
{
|
|
960
|
-
documentation: "Returns the shake time of the entity.",
|
|
961
1001
|
id: "shake_time",
|
|
1002
|
+
documentation: "Returns the shake time of the entity.",
|
|
962
1003
|
},
|
|
963
1004
|
{
|
|
964
|
-
documentation: "Returns the how much the offhand shield should translate down when blocking and being hit.",
|
|
965
1005
|
id: "shield_blocking_bob",
|
|
1006
|
+
documentation: "Returns the how much the offhand shield should translate down when blocking and being hit.",
|
|
966
1007
|
},
|
|
967
1008
|
{
|
|
968
|
-
|
|
969
|
-
|
|
1009
|
+
id: "show_bottom",
|
|
1010
|
+
documentation: "Returns 1.0 if we render the entity's bottom, else it returns 0.0",
|
|
970
1011
|
},
|
|
971
1012
|
{
|
|
972
|
-
|
|
973
|
-
|
|
1013
|
+
id: "sit_amount",
|
|
1014
|
+
documentation: "Returns the current sit amount of the entity",
|
|
974
1015
|
},
|
|
1016
|
+
{ id: "skin_id", documentation: "Returns the entity's skin ID" },
|
|
975
1017
|
{
|
|
976
|
-
documentation: "returns the rotation of the bed the player is sleeping on.",
|
|
977
1018
|
id: "sleep_rotation",
|
|
1019
|
+
documentation: "returns the rotation of the bed the player is sleeping on.",
|
|
978
1020
|
},
|
|
979
1021
|
{
|
|
980
|
-
documentation: "Returns the sneeze counter of the entity",
|
|
981
1022
|
id: "sneeze_counter",
|
|
1023
|
+
documentation: "Returns the sneeze counter of the entity",
|
|
982
1024
|
},
|
|
983
1025
|
{
|
|
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
1026
|
id: "spellcolor",
|
|
1027
|
+
documentation: "Returns the entity spell colour if it makes sense, else it returns 0.0",
|
|
990
1028
|
},
|
|
991
1029
|
{
|
|
992
|
-
documentation: "Returns the scale of how standing up the entity is",
|
|
993
1030
|
id: "standing_scale",
|
|
1031
|
+
documentation: "Returns the scale of how standing up the entity is",
|
|
994
1032
|
},
|
|
995
1033
|
{
|
|
996
|
-
documentation: "returns the structural integrity for the actor, otherwise returns 0",
|
|
997
1034
|
id: "structural_integrity",
|
|
1035
|
+
documentation: "returns the structural integrity for the actor, otherwise returns 0",
|
|
998
1036
|
},
|
|
1037
|
+
{ id: "swell_amount", documentation: "Returns how swollen the entity is" },
|
|
999
1038
|
{
|
|
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
1039
|
id: "swelling_dir",
|
|
1040
|
+
documentation: "Returns the swelling direction of the entity if it makes sense, else it returns 0.0",
|
|
1006
1041
|
},
|
|
1007
1042
|
{
|
|
1008
|
-
documentation: "Returns the amount the current entity is swimming",
|
|
1009
1043
|
id: "swim_amount",
|
|
1044
|
+
documentation: "Returns the amount the current entity is swimming",
|
|
1010
1045
|
},
|
|
1011
1046
|
{
|
|
1012
|
-
documentation: "returns the angle of the tail of the entity if it makes sense, else it returns 0.0",
|
|
1013
1047
|
id: "tail_angle",
|
|
1048
|
+
documentation: "returns the angle of the tail of the entity if it makes sense, else it returns 0.0",
|
|
1014
1049
|
},
|
|
1015
1050
|
{
|
|
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
1051
|
id: "target_x_rotation",
|
|
1052
|
+
documentation: "Returns the x rotation required to aim at the entity's current target if it has one, else it returns 0.0",
|
|
1018
1053
|
},
|
|
1019
1054
|
{
|
|
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
1055
|
id: "target_y_rotation",
|
|
1056
|
+
documentation: "Returns the y rotation required to aim at the entity's current target if it has one, else it returns 0.0",
|
|
1022
1057
|
},
|
|
1023
1058
|
{
|
|
1024
|
-
documentation: "Returns the icon index of the experience orb",
|
|
1025
1059
|
id: "texture_frame_index",
|
|
1060
|
+
documentation: "Returns the icon index of the experience orb",
|
|
1026
1061
|
},
|
|
1027
1062
|
{
|
|
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
1063
|
id: "time_of_day",
|
|
1064
|
+
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
1065
|
},
|
|
1031
1066
|
{
|
|
1032
|
-
documentation: "Returns the current time stamp of the level",
|
|
1033
1067
|
id: "time_stamp",
|
|
1068
|
+
documentation: "Returns the current time stamp of the level",
|
|
1034
1069
|
},
|
|
1035
1070
|
{
|
|
1036
|
-
documentation: "Returns the total number of active emitters in the world",
|
|
1037
1071
|
id: "total_emitter_count",
|
|
1072
|
+
documentation: "Returns the total number of active emitters in the world",
|
|
1038
1073
|
},
|
|
1039
1074
|
{
|
|
1040
|
-
documentation: "Returns the total number of active particles in the world",
|
|
1041
1075
|
id: "total_particle_count",
|
|
1076
|
+
documentation: "Returns the total number of active particles in the world",
|
|
1042
1077
|
},
|
|
1043
1078
|
{
|
|
1044
|
-
documentation: "Returns the trade tier of the entity if it makes sense, else it returns 0.0",
|
|
1045
1079
|
id: "trade_tier",
|
|
1080
|
+
documentation: "Returns the trade tier of the entity if it makes sense, else it returns 0.0",
|
|
1046
1081
|
},
|
|
1047
1082
|
{
|
|
1048
|
-
documentation: "Returns how unhappy the entity is",
|
|
1049
1083
|
id: "unhappy_counter",
|
|
1084
|
+
documentation: "Returns how unhappy the entity is",
|
|
1050
1085
|
},
|
|
1086
|
+
{ id: "variant", documentation: "Returns the entity's variant index" },
|
|
1051
1087
|
{
|
|
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
1088
|
id: "vertical_speed",
|
|
1089
|
+
documentation: "Returns the speed of the entity up or down in metres/second, where positive is up",
|
|
1058
1090
|
},
|
|
1059
1091
|
{
|
|
1060
|
-
documentation: "Returns the walk distance of the entity.",
|
|
1061
1092
|
id: "walk_distance",
|
|
1093
|
+
documentation: "Returns the walk distance of the entity.",
|
|
1062
1094
|
},
|
|
1063
1095
|
{
|
|
1064
|
-
documentation: "Returns the wing flap position of the entity, or 0.0 if this doesn't make sense",
|
|
1065
1096
|
id: "wing_flap_position",
|
|
1097
|
+
documentation: "Returns the wing flap position of the entity, or 0.0 if this doesn't make sense",
|
|
1066
1098
|
},
|
|
1067
1099
|
{
|
|
1068
|
-
documentation: "Returns the wing flap speed of the entity, or 0.0 if this doesn't make sense",
|
|
1069
1100
|
id: "wing_flap_speed",
|
|
1101
|
+
documentation: "Returns the wing flap speed of the entity, or 0.0 if this doesn't make sense",
|
|
1070
1102
|
},
|
|
1071
|
-
{
|
|
1072
|
-
documentation: "Returns the entity's yaw speed",
|
|
1073
|
-
id: "yaw_speed",
|
|
1074
|
-
},
|
|
1103
|
+
{ id: "yaw_speed", documentation: "Returns the entity's yaw speed" },
|
|
1075
1104
|
];
|
|
1076
1105
|
function getQuery(id) {
|
|
1077
1106
|
for (let I = 0; I < General.Math.length; I++) {
|