Minecraft Server List Locker is a simple Minecraft Fabric mod that locks down the multiplayer screen into a "kiosk mode."
It disables the ability to:
- Add, edit, or delete servers
- Use Direct Connect
- Interact with anything except a pre-configured server
It also removes or hides other UI elements like the Realms button on the main menu.
NOTE: This is the first time I am creating a Fabric Mod, so don't expect anything high level
This mod is designed for setups where you want to control or restrict which multiplayer server the user can connect to — for example in a school, lab, or public setting.
The mod is currently configured to only allow access to a personal server of mine:
mc.tville.stream
(private server, don't join)
If you'd like to use this mod for your own server:
- Change the hostname and label in
ServerListManagerMixin.java
:new ServerInfo("Your Server Name", "your.server.ip", ServerInfo.ServerType.OTHER)
- Recompile the mod with
./gradlew build
or via IntelliJ’s Gradle panel.
To build the mod from source:
./gradlew build
The output .jar file will be located in:
build/libs/
Place that file into your Minecraft mods folder.
- Minecraft 1.21.5
- Fabric Loader 0.14+
- Fabric API required
I don't think I will come back to this until it breaks, or I need to update it for our use