
Neoforge Command Blocker
Have you ever ran a server where you wanted to block commands from being used, whether it's from stopping players from using /seed or stopping OP's abusing commands like /tp or perhaps it's to prevent yourself from reaching into the temptation of going into creative mode. Well fret no more. This mod allows you to do just that.
How to use
On a server you can ban commands in the mod's config commandlocker-common.toml by typing into the square brackets the command you want to block (remember to use "") ie ["tp"]
or if you want to block multiple commands just add a ',' ie ["tp", "gamemode"].
Sub commands can be blocked instead of banning the full command for example ["tp", "teleport", "gamemode creative", "ban User"]
This mod can be used in a singleplayer world too with an in game config screen accessed via Mods → Command Locker → Config.
You do not need to restart your server for the config to be updated.
The commands will be blocked on saving the config file
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as commandlocker-1.0.0.jar — drop this file into the mods folder
- Download size: 8 KB
- Download link checked 23 Aug 2026 — working
These come from our own check of the pack file, not from the source page.