Skip to content

Commit 03bf87d

Browse files
committed
Updated
1 parent 5779351 commit 03bf87d

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

src/MolangData/General.ts

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,18 @@ export namespace General {
224224
id: "armor_color_slot",
225225
documentation:
226226
"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+
],
227239
},
228240
{
229241
id: "armor_material_slot",
@@ -283,12 +295,16 @@ export namespace General {
283295
id: "camera_distance_range_lerp",
284296
documentation:
285297
"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+
],
286302
},
287303
{
288304
id: "camera_rotation",
289305
documentation:
290306
"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" }],
292308
},
293309
{
294310
id: "can_climb",
@@ -360,6 +376,7 @@ export namespace General {
360376
id: "debug_output",
361377
documentation:
362378
"debug log a value to the output debug window for builds that have one",
379+
parameters: [{ id: "value", documentation: "The value to log" }],
363380
},
364381
{
365382
id: "delta_time",
@@ -440,10 +457,10 @@ export namespace General {
440457
id: "get_root_locator_offset",
441458
documentation:
442459
"Gets specified axis of the specified locator offset of the root model",
443-
},
460+
},
444461
{
445462
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",
447464
},
448465
{
449466
id: "has_any_family",
@@ -1055,7 +1072,11 @@ export namespace General {
10551072
documentation:
10561073
"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.",
10571074
},
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+
},
10591080
{
10601081
id: "main_hand_item_max_duration",
10611082
documentation:
@@ -1146,7 +1167,7 @@ export namespace General {
11461167
id: "position",
11471168
documentation:
11481169
"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" }],
11501171
},
11511172
{
11521173
id: "previous_squish_value",
@@ -1165,7 +1186,7 @@ export namespace General {
11651186
id: "rotation_to_camera",
11661187
documentation:
11671188
"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" }],
11691190
},
11701191
{
11711192
id: "shake_angle",

0 commit comments

Comments
 (0)