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 .dds or .png of 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.json and 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_item refuses money, and take_bells shows 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 are save and set_weather. play_sound still 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.json lists in permissions.
  • Change the game's code, read your files or reach the internet. This will never change. See the safety model.

How it works #

  1. Make a folder with a mod.json file and your content. A starter kit gives you both.
  2. ZIP it.
  3. In the game, open Settings, then Mods. Under Install from a file, choose Choose a file.
  4. Choose Restart now. Mods load when the game starts.
  5. Look at your change in the game. A problem shows in red on your mod's row.
  6. 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.

terminal
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 time

Every 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.

Source and help #

Just want to play with mods? #

The player page, Mods, covers installing, switching and reporting mods.