Skip to Content
Modlock

Examples

Complete mods to read, run and start from.

Each example is a complete project in the examples directory of the repository. Clone the repository, change into an example's directory and run modlock dev to play it.

ExampleShows
hello-tsCommands, a JSX menu with buttons, moving text, a setting, metrics.
arenaA free-for-all: ready-up, countdown, kills, bots, a self-test.
hillKing of the hill: a ring of world text, team scores, progress bars.
drillAn aim drill: target bots, headshots, a length setting, best score.
dropperPlayers place solid objects from a catalog with /build and share the spot they make.
world-panelA board of the mod's own layout, drawn in the world.
inventoryA drag inventory in the mod's own layout, script and style sheet.
bountyA Luau free-for-all: a bounty marker, damage hooks, flares, bots.
raceA Go checkpoint race: a marked course, laps, resets, unit tests.
hello-luauThe smallest mod in Luau.
hello-pythonThe smallest mod in Python.
hello-goThe smallest mod in Go.
puppetA ghost bot that replays a walk you can pause, seek and speed up.
charge-limitA self-test that raises an ability's charges on one bot.
cooldownA self-test that gives one bot's abilities a cooldown of its own, and checks the cast and kill events.
street-brawlA self-test of zipline rides, the zipline boost and imbued items.
helloA native plugin in C++, built with CMake instead of modlock dev.

The same small mod, written once in each language, shows how the libraries compare:

ExampleShows
hero-build-ts, hero-build-luau, hero-build-python, hero-build-goReading a hero's recommended build from the game's data.