Back to mods
mcsudo project artwork

Modrinth · Minecraft mod

mcsudo

Add Linux commands to Minecraft.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which mcsudo release matches 1.21.2?

Updated 2 years ago
Best match for your filters 0.0.4
Game version 1.21.2, 1.21.3
Loader Fabric, Quilt

mcsudo 0.0.4 targets 1.21.2, 1.21.3 with Fabric, Quilt. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.

Where it goes

Is mcsudo required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does mcsudo 0.0.4 need?

0.0.4 on 1.21.2. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install ctLibMod first. We found matching files for this game-version and loader setup.

ctLibMod Needed by mcsudo 0.0.4
required
Matching file found Matched file: 0.1.13

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add mcsudo without breaking your instance.

Built for mcsudo 0.0.4 on 1.21.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.0.4. It targets 1.21.2, 1.21.3 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install ctLibMod first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.0.4. It opens that exact file at the source.

About this project

What does mcsudo add?

Sudo

This module adds some commonly used Linux commands to the game, including sudo, echo, cat, and export.

Some Linux mechanisms have also been added, such as the home folder and the .bashrc file.

Instructions

Parameters

Some commands support parameters, you can use _ plus parameters.

Variables

Some commands also support the use of variables. You can use variables in the form of ${variable name}. For how to set variables, please see export.

Dynamic variables

Dynamic variables are recalculated on every execution, here are all dynamic variables:

  • home: the current user’s home folder
  • uuid: uuid of the current user
  • player: the username of the current user
  • exp: the current user’s experience value
  • level: the level of the current user
  • health: current user’s health
  • max_health: the current user’s maximum health
  • world: current world name
  • location: current location (format is x.y.z)
  • server: current server name
  • motd: motd of the current server
  • time: current time (Unix timestamp)

Order

echo

usage:

/echo <content> # Output content

cat

usage:

/cat <file path> # Output file content

write

usage:

/write <file path> <content> #Write file content, which will overwrite the original content.

export

usage:

/export <variable name> <variable value> #Set variables
/export public_<variable name> <variable value> # Set public variables, sudo permissions are required

apt

Install mods from Modrinth.

usage:

/apt install <slug> <version> # Install module
/apt search <slug> # Search module

image of apt command:
0.jpg

bash

Call the system to execute bash commands (only supports Linux).

usage:

/bash <command>

WARNNING:THIS COMMAND IS DANGEROUS. IT MAYBE DAMAGE YOUR SYSTEM.

neofetch

You know the command.

Special files

.bashrc

This file executes the commands inside when the player logs in. The commands are separated by ; and there is no / before the command.

The file is located in home/<player name>/.bashrc. Players can modify this file without sudo permissions.

Project description from Modrinth.

Pick your setup

mcsudo by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

22 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

mcsudo versions and loaders

1 of 4 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.