jump to a section:
installing mods
-
download the
.pckfile (and any.dllfiles if they exist) for the mod you're interested in. be careful: mods may contain viruses that damage your computer or steal your information. ensure that you trust the developer of the mod before installation. -
copy the
.pckfile into themods/folder located in the lucid blocks installation folder. you will need to create themode/folder manually if this is your first time installing a mod. for Windows users, the lucid blocks folder is located atC:\Program Files (x86)\Steam\steamapps\common\lucid-blocks\ - test your mod by running the game like usual.
developing mods
-
download godot 4.6.stable.double, the game engine that lucid blocks was developed in. the godot engine is normally available for download on the Godot website, but the double precision variant must be compiled manually; downloading the linked version saves you from this step.
-
extract the lucid blocks project using GDRETools, a free Godot game decompiler.
-
open the lucid blocks project from the godot editor and make any changes that you wish. keep track of the files that you add or create.
-
once you are ready to share your mod, navigate to
Project > Exportwithin Godot, then selectAdd... > Windows Desktop. in your new preset, go to theResourcestab and switch the export mode toExport all resources in the the project except the resources checked below, then check the root folder to select all files in the project. after all files are selected, manually uncheck only the files that you edited. finally, clickExport PCK/ZIPand export your mod as a.pckfile. - your mod is now ready to share! popular sources include the lucid blocks discord server or the GameBanana page.
advanced mods
most mods can be developed using only GDScript, but more advanced mods may require edits to gdblocks, the custom C++ GDextension that lucid blocks uses to implement the voxel engine. unlike the GDScript code, the C++ code is not easily decompiled. therefore, you will need to compile the .dll file from the open-source repository using the following steps:
-
clone the repository for gdblocks, then move the downloaded contents into the lucid blocks Godot project folder. if done correctly, the
SConstructfile should be in the top folder alongside thegame/andextensionfolders. -
edit the code in VSCode (recommended) or your IDE of choice. if adding a custom class (for new biomes, structures, etc.), create a
.cppand.hfile withinextension/srcandextension/includerespectively. ensure that you include your custom class inregister_types.cppfor it to appear within the godot editor. optionally, follow these steps to configure the VSCode C++ debugger. -
compile the extension by following the debug instructions. this may require installing Python and SCons.
-
export your mod like usual, but include the new
.dllwhen sharing your mod. users will need to override the existing.dllfile in their lucid blocks installation folder with your own.