Home›Java›Mods›DONTUSECOMMAND
DONTUSECOMMAND
ModsJava

DONTUSECOMMAND

Java mod listed for Minecraft 1.16–1.21. Downloads from the MC Java Mods app on Android.

by canyuesama · on CurseForge

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Forge only.

⬇ Download for 1.21–1.21.1⬇ Download for 1.17–1.20.6⬇ Download for 1.16–1.16.5
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Introduction

This is a small mod consisting of just three Java files (core events) designed to prevent players from using command events by modifying the configuration file. It is intended for use by integrated pack authors who do not want players to cheat.

Once this mod is installed, disabled commands cannot be used regardless of the player's game mode, and even server OP players cannot use them. However, if installed on a server, disabled commands can still be used through the command console.

Theoretically, it supports versions 1.13.x to 1.21.x. NeoForge is not supported

Usage

After entering the game, a file called "DUC.txt" will be automatically generated in the config folder, as shown in the image below:

 

Write down the command you want to disable in the file, which can be multiple commands without adding "/". For example:

 

tp

summon minecraft:zombie

gamemode creative

 

Tip: Line breaks are sufficient for each instruction, and sub instructions can be added, such as "gamemode creative", which will not disable other sub instructions such as "gamemode survival"

 

Restart your client or server, or use the/reload command to take effect.

 

Additional Information

If you have a large server, you can use LuckPerms instead. This mod is not suitable for server use. If you do not want to individually disable commands, you can use the "No Cheat" mod, which allows disabling all commands.

ModPack authors can change the mod's display name to "[Dependency]xxx (Do Not Delete)".

 undefined

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more