Download CG Utils — Minecraft Mods — MetaMods

CG Utils

Active

Downloads

0

Last update

7 years ago
Client
Fabric
Quilt
Forge
Neoforge
Utils

CG Utils - Server Utilities for Minecraft

CG Utils mod is designed for Minecraft versions 1.12 and above, but it's important to note that its development has been discontinued. Many features of this mod are now available in the standard Minecraft 1.16+ version, so using more modern game versions is recommended.

Main Features

File Update Command

A special command allows server administrators to download files via HTTP protocol. This is particularly convenient for updating Minetweaker scripts without needing to restart the server.

Group Commands

The system allows creating command sets that execute sequentially. Each command group has individual permission settings and supports argument passing.

Sudo Command

The sudo function is designed to execute commands on behalf of the server. Especially useful in situations where a regular player or virtual player (for example, from Open Computers mod) needs to execute an administrative command.

IP Address Update

Automatic system for tracking server IP address through HTTP POST requests. An ideal solution for servers with dynamic IP addresses.

File Download Configuration

Download settings are saved in JSON format with the following parameters:

Parameter Description
name Unique name for in-game reference
saveLocation File save path relative to server
url URL of the file to download
group Group name for combining downloads

Example configuration for Tinkers script download:

{
 "name":"tinkers",
 "saveLocation":"scripts/",
 "url":"http://example.com/minetweaker_scripts/tinkers.zs",
 "group":"minetweaker"
}

Available download commands:

/update get tinkers
/update group minetweaker
/update url http://example.com/minetweaker_scripts/tinkers.zs scripts/

Group Commands Configuration

Command configuration in JSON format includes:

Parameter Description
name Unique command name
requiresop Whether admin rights are required
commands Array of commands to execute
group Group for combining commands

Use {{index}} for passing arguments and {{sender}} for sender's name.

Example command for recording coordinates:

{
    "name":"notecoords",
    "requiresop":false,
    "commands": [
        "tellraw {{sender}} {"text":"Recorded Coordinates"}",
        "tellraw {{sender}} {"text":"{{0}}"}",
        "tellraw {{sender}} {"text":"{{1}}"}",
        "tellraw {{sender}} {"text":"{{2}}"}"
    ]
}

When entering /notecoords 143 67 762, the chat will display:

Recorded Coordinates
143
67
762

IP Address Management

Uploading IP Address to Server

Configuration in cgutils/upload.json file:

{
"url": "Web server URL",
"formdata": [
        ["form data", "value"],
        ["form data 2", "value"]
    ]
}

Alternatively, you can use an external script:

{
"command": "shell command"
}

Retrieving IP Address

Settings in cgutils/download.json file are similar to upload, but external scripts are not supported.

{
"url": "Web server URL",
"formdata": [
        ["form data", "value"],
        ["form data 2", "value"]
    ]
}
Project members
ethanbrews

ethanbrews

Created: 28 Oct 2017

ID: 28057