You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/MolangData/General.ts
+27-6Lines changed: 27 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -224,6 +224,18 @@ export namespace General {
224
224
id: "armor_color_slot",
225
225
documentation:
226
226
"Takes the armor slot index as a parameter, and returns the color of the armor in the requested slot",
227
+
parameters: [
228
+
{
229
+
id: "slot",
230
+
documentation:
231
+
"The armor slot index, (0 is helmet, 1 is chestplace, 2 is leggings, 3 is boots)",
232
+
},
233
+
{
234
+
id: "channel",
235
+
documentation:
236
+
"The color channel to return, (0 is red, 1 is green, 2 is blue, 3 is alpha)",
237
+
},
238
+
],
227
239
},
228
240
{
229
241
id: "armor_material_slot",
@@ -283,12 +295,16 @@ export namespace General {
283
295
id: "camera_distance_range_lerp",
284
296
documentation:
285
297
"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",
298
+
parameters: [
299
+
{id: "A",documentation: "The first distance"},
300
+
{id: "B",documentation: "The second distance"},
301
+
],
286
302
},
287
303
{
288
304
id: "camera_rotation",
289
305
documentation:
290
306
"Returns the rotation of the camera. Requires one argument representing the rotation axis you would like (`0 for x`, `1 for y`)",
291
-
parameters: [{id: "axis",documentation: "0 for x, 1 for y"}],
307
+
parameters: [{id: "axis",documentation: "0 for x, 1 for y"}],
292
308
},
293
309
{
294
310
id: "can_climb",
@@ -360,6 +376,7 @@ export namespace General {
360
376
id: "debug_output",
361
377
documentation:
362
378
"debug log a value to the output debug window for builds that have one",
379
+
parameters: [{id: "value",documentation: "The value to log"}],
363
380
},
364
381
{
365
382
id: "delta_time",
@@ -440,10 +457,10 @@ export namespace General {
440
457
id: "get_root_locator_offset",
441
458
documentation:
442
459
"Gets specified axis of the specified locator offset of the root model",
443
-
},
460
+
},
444
461
{
445
462
id: "ground_speed",
446
-
documentation: "Returns the ground speed of the entity in metres/second",
463
+
documentation: "Returns the ground speed of the entity in metres/second",
447
464
},
448
465
{
449
466
id: "has_any_family",
@@ -1055,7 +1072,11 @@ export namespace General {
1055
1072
documentation:
1056
1073
"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.",
1057
1074
},
1058
-
{id: "log",documentation: "debug log a value to the content log"},
1075
+
{
1076
+
id: "log",
1077
+
documentation: "debug log a value to the content log",
1078
+
parameters: [{id: "value",documentation: "The value to log"}],
1079
+
},
1059
1080
{
1060
1081
id: "main_hand_item_max_duration",
1061
1082
documentation:
@@ -1146,7 +1167,7 @@ export namespace General {
1146
1167
id: "position",
1147
1168
documentation:
1148
1169
"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).",
1149
-
parameters: [{id: "axis",documentation: "0 for x, 1 for y, 2 for z"}],
1170
+
parameters: [{id: "axis",documentation: "0 for x, 1 for y, 2 for z"}],
1150
1171
},
1151
1172
{
1152
1173
id: "previous_squish_value",
@@ -1165,7 +1186,7 @@ export namespace General {
1165
1186
id: "rotation_to_camera",
1166
1187
documentation:
1167
1188
"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)",
1168
-
parameters: [{id: "axis",documentation: "0 for x, 1 for y"}],
1189
+
parameters: [{id: "axis",documentation: "0 for x, 1 for y"}],
0 commit comments