Scripting Overview
Foxel utilizes Lua for scripting, a powerful, efficient, lightweight, and embeddable scripting language. Lua is designed to be simple and flexible, making it an excellent choice for game development and applications like Foxel. For more detailed information about Lua, you can refer to the official Lua documentation.
In Foxel, you can leverage the Foxel API to perform a wide range of tasks that you would typically accomplish through the user interface. The API consists of over 30 modules and more than 350 functions, providing extensive capabilities for scripting within your voxel environment. You can find the full API documentation here.
Key Topics
Creating and Editing Scripts: Learn how to create and manage scripts, as well as how to set up and edit them in an external editor.
Writing Scripts: Understand the basics of the API, including how Foxel accesses and logs API calls.
Executing Scripts: Discover how to assign scripts to buttons and explore other methods for executing scripts.
Running Scripts from the Command-Line: Get insights on how to run your scripts directly from the command line for more advanced usage.