In short: Modal is a free, open-source launcher for Minecraft: Java Edition on Windows and Linux. You don’t need to install Java or a mod loader yourself.
Modal keeps each setup of the game in an instance: a Minecraft version, a mod loader, and its own mods, worlds and settings. When you press Play, Modal downloads what that instance needs: the Java runtime Mojang ships for that version (Java 8, 17, 21 or 25), the game files and the mod loader. Mods, modpacks, resource packs, data packs, shaders and worlds install from Modrinth and CurseForge.
What you need
- Windows: 64-bit Windows 10 or 11.
- Linux: a 64-bit (x86_64) distribution with a desktop.
- A Microsoft account that owns Minecraft: Java Edition, to play.
- Room on your drive: a few hundred megabytes for each Minecraft version and Java runtime, which instances share, plus whatever your mods and worlds take.
There’s no build for macOS yet.
The first few minutes
- Install Modal and open it. A short welcome tour shows how Modal works.
- Sign in with your Microsoft account.
- Make an instance, or install a modpack from Discover.
- Press Play. The first start of a version takes a little longer while Modal downloads it.
In short: Run ModalSetup.exe. It installs for your user only, so it doesn’t need admin rights. Or unzip the portable version anywhere.
With the installer (recommended)
- Download
ModalSetup.exewith the Download for Windows button, or from the release page on GitHub. - Run it. Modal installs to
%LOCALAPPDATA%\Programs\Modaland adds shortcuts to the Start menu and the desktop. - Open Modal from the Start menu or the desktop shortcut.
To uninstall, find Modal in Installed apps (or Apps & features) in Windows Settings and choose Uninstall. Your instances stay in Modal’s data folder (see Where your data is) until you delete them.
Portable, without installing
Unzip Modal-portable.zip into any folder you can write to and run Modal.exe. The portable copy updates itself too.
“Windows protected your PC”, or your antivirus flags Modal. Modal’s files aren’t code-signed yet, and some antivirus apps flag new unsigned .NET programs. Choose More info › Run anyway in the SmartScreen window. If your antivirus moved the file to quarantine, restore it and allow the install folder.
In short: The AppImage runs on most distributions and updates itself. Packages for Debian, Fedora, Arch and Flatpak are on every release too.
Pick the one your distribution uses. Every file is on the latest release on GitHub (opens in a new tab), with its SHA-256 checksum.
AppImage (recommended)
One file that runs on most distributions and updates itself. Make it executable and run it:
chmod +x Modal-x86_64.AppImage
./Modal-x86_64.AppImageDebian, Ubuntu, Linux Mint
sudo apt install ./modal_*_amd64.debFedora, openSUSE
sudo dnf install ./modal-*.x86_64.rpm # Fedora
sudo zypper install ./modal-*.x86_64.rpm # openSUSEFlatpak
The Flatpak bundle uses the Freedesktop runtime, so it needs Flathub set up on your system.
flatpak install --user Modal.flatpak
flatpak run io.github.ModalLauncher.ModalArch Linux
Download the PKGBUILD from the release into an empty folder, then build and install the modal-bin package:
makepkg -siAny distribution, from the archive
tar -xzf Modal-linux-x64.tar.gz
./Modal/ModalThe .deb, .rpm, Flatpak and Arch packages add Modal to your applications menu and are updated by your package manager, not by Modal.
In short: The installed app, the portable zip and the AppImage update themselves from Modal’s releases on GitHub. A new version installs when you close Modal.
- Modal looks for a new version when it starts, and every 2 hours while it’s open. If you’ve started Modal more than 5 times in the last 2 hours, it skips the check at start, but still checks every 2 hours.
- A new version downloads in the background. A message tells you when it’s ready: it installs when you close Modal, or straight away if you choose Restart now.
- Updates only change the app. Your instances, accounts and settings stay as they are.
On Modal 1.0? Copies older than 1.1 can’t update themselves. Run ModalSetup.exe 1.1 or newer once, or download the new portable zip or AppImage. They’ll update by themselves from then on.
In short: Sign in with the Microsoft account that owns Minecraft: Java Edition. You type your password on Microsoft’s page, so Modal never sees it.
Modal offers three ways to sign in. Passkeys, two-step verification and password managers work in all of them.
Modal keeps your sign-in encrypted on your PC (with Windows DPAPI on Windows) and uses it only to sign in to Minecraft. To switch accounts, add another one or remove one, use the account chip at the bottom of the sidebar.
If sign-in fails, choose Try again, or try another of the three ways. The message Modal shows says what went wrong.
In short: An instance is one setup of the game, with its own folder. Make one from a Minecraft version and a mod loader, or from a modpack.
A new instance
- Open Instances in the sidebar and choose New instance.
- Give it a Name, and pick a Minecraft version.
- Pick a Mod loader: Vanilla (no mods), Fabric, Forge, NeoForge or Quilt. Modal suggests the loader version marked Recommended. You can pick another one.
- Choose Create instance, then Play.
Every loader is supported from Minecraft 1.12.2 to the newest year-numbered versions (26.x). To see development snapshots in the version list, turn on Show snapshots in Settings › Game.
From a modpack
Install a modpack from Discover › Modpacks, and it becomes an instance of its own. To use a modpack file you already have, choose Import on the Instances page, or drop a .mrpack file onto it.
What’s in an instance’s folder
Each instance lives in instances/<folder> in Modal’s data folder. The folder keeps its name when you rename the instance.
| File or folder | What it holds |
|---|---|
instance.json | Its name, Minecraft version, loader and loader version, memory, Java, JVM arguments, window size, icon, banner, playtime and, for a modpack, which pack and version it came from. |
minecraft/ | The game’s own folder: mods, saves, config, resourcepacks, shaderpacks, options.txt and so on. |
versions/ | The instance’s other versions, if it has any (see Versions). |
Minecraft versions, libraries, game assets and Java runtimes are shared between all instances, so a second instance of the same version doesn’t download them again.
In short: An instance’s page has four tabs: Content, Logs, Files and Settings. Changes save as you make them.
Content
Everything installed in the instance, by kind: mods, resource packs, shaders, data packs and worlds. Here you can:
- Turn a mod on or off without removing it.
- Update what has a newer version for this Minecraft version and loader.
- Remove things. Removed packs and worlds go to the Recycle Bin, so you can get them back.
- Drop files onto the page. Mods, resource packs, shaders and world archives go to the right folder. World archives are checked as they’re unpacked, so a file can’t be written outside the world’s folder.
Logs
The game’s output appears here as it runs. You can search it and copy the lines shown, and open earlier log files and crash reports.
Files
Browse the instance’s folder, and open and edit its text files (configs, options.txt and so on) without leaving Modal. Open folder shows it in your file manager.
Settings
java or javaw program to use your own.-XX:+UseZGC.Maintenance
.mrpack) that Modal and other launchers can install. Mods, resource packs and shaders that are on Modrinth are linked, so the file stays small. Everything else, and the settings that make the instance what it is (configs, options and the server list), goes in as files. Worlds, screenshots and logs stay out.Versions
An instance can keep several versions side by side: a modpack’s versions, or the same mods on another Minecraft version. Pick one from the version picker beside Play. Each version keeps its own mods, packs, configs and worlds. Switching is instant when everything is on the same drive, because Modal only renames folders.
Updating a modpack
A modpack instance offers its newer versions. Before you update, Modal shows what each version changes: which mods are added, updated and removed.
In short: Discover searches Modrinth and CurseForge. Install picks the version that fits your instance and brings the mods it needs with it.
Discover has a tab for each kind of content: Mods, Modpacks, Resource packs, Data packs, Shaders and Worlds, plus Servers and Modules. Filter by Minecraft version and category, or show Open source only.
- You don’t need to pick an instance first. When you press Install, Modal asks which instance to add it to, and which world for a data pack.
- The right version. Modal picks the newest file made for the instance’s Minecraft version and loader. Quilt instances also accept Fabric mods.
- Required mods come along. If a mod needs other mods to work, Modal installs them too.
- Worlds come from CurseForge, and appear in the instance’s Content tab.
CurseForge
Modrinth works straight away. For now, CurseForge needs a personal API key:
- Create a key in the CurseForge for Studios console (opens in a new tab).
- Paste it when you open the CurseForge tab in Discover, or in Settings › Mod platforms.
Some CurseForge authors don’t allow downloads through other apps. For those files, Modal opens the file’s page so you can download it yourself.
Recommendations
Home shows picks based on what you play and install. They’re worked out on your own PC, and nothing about what you play is sent anywhere. You can turn them off, or make Modal forget what it learned, in Settings › Recommendations.
In short: A link can open a Modrinth or CurseForge project straight in Modal. Modal always shows what it is and asks before installing anything.
For players
Put a project’s address after modallauncher.com/, and this site opens it in Modal. For example, modallauncher.com/modrinth.com/mod/sodium. You can also paste a link on the Install with Modal page.
For creators
Add a button to your project’s description, so players with Modal can install it in one click. The address works anywhere a normal link does, Modrinth and CurseForge descriptions included:
[](https://modallauncher.com/modrinth.com/mod/your-project)Replace mod/your-project with your project’s address on Modrinth (modpack/…, resourcepack/…, shader/… and datapack/… work too). For a CurseForge project, use its address on CurseForge. The page asks for its project ID, because CurseForge addresses only carry the name.
The modal:// address
Underneath, the page opens a modal:// link, which Modal registers on Windows and Linux. You can use it directly:
modal://install/<project>[?version=<version>][&source=modrinth|curseforge]
modal://install/sodium # Modrinth, by slug or id
modal://install/AANobbMI?version=<version-id> # one particular version
modal://install/238222?source=curseforge # CurseForge, by project id- On Modrinth (the default), the project is its slug or ID, and the version is one of its version IDs.
- On CurseForge, both are numbers: the project’s ID and a file’s ID.
- Without a version, Modal picks the newest one that fits the instance.
- If Modal is already open, the link goes to the open window rather than starting a second one.
In short: Join featured servers in one click, or run your own Minecraft server on your PC. Servers are in beta.
Joining a server
Discover › Servers lists featured servers with their live player counts, message of the day and icon. Play adds the server to the instance’s multiplayer list and joins it as soon as the game has loaded. On Minecraft 1.20 and newer this uses Quick Play.
Running your own server
- Open Servers in the sidebar and choose New server.
- Give it a Name, a Minecraft version and the Memory it may use.
- Pick the Server software, then choose Create server.
- Press Start. The console shows what the server says. Type a command (without the
/) and press Enter to send it.
| Software | Good for |
|---|---|
| Vanilla | Mojang’s own server, with no plugins or mods. |
| Paper | A fast server for plugins (Bukkit, Spigot and Paper plugins). |
| Purpur | Paper, with extra settings. |
| Fabric | Fabric mods. |
| Forge | Forge mods. |
| NeoForge | NeoForge mods. |
Modal downloads the software from each project’s own servers (Mojang, PaperMC, Purpur, FabricMC, Forge and NeoForge), and finds the Java it needs. Servers are kept in servers/ in Modal’s data folder. To bring in a server you already have, choose Import: Modal copies its folder.
Join it from this PC with the address Modal shows, like localhost. Friends on your home network join with your PC’s local IP address instead. For friends elsewhere, your router has to forward the server’s port (25565 unless you changed it) to your PC.
In short: In Settings › Sync, choose what your instances share, such as worlds or game settings, and which instance each comes from.
Each item has its own source: one instance, or for folders, All instances (combined), a shared pool every instance adds to. With worlds set to the pool, a world you make in one instance shows up in all of them.
| Item | In the game folder | How it’s shared |
|---|---|---|
| Worlds | saves/ | Linked |
| Resource packs | resourcepacks/ | Linked |
| Shader packs | shaderpacks/ | Linked |
| Game settings | options.txt | Copied |
| Servers | servers.dat | Copied |
| Command history | command_history.txt | Copied |
| Creative hotbars | hotbar.nbt | Copied |
- Linked folders become a link to the source’s folder (a junction on Windows, a symbolic link on Linux). What the instance had there first is moved into the shared folder, so nothing is lost. If both have something with the same name, the instance’s name is added to its copy.
- Copied files are copied in just before the game starts, and copied back to the source when it closes, if the game changed them.
- If you delete an instance that’s a source, Modal first hands what it holds to another instance, so the worlds everyone plays aren’t deleted with it.
In short: Modal reads why the game crashed, says it in plain words, and offers a fix it can make for you.
When the game closes with an error, Modal reads its log, the crash report and Java’s own crash file. If it recognises the problem (a missing or outdated mod, two mods that clash, a mod made for another loader or version, Java running out of memory, a wrong JVM argument and many more), it tells you what happened and which mod it points to. It then offers the fix it can make for you: installing, updating or turning off mods, updating the mod loader, more or less memory, resetting JVM arguments, using Modal’s own Java, repairing the game files, resetting configs or game options, turning off shaders or resource packs, or lowering the graphics.
If Modal doesn’t recognise the crash:
- Open the instance’s Logs tab and look at the newest crash report.
- Try Repair in the instance’s Settings tab.
- Turn off recently added mods one at a time in the Content tab, to find the one at fault.
- Still stuck? Ask on Discord (opens in a new tab) with the crash report.
In short: Keep a library of skins, wear one with a click, switch capes, or paint your own.
- Add a skin on the Skins page: From a file (a PNG skin on your PC), From a player (copy any player’s skin by name), or Create a skin to draw your own.
- Wear this skin changes the skin your account wears. You’ll see it in the game from the next world you join.
- Capes: switch between the capes your account owns.
- Wear if rules put a skin or cape on by themselves: when you play a certain instance, or when you join a server whose address contains some text.
- The editor has pencil, eraser, fill and picker tools, undo and redo, Classic or Slim arms, and a live 3D preview you can turn around.
Your skin library is kept in skins/ in Modal’s data folder.
In short: Settings are grouped into sections, and every change saves straight away.
Making a theme
In Settings › Themes, choose New theme. Start from the dark or the light base, then pick the accent, background, sidebar, surface, border and text colours, and a font if you like. Modal works out the hover and pressed shades and everything else from those. Preview on all of Modal shows it everywhere before you choose Save and use.
Choose Export to save a theme as a .modaltheme file you can share, and Import to add one.
In short: A module is a small add-on written in JavaScript. It runs in a sandbox inside Modal and can only do what its permissions allow, and you decide which of those it gets.
Modules can show a card on Home, add a page to the sidebar, a tab to Discover or a section to Settings, send notifications, react when a game starts or stops, and, with your permission, work with your instances. Modal comes with five, in Discover › Modules:
The modules that come with Modal have a check mark. Modal gives it only to a module whose ID, version and code exactly match its own copy. Writing "author": "Modal" doesn’t earn it, and IDs starting with app.modal. are refused unless the module really is Modal’s.
Adding a module
- Open Settings › Modules and drop a
.modalmodulefile anywhere on it, or choose one under Add a module. - Modal shows what the module is and every permission it asks for, each with its own switch. Turn off anything you don’t want it to have.
- Choose Allow, or Deny to leave it out.
You can change a module’s permissions and options later in its row in Settings › Modules, turn it off, or remove it together with the data it kept.
What keeps a module in its place
- It runs in its own JavaScript engine, with no files, no programs, no
eval, and no Node or browser APIs. The only way out is themodalobject, and that only has what the module was allowed. - Every run of its code is limited in time and memory, so a module that loops forever is stopped, and Modal carries on.
- It can only reach the websites its
module.jsonlists, only over https, and never your PC or your home network. You agree to those sites first. - Everything it shows carries its name, so a notification can’t pretend to come from Modal.
- Anything that could cost you something, like starting a game, adding a modpack or deleting an instance, either asks you first or is shown as it happens.
The colours of permissions
instances.unsafe can add JAR files and set Java arguments, which run as programs on your PC. Modal asks you every single time, and shows exactly what would change. Only allow it for a module you trust.In short: A module is a folder with a module.json and a main.js. In developer mode, Modal runs it straight from the folder and reloads it every time you save.
Set up
- Open Settings › Modules and turn on Developer mode.
- Choose Make an example… and pick a folder. Modal writes the Daily Streak example there:
module.json,main.jsand aREADME.md. - Choose Load a folder… and pick the example’s folder. It runs straight away, with all the permissions it asks for.
- Open the folder in your editor. Every time you save, Modal reloads the module. Reload does the same by hand.
- Choose Test event to send it a game of “Survival” stopping after 42 minutes, without starting Minecraft. What it logs appears under the module.
The example: Daily Streak
It counts the days in a row you’ve played and shows your streak on Home. First, module.json says who it is, what it may do and the options it offers:
{
"id": "dev.example.daily-streak",
"name": "Daily Streak",
"version": "1.0.0",
"author": "You",
"description": "Counts the days in a row you've played and shows your streak on Home.",
"api": 1,
"main": "main.js",
"icon": "flame",
"permissions": ["events", "storage", "home.card"],
"options": [
{ "key": "goal", "label": "Streak goal", "type": "choice", "choices": ["7 days", "30 days", "100 days"], "default": "30 days" }
]
}Then main.js, which can only use the modal object:
// Daily Streak: an example Modal module (module API 1).
// It runs in Modal's sandbox: there are no files, no internet and no Node or browser APIs, only `modal`.
// Save this file while developer mode has the folder loaded, and Modal starts it again straight away.
const day = (ms) => new Date(ms).toISOString().slice(0, 10);
modal.on("gameStopped", (game) => {
const today = day(Date.now());
const last = modal.storage.get("lastDay");
if (last === today) return; // today already counts
const yesterday = day(Date.now() - 86400000);
const streak = last === yesterday ? (modal.storage.get("streak") ?? 0) + 1 : 1;
modal.storage.set("lastDay", today);
modal.storage.set("streak", streak);
modal.log(`Played ${game.instance} for ${game.minutes} min: streak ${streak}`);
showCard(streak);
});
function showCard(streak) {
const goal = parseInt(modal.options.goal, 10);
modal.home.card({
title: streak === 1 ? "1 day in a row" : `${streak} days in a row`,
text: streak >= goal ? "Goal reached. Keep it going!" : `${goal - streak} more to reach your goal.`,
icon: "flame",
});
}
const streak = modal.storage.get("streak");
if (streak) showCard(streak);The script runs once when the module starts. After that, Modal calls the functions it handed over: the event handlers, and the buttons and searches on its page or tab.
A page in the sidebar
This one keeps your last 50 games and lists them on a page of its own, with a button that asks before clearing the list.
{
"id": "dev.yourname.session-log",
"name": "Session Log",
"version": "1.0.0",
"author": "You",
"description": "Your last games, on a page in the sidebar.",
"api": 3,
"icon": "history",
"permissions": ["events", "storage", "sidebar", "popup"],
"sidebar": { "title": "Sessions", "icon": "history" }
}const ui = modal.ui;
const games = () => modal.storage.get("games") ?? [];
modal.on("gameStopped", (game) => {
const entry = { instance: game.instance, minutes: game.minutes, crashed: game.crashed, at: Date.now() };
modal.storage.set("games", [entry, ...games()].slice(0, 50));
modal.sidebar.refresh(); // draw the page again
});
function clear() {
modal.popup({
title: "Clear the list?",
text: "This forgets every game Session Log has kept.",
buttons: [
{ text: "Clear", style: "primary", onPress: () => { modal.storage.remove("games"); modal.sidebar.refresh(); } },
{ text: "Cancel" },
],
});
}
modal.sidebar.render(() => {
const list = games();
if (list.length === 0) return ui.empty("No games yet", "Play something, and it shows up here.", "history");
const minutes = list.reduce((sum, g) => sum + g.minutes, 0);
return ui.column(
ui.hero({ title: "Sessions", subtitle: `${list.length} games, ${Math.round(minutes)} minutes in all`, icon: "history" }),
ui.rows(...list.map((g) => ui.item({
title: g.instance,
text: new Date(g.at).toISOString().slice(0, 16).replace("T", " "),
aside: `${g.minutes} min`,
badges: g.crashed ? ["Crashed"] : [],
}))),
ui.button("Clear the list", clear, "ghost"),
);
});A tab in Discover, with the internet
A Discover tab answers searches. This one searches Modrinth’s resource packs. It lists both sites it reaches: Modrinth’s API for the search, and its CDN for the pictures, because pictures also only load from a module’s own sites. The first time you open the tab, Modal asks you to agree to those sites.
{
"id": "dev.yourname.pack-finder",
"name": "Pack Finder",
"version": "1.0.0",
"description": "Search Modrinth's resource packs from a tab in Discover.",
"api": 3,
"icon": "image",
"permissions": ["discover", "network", "notify"],
"network": ["api.modrinth.com", "cdn.modrinth.com"],
"discover": { "title": "Pack Finder", "icon": "image", "placeholder": "Search resource packs" }
}const facets = encodeURIComponent(JSON.stringify([["project_type:resourcepack"]]));
modal.discover.search(async (query) => {
const url = `https://api.modrinth.com/v2/search?limit=20&facets=${facets}&query=${encodeURIComponent(query)}`;
const response = await modal.http.get(url);
if (!response.ok) throw new Error(`Modrinth answered with an error (${response.status}).`);
return response.json().hits.map((hit) => ({
title: hit.title,
text: hit.description,
author: hit.author,
image: hit.icon_url,
badges: hit.categories.slice(0, 3),
actions: [
{ text: "Downloads", onPress: () => modal.notify(hit.title, `${hit.downloads.toLocaleString()} downloads`) },
],
}));
});An error thrown by the search, like the one above, is shown in the tab in place of results.
In short: Who the module is, what it may do and the options it offers. Modal checks it when it’s read, and a problem is shown in words.
| Field | What it is |
|---|---|
id | Required. Lowercase words joined by dots, dashes or underscores, at least two of them, like dev.yourname.module. Up to 64 characters. A module with the same ID replaces the older version, and keeps its data. |
name | Required. Up to 40 characters. |
version | Required. Up to 24 characters, like 1.0.0. |
api | Required. The module API it was made for: 1, 2 or 3. This Modal offers API 3. A module made for a newer API can be added, but stays off. |
author | Up to 40 characters. |
description | Up to 240 characters. |
main | Its script: a .js file at the top of the module. Defaults to main.js. |
icon | A Lucide icon’s name (opens in a new tab), like flame or book-open. One Modal doesn’t have shows as a package. |
permissions | What it asks for (see The modal object). At most 16. |
options | Up to 8 options, shown in its row in Settings › Modules (see below). |
network | With network: the sites it may reach, like ["api.example.com"]. Up to 8 names on the public internet. No IP addresses, localhost or local names. |
sidebar | With sidebar: its page, { "title", "icon" }. |
discover | With discover: its tab, { "title", "icon", "placeholder" }. The placeholder is the search box’s hint. |
settings | With settings.tab: its section in Settings, { "title", "icon" }. |
A permission and the field that goes with it are needed together: network with a list of sites, sidebar with a sidebar object, and so on. Titles are up to 24 characters and placeholders up to 40.
Options
Each option has a key (a letter, then up to 31 letters, digits or underscores), a label of up to 40 characters, and a type:
"choice"choices. Your code reads the chosen text, like "30 days". Without a default, it starts at the first choice."toggle"true or false. Without a default, it starts off.When the player changes an option, Modal starts the module again, so modal.options always has the current values.
In short: Each permission adds its part of modal. A part the player turned off isn’t there at all, so check before you use it.
The player can turn any permission off when adding the module, or later. Check for the part you need, like if (modal.http) …, and say what’s missing rather than failing. Things done in Modal answer later with a promise and can be refused, so catch errors.
Always there
| Name | What it does |
|---|---|
modal.options.<key> | The value of each of its options. |
modal.log(...parts) | A line in its log, under the module in Settings › Modules. console.log does the same. |
modal.permissions | What it was allowed, as a list. |
modal.apiVersion | The module API this Modal offers: 3. |
modal.ui | Shortcuts for the parts it draws with (see Pages, tabs and pop-ups). |
Permissions
| Permission | What it unlocks |
|---|---|
eventsGrey | modal.on("gameStarted", game => …) and modal.on("gameStopped", game => …). game has instance (its name), version and loader. When the game stops, it also has minutes and crashed. |
notifyGrey | modal.notify(title, message): a notification in Modal’s corner, signed with the module’s name. |
storageGrey | modal.storage.get(key), .set(key, value) and .remove(key). Values are anything JSON can hold. Keys are 1 to 64 characters. |
home.cardGrey | modal.home.card({ title, text, icon }) and modal.home.clear(): one card on Home. |
popupGrey | modal.popup({ title, text, body, buttons: [{ text, style, onPress }] }). Modal adds a close button you can’t remove. Any button closes the pop-up, then runs its onPress. |
sidebarGrey | modal.sidebar.render(() => parts) and modal.sidebar.refresh(): its page in the sidebar. Needs "sidebar" in module.json. |
discoverGrey | modal.discover.search(async query => results): its tab in Discover. Each result is { title, text, author, image, icon, badges, onPress, actions: [{ text, style, onPress }] }. Needs "discover" in module.json. |
settings.tabGrey | modal.settingsTab.render(() => parts) and .refresh(): its section in Settings. Needs "settings" in module.json. |
sidebar.editGrey | modal.sidebarEdit.line({ title, text, icon, progress }): a line at the bottom of the sidebar, and .clear(). .label(page, text) puts a label on a sidebar page: home, instances, discover, skins, screenshots, servers, or self for its own. A label of null takes it away. |
networkYellow | await modal.http.get(url, { headers }) and .post(url, body, { headers }). The answer is { status, ok, text, json() }. Only its own sites, only over https. A redirect isn’t followed. The player agrees to its sites on its page or tab first, or when adding it if it has neither. |
instances.readYellow | modal.instances.list(): each instance’s id, name, version, loader, loaderVersion, memoryMb, playtimeMinutes, lastPlayed, mods (file names), windowWidth, windowHeight and modpack. |
instances.filesYellow | modal.instances.readFile(id, path), .writeFile(id, path, text) and .listFiles(id, folder), inside the instance’s game folder. Only text files: .txt, .json, .json5, .toml, .properties, .cfg, .conf, .yml, .yaml, .ini, .mcmeta, .snbt, .csv, .md and .lang. Never in the folders that hold code: mods, coremods, kubejs, scripts, libraries, natives, plugins, jarmods, resourcepacks, shaderpacks and versions. |
instances.launchYellow | modal.instances.launch(id) starts a game as Play does, and Modal says so. .setMemory(id, megabytes) sets its memory, rounded to 256 MB. |
instances.manageYellow | .installed(id) lists what Modal installed. .addMod(id, { project, source, type, version }) adds a mod, resource pack or shader from "modrinth" or "curseforge", with what it needs. .updateMod(id, project) and .updateModpack(id) update. .rename(id, name) and .setIcon(id, icon) change how it looks. .setWindowSize(id, width, height) (640–3840 × 480–2160) and .clearWindowSize(id) set the game window. |
instances.addYellow | modal.instances.addModpack({ project, source, version }). Modal asks the player, showing its size. |
instances.deleteYellow | modal.instances.delete(id). Modal asks the player first. |
logsYellow | modal.logs.current(id) (the last 2,000 lines of its game output), .list(id) and .read(id, "logs/latest.log"): its logs and crash reports, past ones too. |
consoleYellow | modal.servers.list() and .console(id): what your own servers’ consoles say, read-only. |
instances.unsafeRed | modal.unsafe.addFile(id, path, url) and .removeFile(id, path) (mods, .zip archives and text files, anywhere in the game folder), .addInstance({ name, version, loader }), .addModpack(url), .setJvmArguments(id, args) and .setJavaPath(id, path). Modal asks every time, showing exactly what would change. Downloads only come from its network sites. |
Everything under instances.manage, instances.add, instances.delete, logs, console, sidebar.edit and instances.unsafe returns a promise. An instance that’s busy (playing, or installing) refuses changes until it’s done.
if (!modal.instances?.addMod) {
modal.log("Adding mods was turned off for this module.");
} else {
try {
const result = await modal.instances.addMod(id, { project: "sodium" });
modal.log(`Added ${result.added.join(", ")}`);
} catch (e) {
modal.log(`Couldn't add it: ${e.message}`); // refused, busy, or not found
}
}In short: A module draws with parts, which are plain objects. modal.ui has a shortcut for each. Modal draws them in its own style, so every module looks at home.
A page, a Settings section or a pop-up’s body is one part, usually a column of others. Functions in parts, like a button’s onPress, stay inside the sandbox, and Modal calls them when the part is used. Each time a page is drawn again, the last drawing’s functions are let go of. Call refresh() after your data changes.
| Part | What it draws |
|---|---|
text(t, style) | Text. Style is "title", "heading", "caption" or "muted". heading(t) is a shortcut. |
button(t, onPress, style) | A button, "primary" or "ghost". |
row(...), column(...), grid(...), list(...) | Parts side by side, one under another, in a grid, or as a list. |
section(title, { subtitle, aside }, ...) | A titled group of parts. |
hero({ title, subtitle, icon }, ...) | The big heading at the top of a page. |
card({ title, text, icon, image, badges, onPress }) | A card, which can be pressed. |
rows(...) and item({ title, text, aside, icon, color, badges, onPress }, ...) | A list of rows, like Settings’ own. |
stat(value, label, { icon, subtitle }) | A big number with its label. |
ring(0..1, text, { subtitle, color }) | A progress ring. |
progress(0..1, label, { aside, color }) | A progress bar. |
chart([{ text, value, title, selected, color }], { height }) | A bar chart. |
tabs([{ text, selected, onPress }]) | Tabs. Draw the selected one’s content yourself. |
switch(t, on, value => …, { subtitle }) | A switch. Its function gets the new value. |
select(t, choices, choice, value => …, { subtitle }) | A drop-down list. |
notice(t, { title, color }) | A message in a box. |
empty(title, t, icon) | What to show when there’s nothing yet. |
image(url, { width, height }) | A picture, from the module’s own network sites only. |
badge(t), divider() | A small label, and a line between parts. |
Colours are "accent", "success", "warning" and "danger". Icons are Lucide names, as in module.json. Text is cut to a sensible length, and a page has a limit on how many parts it can hold.
In short: Limits keep one module from slowing Modal down or flooding you with messages. A module that passes one is told why, in words.
| What | Limit |
|---|---|
| Each run of its code | 2 seconds and 32 MB of memory. A run is starting the module, an event, a button press or a search. A module that runs too long is stopped, and Settings › Modules says why. Code runs in strict mode, without eval or new Function. |
| Storage | 64 KB in all. |
| Notifications | 3 a minute. Extra ones are left out, and its log says so. |
| Pop-ups | 3 a minute, with no limit for one opened by a click on its own buttons. They never cover another dialog. |
| Internet | 60 requests a minute, 15 seconds each, answers up to 2 MB. Pictures up to 5 MB. |
| Instance files | 1 MB per file read or written. |
| Logs | The newest 512 KB of a log. |
| Starting a game | Once in 30 seconds. |
| Mods | 30 added or updated a minute. 3 modpack updates in 5 minutes. |
| Renames and icons | 6 a minute, and one per instance in 10 seconds. |
| Window sizes | 10 a minute. |
| Adding modpacks | 5 asked for a minute. A pack bigger than 10 GB is turned down without asking when there’s less than 2.5 times its size free. |
| Deleting instances | One asked for a minute. |
| The sidebar | 30 changes a minute. |
| Red permission | 10 files a minute, and 5 requests for permission a minute. |
| Package | A .modalmodule up to 5 MB, module.json up to 64 KB, and its script up to 512 KB. |
In short: Everything Modal keeps is in one data folder. Set MODAL_HOME to put it somewhere else.
The data folder is %APPDATA%\Modal on Windows, and $XDG_DATA_HOME/modal on Linux (usually ~/.local/share/modal). Settings › About shows where it is and opens it.
| In the data folder | What it holds |
|---|---|
instances/ | Your instances. |
versions/, libraries/, assets/ | Minecraft versions, libraries and game assets, shared by all instances. |
runtimes/ | The Java runtimes Modal downloaded. |
servers/ | The servers you run on this PC. |
skins/ | Your skin library: PNG files and skins.json. |
modules/, module-data/ | The modules you added, and what each one stores. |
settings.json, accounts.json | Your settings and accounts. Secrets are encrypted. |
logs/modal.log | Modal’s own log, update checks included. |
Moving the data folder
Set the MODAL_HOME environment variable to the folder you want, then start Modal. To keep what you have, close Modal and move the old folder’s contents there first.
[Environment]::SetEnvironmentVariable("MODAL_HOME", "D:\Games\Modal", "User")MODAL_HOME="$HOME/Games/Modal" ./Modal-x86_64.AppImageIn short: Modal is written in C# with .NET 8 and Avalonia, and it’s open source under the GNU AGPL v3.
You need the .NET 8 SDK (opens in a new tab) or newer. Get the code from Modal on GitHub (opens in a new tab), then:
dotnet build Modal.sln # build everything
dotnet run --project src/Modal # run the launcherTo build the installer, the portable zip and the AppImage into artifacts/ on Windows:
powershell -ExecutionPolicy Bypass -File build/build.ps1| Folder | What’s in it |
|---|---|
src/Modal | The launcher app: views, view models, services and translations. |
src/Modal.Core | The engine, with no UI: downloads, versions, Java, the loaders, launching, sign-in, Modrinth and CurseForge, modules, servers and skins. |
src/Modal.UI | The shared theme, icons and fonts. |
src/Modal.Installer | ModalSetup.exe. |
tests/Modal.Smoke | End-to-end checks against the real services. |
tools/Modal.Snapshots | Renders every page and dialog to pictures, for review. |
Translating
Translations are in src/Modal/Languages/<locale>.tsv, one line per text: the English, a tab, then the translation. Lines starting with # are comments. {0} stands for a part that changes, and names like Modal, Modrinth, CurseForge and Minecraft stay as they are.
See CONTRIBUTING.md in the repository for how to send changes, and SECURITY.md for how to report a vulnerability privately.
My antivirus flagged Modal
Modal isn’t code-signed yet, and some antivirus apps flag new unsigned .NET programs by their heuristics. Restore the file and add an exclusion for Modal’s install folder.
The game won’t start
Choose Repair in the instance’s Settings tab, then play again. Modal re-checks the game files and reinstalls the mod loader. If you set your own Java or JVM arguments, clear them to let Modal choose.
The game crashes
Sign-in doesn’t work
Make sure you use the Microsoft account that owns Minecraft: Java Edition. Try Use my browser or Use another device instead of the sign-in window. Check that your PC’s clock is right, because sign-in fails when it’s far off.
CurseForge won’t download a file
Some authors don’t allow downloads through other apps. Modal opens the file’s page instead. Download the file there and drop it onto the instance. Most mods are on Modrinth too.
Modal says it’s offline
Modal keeps checking, and Discover loads by itself once you’re back online. Instances you’ve played before still start, because their files are already on your PC.
The AppImage won’t open
Make sure it’s executable (chmod +x), then run it from a terminal to see what it says. If your system can’t run AppImages, use the package for your distribution, or the .tar.gz.
A module stopped
Its row in Settings › Modules says why: it ran too long, used too much memory, or its code threw an error. Its log is under it. Turn it on again once the problem is fixed, or tell its author.
Where are the logs?
The game’s logs and crash reports are in each instance’s Logs tab. Modal’s own log is logs/modal.log in its data folder.
Stuck, found a bug, or made a module you want to show? Come and talk to us on Discord.
discord.gg/V8tdPSj54K (opens in a new tab) Bugs can also be reported on GitHub (opens in a new tab). Report a security problem privately, asSECURITY.md describes.