Download DontUseCommand — Minecraft Mods — MetaMods

DontUseCommand

Active

Downloads

0

Last update

1 year ago

Versions

1.13 — 1.21.1
Client and server
Forge
Utils

DontUseCommand

This is a compact addon created from just three Java files that handle core game events. Its main purpose is to block the execution of specific commands through configuration file editing. The mod will be particularly useful for pack creators who want to limit cheating possibilities among players.

After installing the mod, blocked commands become unavailable for use regardless of the game mode. Even players with operator privileges on the server won't be able to execute them. However, it's worth noting that if the mod is installed on a server, disabled commands can still be used through the server console.

Theoretically, the mod is compatible with versions 1.13.x to 1.21.x. NeoForge is not supported.

How to Use

After launching the game, a file called "DUC.txt" is automatically created in the config folder, as shown in the image below:

In this file, you need to write down the commands you want to disable. You can specify multiple commands without adding the "/" symbol at the beginning. For example:

tp

summon minecraft:zombie

gamemode creative

Tip: A simple line break is sufficient for each command. You can also specify subcommands, for example "gamemode creative" — this won't block other options like "gamemode survival".

To apply the changes, you need to restart the client or server, or use the /reload command.

Additional Information

For large servers, it's recommended to use LuckPerms instead of this mod. This solution is not intended for server use on a large scale. If you need to disable all commands at once rather than selecting them individually, you can consider the "No Cheat" mod, which provides such functionality.

Pack authors can change the displayed mod name to "[Dependency]xxx (Do Not Delete)".

Project members
canyuesama

canyuesama

Developer

Created: 3 Jan 2024

ID: 50070