Skip to content

Your First Mod

molly edited this page Nov 12, 2026 · 1 revision

Your first mod

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.

Bigger mods

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").

Next

Every function is listed in Mod API.

Clone this wiki locally