A function that returns a table with all script file names from the specified path
If no path is specified, it will fetch from the root folder
A second argument, boolean, can be given to also list files inside subfolders
Folders can be accessed relative to the executing script using `./` and `../` 
listFiles(): String[] | Method Property | Fluent Description | Representation |
|---|---|---|
| Return Value | typings.1859653459
listFiles(folder: String): String[] | Method Property | Fluent Description | Representation |
|---|---|---|
| folder accepts | typings.-1808118735||
| Return Value | typings.1859653459
listFiles(folder: String, subFolders: Boolean): String[] | Method Property | Fluent Description | Representation |
|---|---|---|
| folder accepts | typings.-1808118735||
| subFolders accepts | typings.1729365000||
| Return Value | typings.1859653459
A function that writes its arguments to chat
Even though the syntax says only one argument, you can put as many as you want
All of them will print, and they'll be separated by a tab space
Returns the string representation of all values 
log(...: AnyType): String | Method Property | Fluent Description | Representation |
|---|---|---|
| ... accepts | typings.821772070||
| Return Value | typings.-1808118735
Takes a Minecraft JSON string as an argument, and prints it to the chat formatted, without the lua print header
Even though the syntax says only one argument, you can put as many as you want
All of them will print, and they'll be appended in the end of the previous argument
Returns the formatted string 
logJson(json: String): String | Method Property | Fluent Description | Representation |
|---|---|---|
| json accepts | typings.-1808118735||
| Return Value | typings.-1808118735
The first argument is either a Table, or it's a Userdata, which refers to any of the added Figura types
Prints the table out to chat, specially formatted
If userdata is passed in, it is automatically converted to a table or string, and displayed
In the case of tables inside of tables, the "maxDepth" parameter will be used to determine how far to go
Default value for maxDepth is 1
Third argument, "silent", will skip the chat print and will only return the string 
logTable(table: Table): String | Method Property | Fluent Description | Representation |
|---|---|---|
| table accepts | typings.80563118||
| Return Value | typings.-1808118735
logTable(javaObject: Userdata): String | Method Property | Fluent Description | Representation |
|---|---|---|
| javaObject accepts | typings.-201367019||
| Return Value | typings.-1808118735
logTable(table: Table, maxDepth: Integer): String | Method Property | Fluent Description | Representation |
|---|---|---|
| table accepts | typings.80563118||
| maxDepth accepts | typings.-672261858||
| Return Value | typings.-1808118735
logTable(javaObject: Userdata, maxDepth: Integer): String | Method Property | Fluent Description | Representation |
|---|---|---|
| javaObject accepts | typings.-201367019||
| maxDepth accepts | typings.-672261858||
| Return Value | typings.-1808118735
logTable(table: Table, maxDepth: Integer, silent: Boolean): String | Method Property | Fluent Description | Representation |
|---|---|---|
| table accepts | typings.80563118||
| maxDepth accepts | typings.-672261858||
| silent accepts | typings.1729365000||
| Return Value | typings.-1808118735
logTable(javaObject: Userdata, maxDepth: Integer, silent: Boolean): String | Method Property | Fluent Description | Representation |
|---|---|---|
| javaObject accepts | typings.-201367019||
| maxDepth accepts | typings.-672261858||
| silent accepts | typings.1729365000||
| Return Value | typings.-1808118735
A function that writes its arguments to chat
Even though the syntax says only one argument, you can put as many as you want
All of them will print, and they'll be separated by a tab space
Returns the string representation of all values 
print(...: AnyType): String | Method Property | Fluent Description | Representation |
|---|---|---|
| ... accepts | typings.821772070||
| Return Value | typings.-1808118735
Takes a Minecraft JSON string as an argument, and prints it to the chat formatted, without the lua print header
Even though the syntax says only one argument, you can put as many as you want
All of them will print, and they'll be appended in the end of the previous argument
Returns the formatted string 
printJson(json: String): String | Method Property | Fluent Description | Representation |
|---|---|---|
| json accepts | typings.-1808118735||
| Return Value | typings.-1808118735
The first argument is either a Table, or it's a Userdata, which refers to any of the added Figura types
Prints the table out to chat, specially formatted
If userdata is passed in, it is automatically converted to a table or string, and displayed
In the case of tables inside of tables, the "maxDepth" parameter will be used to determine how far to go
Default value for maxDepth is 1
Third argument, "silent", will skip the chat print and will only return the string 
printTable(table: Table): String | Method Property | Fluent Description | Representation |
|---|---|---|
| table accepts | typings.80563118||
| Return Value | typings.-1808118735
printTable(javaObject: Userdata): String | Method Property | Fluent Description | Representation |
|---|---|---|
| javaObject accepts | typings.-201367019||
| Return Value | typings.-1808118735
printTable(table: Table, maxDepth: Integer): String | Method Property | Fluent Description | Representation |
|---|---|---|
| table accepts | typings.80563118||
| maxDepth accepts | typings.-672261858||
| Return Value | typings.-1808118735
printTable(javaObject: Userdata, maxDepth: Integer): String | Method Property | Fluent Description | Representation |
|---|---|---|
| javaObject accepts | typings.-201367019||
| maxDepth accepts | typings.-672261858||
| Return Value | typings.-1808118735
printTable(table: Table, maxDepth: Integer, silent: Boolean): String | Method Property | Fluent Description | Representation |
|---|---|---|
| table accepts | typings.80563118||
| maxDepth accepts | typings.-672261858||
| silent accepts | typings.1729365000||
| Return Value | typings.-1808118735
printTable(javaObject: Userdata, maxDepth: Integer, silent: Boolean): String | Method Property | Fluent Description | Representation |
|---|---|---|
| javaObject accepts | typings.-201367019||
| maxDepth accepts | typings.-672261858||
| silent accepts | typings.1729365000||
| Return Value | typings.-1808118735
The require() function takes the name of one of your scripts, without the .lua extension
If this script has not been already run before, it will run that script and return the value that script returns
If it has been run before, then it will not run the file again, but it will return the same thing as the first time
If a required script has no returns, then require() will return true
If the name you give isn't any of your scripts, it will error
Scripts can be accessed relative to the executing script using `./` and `../` 
require(scriptName: String): AnyType | Method Property | Fluent Description | Representation |
|---|---|---|
| scriptName accepts | typings.-1808118735||
| Return Value | typings.821772070
Figura overrides lua's type() function
When used on Figura types, returns the type's name as seen in the docs and in the figuraMetatables global
When called on a table that has a metatable with a __type key, returns the corresponding value 
type: (AnyType) -> String | Method Property | Fluent Description | Representation |
|---|---|---|
| Field Type | typings.-1103753845
vec: (Number, Number, Number | nil, Number | nil, Number | nil, Number | nil) -> AnyType where (Number, Number) -> Vector2 and (Number, Number, Number) -> Vector3 and (Number, Number, Number, Number) -> Vector4 and (Number, Number, Number, Number, Number) -> Vector5 and (Number, Number, Number, Number, Number, Number) -> Vector6 | Method Property | Fluent Description | Representation |
|---|---|---|
| Field Type | typings.-44348180
listFiles
action_wheel
Action
BlockRaycastTypes