Single Player Only
One-line summary (use this for the CurseForge "Summary" field) Removes every way out of singleplayer from the client — Multiplayer, Realms, Direct Connect and Open to LAN.
What it does
Once installed, your client only offers singleplayer:
- The Multiplayer and Minecraft Realms buttons are hidden on the title screen
- The multiplayer server list, Realms, direct connect and Open to LAN screens can never open — they bounce straight back to the title screen
- The "Open to LAN" button in the pause menu is hidden as well, so a singleplayer world is never exposed to the local network by accident
Good fit for:
- Modpacks that don't want players wandering into multiplayer screens
- Players who just want to play alone without the multiplayer buttons staring at them
- Shared / family / public machines where mis-clicks should be impossible
Supported versions
| Minecraft | Loader | Java | Status |
|---|---|---|---|
| 1.20.1 | Forge 47.x (built against 47.4.28) | 17 | Available |
| 1.21.1 | NeoForge 21.1.x (built against 21.1.267) | 21 | Available |
Pick the file that matches your loader — a jar built for the other loader simply won't load.
Installation
- Install Forge / NeoForge for the matching Minecraft version
- Drop the jar into
.minecraft/mods/(client side) - Launch the game — no configuration needed
Client-side only: servers don't need it, and you won't be kicked for missing it on a server.
How it works (for the compatibility-minded)
No Mixin, no coremod, no bytecode patching of vanilla classes — just two public loader events:
| Goal | Mechanism |
|---|---|
| Block multiplayer / Realms / direct connect / LAN screens | ScreenEvent.Opening — the screen is swapped for the title screen |
| Hide the Multiplayer / Realms buttons on the title screen | ScreenEvent.Init.Post — buttons are made invisible and inactive |
| Hide "Open to LAN" in the pause menu | Same as above |
Consequences:
- No injection points to fight over, so it coexists with almost everything
- No per-tick logic, no measurable performance cost
- Add or remove it at any time; it never touches world data
Compatibility notes
- Language independent: it matches translation keys first (
menu.multiplayer,menu.online,menu.shareToLan) and falls back to text matching (including Chinese "多人游戏" / "领域"), so it works in every locale - Vanilla entry points only: if another mod draws its own "server list" button, this mod leaves it alone — deliberately, to avoid breaking other mods
- Not an anti-cheat: it closes the client's UI entry points; it does not touch networking, and it is not meant to stop someone who goes out of their way to connect
FAQ
Does the server need it? No. It's client-side only.
Will it conflict with my other mods? No Mixin, no vanilla class edits, so the risk is very low. If a mod's screen gets blocked by mistake, please report it.
Why hide the buttons instead of removing them? Hiding keeps the vanilla title screen layout untouched, which looks more like vanilla.
How do I get multiplayer back?
Remove the jar from mods/. Nothing is left behind.
Is the 1.20.1 jar the same as the 1.21.1 one? No — they are separate Forge and NeoForge builds. Download the one matching your loader.
License & source
- License: MIT
- Source: https://github.com/adeahejshshsh/singleplayeronly
mainbranch → Forge 1.20.11.21.1-neoforgebranch → NeoForge 1.21.1
- Issues and PRs are welcome; redistributions must keep the MIT notice.