Prerequisites for Flarial Scripting
While you can create scripts with any text editor, we strongly recommend using Visual Studio Code.
Installation Guide
- Download and install Visual Studio Code.
- Open Visual Studio Code and navigate to the Extensions Marketplace.
- Search for Lua and install the extension by sumneko.
Setting Up Autocomplete
To enable autocompletion for Flarial, follow these steps:
- Inject Flarial and type
.lua autocompletein the chat, this will install the latest autocomplete files. - Open Visual Studio Code and go to the Extensions Settings for the Lua extension.
- Search for User Third Party (this setting is located near the bottom).
- Add the following directory path:
%LOCALAPPDATA%\Flarial\Client\Scripts\AutoComplete - Save your settings.
Important Note
For autocompletion to work correctly, open the entire current Scripts folder in Visual Studio Code:
%LOCALAPPDATA%\Flarial\Client\ScriptsIf you are on an old UWP build, the legacy path was %LOCALAPPDATA%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\RoamingState\Flarial\Scripts, but current GDK builds use %LOCALAPPDATA%\Flarial\Client\Scripts.
With these steps completed, you’ll have full access to all Flarial functions through autocompletion, making scripting way easier!