Repository navigation
Your First Mod
molly edited this page Nov 12, 2026
·
1 revision
A mod is a Lua file in the mods folder of Phigros++, on the device:
Android/data/sh.molly.phigrosplusplus/files/phigros++/mods/
Make a file called hello.lua with this in it:
print("hello from my first mod")
toast("Hello!")Copy it to the device with adb:
adb push hello.lua /sdcard/Android/data/sh.molly.phigrosplusplus/files/phigros++/mods/
Phigros++ sees a new or changed file within a second and reloads every mod, without restarting the game. The toast shows "Hello!", and the line you printed is in the log:
adb logcat -s phigros++
If your mod has an error, the log tells you the file and the line, and the other mods keep running. Fix it, push it again, and it reloads.
A mod can also be a folder with an init.lua inside (mods/hello/init.lua), so its pictures and sounds sit next to
it. Mods load in name order, and one mod can use another with require("other").
- Settings: add toggles, sliders and buttons for your mod.
- Reacting to the game: do something when a song starts, a note is hit or a song ends.
- Skins and hit sounds: change how notes look and sound.
Every function is listed in Mod API.