Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Filesystem

Mod root

A mod’s root directory is data/<namespace> in the virtual filesystem, where <namespace> is the mod’s name. Each mod may use these directories:

DirectoryDescription
collisionsCollision models for blocks
featuresWorld generation feature templates
fontsFonts in binary form. Currently the engine uses them only in builtin. Font paths are hard-coded in the engine
langTranslation files
libLua libraries for require
miscMiscellaneous files
models3D models for blocks
scriptsLua scripts
shadersGLSL shader sources. Currently the engine uses them only in builtin. Shader paths are hard-coded in the engine
texturesTextures

Virtual filesystem

The engine uses PhysFS for the VFS. The user directory is %APPDATA%/voxelius-client on Windows and voxelius-server for the server, or $XDG_DATA_HOME/<name> and ~/.local/share/<name> on a POSIX host. The -user option overrides it. The engine mounts these system paths:

MountPathAccessDescription
/data${PWD}/dataRead-onlyVendored mods, including builtin
/the user directoryRead/WriteSettings and world saves live here
/data<user>/modsRead-only, appendedUser-provided mods. The mount is appended, so a game mod of the same name wins