Make mods for Play AC Online
A mod is a ZIP file that changes the game without changing its code. It can hold textures, villager lines, shop stock, furniture, letters, calendar days and Lua scripts.
You make a mod on your own computer and install it in your own game to try it. When it is ready, you can share it with every player.
You do not need our source code or any special software to start. A browser, the game and a text editor or paint program are enough.
You do need the game running with a town loaded. The game runs from your own disc file. If you have not played yet, start at Your disc, then see Set up your computer.
Pick your path #
What a mod can do #
- Textures. Replace any texture the game draws with a
.ddsor.pngof the same size or bigger. - Lines. Villagers say your lines. Talk pools, with no code, make them part of their small talk, by season, time of day or weather if you like. A script can put a line anywhere in a talk, or hold a whole conversation.
- Shops. Change the goods, prices, opening hours and keeper's words of 9 shops: Nook's store, the flower shop, Crazy Redd's tent, Saharah, the fireworks stall, Able Sisters, the barber shop, the Dream Suite and Katrina's tent. Each shop has the fields its row in the shop table lists. See Shops.
- New items. Add house furniture on one of the game's furniture models. Sell it in your shops or give it from a script. See New items.
- Letters and calendar days. A script can mail a letter to the player. A calendar day can post a bulletin board notice, add lines and send a letter. See letters, calendar days and villager lines.
- Scripts. Lua 5.4 code handles 20 events: villager_talked, day_started, item_picked_up, scene_entered, data_migrated, hour_changed, item_bought, item_sold, fish_caught, bug_caught, letter_read, villager_moved_in, visitor_arrived, command_finished, question_answered, timer_fired, villager_answered, button_pressed, button_released and player_acted. A script can read the date, the pockets, the Bells, the town and its villagers. It keeps saved data per town.
- Commands. A script may ask the game to send letter, give item, show line, ask, take item, take bells, save, set weather, play sound, set shop goods, set shop open, set hat, set shirt and react. Each command
is declared in
mod.jsonand applied at the end of a frame's update. See Commands. - Settings. Players set your mod's options in the Mods tab. See Settings.
- Dependencies. A mod can build on other mods. See Dependencies.
What a mod cannot do #
- Add villagers, buildings, acres or music. The only new items are house furniture on a game model.
- Change a shop outside the shop table, such as Joan's turnips.
- Give Bells, or take them without asking.
give_itemrefuses money, andtake_bellsshows the game's own question, which the player must answer yes. - Change the town map, or another player's town or save.
- Run a command in The City. On a visit to a friend's town, the commands that mail, give or take (
send_letter,give_item,take_item,take_bells) are refused, and so aresaveandset_weather.play_soundstill plays there, heard only by the visitor. - Run code every frame. Scripts answer events and timers, and a timer waits at least one game minute. A script changes the game only through the commands its
mod.jsonlists inpermissions. - Change the game's code, read your files or reach the internet. This will never change. See the safety model.
How it works #
- Make a folder with a
mod.jsonfile and your content. A starter kit gives you both. - ZIP it.
- In the game, open Settings, then Mods. Under Install from a file, choose Choose a file.
- Choose Restart now. Mods load when the game starts.
- Look at your change in the game. A problem shows in red on your mod's row.
- When it works, share it from Share a mod in the same tab. A moderator checks it, then everyone can install it.
Get the playac-mod tool (optional) #
playac-mod is a command line tool that checks a mod folder with the game's own rules, reloads it in the game
as you save, and packs the ZIP. It needs Node.js 18.17 or newer (free, from nodejs.org; node --version says which you have). Nothing on this path needs it: installing a ZIP in the Mods tab runs the same checks.
npm install -g https://github.com/Play-AC-Online/playac-mods/releases/download/cli-v1.1.0/playac-mod-1.1.0.tgz
cd my-mod # your mod's folder
playac-mod check # every rule the game checks, each problem with its file
playac-mod dev # serve the folder to the game's developer mode (see Testing)
playac-mod pack # the ZIP to install or share, the same bytes every timeEvery command and option is on The playac-mod tool.
See working mods #
The cookbook shows 4 complete example mods, file by file. Each one is its own public repository on GitHub, laid out the way the GitHub import wants a mod. We install the same files in our own tests, so they work with the current game. Downloads links the starter kits and the examples as ZIPs, on GitHub.
- Springtime Town: Textures and villager lines, no code. Repository.
- After Hours: Nook's at night, an item with its own pictures. Repository.
- Harvest Post: Calendar days, letters, a script with commands and a timer. Repository.
- Button Tricks: Buttons, looks, weather, reactions and saves. Repository.
Source and help #
- The examples, the starter kits, the setup guides and the tool's source are in the public repository on GitHub.
- For a wrong fact or a broken example, open an issue there.
- For a question about making a mod, ask on Discord.
Just want to play with mods? #
The player page, Mods, covers installing, switching and reporting mods.