your current location:首页 > news>MC SUDO MINECRAFT

MC SUDO MINECRAFT

2024-12-12 09:16:16|Myriagame |source:minecraft skins

Overview

This module adds some linux/unix commands in the game, including Sudo, Echo, Cat, Export.

There are also some Linux/Unix mechanisms, such as Home folders and .bashrc files.

Don't imitate the cover to execute the RM -RF /* command!This is very dangerous unless you know what you are doing.

Use

parameter

Some commands support parameters, you can use the form of "_" and parameter.

variable

Some commands also support the use of variables. You can use the form of $ {variable name} to use variables. If you set variables, see Export section.

Dynamic variable

Dynamic variables will be re -calculated at each execution. The following are all dynamic variables:

HOME: The current user's home folder;

UUID: UUID of the current user;

Player: The user name of the current user;

EXP: The experience value of the current user;

Level: The level of the current user;

Health: The health of the current user;

max_health: the maximum health of the current user;

World: The current world name;

Location: The current position (format is x.y.z);

Server: The current server name;

MOTD: MOTD of the current server;

Time: The current time (UNIX timestamp).

Order

echo

usage:

/echo #output content 

cat

usage:

/cat #output file content 

write

usage:

/write  #Write the content of the file, it will cover the original content 

export

usage:

/export  #Set variable/export public_  #Set public variable variables, you need SUDO permissions 

APT

Why not my big Arch -based Pacman?

Install module from Modrinth.

Minecraft images

usage:

/APT Install  #Installation module/APT Search #search module 

bash

Let the system execute the BASH command (only support the GNU/Linux system)

usage:

/bash  

Warning: This command is very, very dangerous, and it may destroy your system.

And do not use this command to execute "RM -RF /*", ": () {: |: &} ;:", "Echo> /DEV /SDA" and other dangerous commands, unless you know what you are doing!

Special file

.bashrc

This file executes the command inside when the player logs in, the command is ";" to divide and the command is not/.

The file is located in Home//. Bashrc. Players can modify this file without SUDO permissions.