Skip to content

Commands

Connor Slade edited this page Jan 29, 2023 · 7 revisions

about

/util about

Shows the version of SigmaUtils you are running.

chat

/util chat

Lets you send messages to the chat. This is useful because it allows you to send messages that start with /, but on some modded servers this might not work.

dump

/util dump <packets | docs>

This command can't be used under normal circumstances. It is only accessible if you are running a debug build of SigmaUtils.

The packets mode will dump a file (config/SigmaUtils/dump/packets.txt) containing all the network packets in the game along with their intermediate names. This file is embedded in the jar and used to show readable packet names for the Packet Canceler module. You can see this file here.

The docs mode will make a new folder at (config/SigmaUtils/dump/docs) will add a file for each category (Interface, Rendering, Misc, Hud, Chat, Meta, Server) each contains basic documentation about the modules in that category. This command was used to generate the module documentation.

fotd

/util fotd

Gets the current day's FOTD, or fact of the day from fotd.connorcode.com. (a project I started many years ago). Because sending a request to the server takes a while this command is async and will not block the game. To learn more about async tasks in SigmaUtils read about the task command.

map

/util map <info | save>

The active map is either the map you are looking at in an item frame, or the map you are holding in your hand. If there is no active map neither of these commands will do anything.

The info mode will show the map ID, scale, and whether the map is locked.

The save mode will save the map as a PNG to your screenshots folder. The file will be map_<map id>.png, if there is already a file with that name the new file will be map_<map id>_<number>.png.

note

/util note [actionBar]

This command lets you put text in the chat, this is completely client side and does not send any packets to the server. If you set the actionBar argument to true the text will be displayed in the action bar instead of the chat.

resourcepack

/util resourcepack server <remove | install [hash]>

This command is used for interacting with server resource packs. You can use the remove mode to remove the current server resource pack if there is one. You can use the install mode to install a server resource pack with the given URL and optional hash.

run

/util run <delay <command> <delay> | repeat <command> <delay> [repeats] | formatted [cooldown]>

This is the most complicated of the commands. It is used to run commands after a delay, to repeat a command, or to do complex permutated formatting.

The delay mode will run the given command after the given delay. The delay is in milliseconds, so 1000 is 1 second.

The repeat mode will run the given command a given number of times with a given delay between each run. Again the delay is in milliseconds.

And now onto the most complicated mode, the formatted mode. The idea is you give it a formatter string like Hello %PLAYER_NAME% and it will send a message saying Hello to each player on the server. The permutation part is that if you have two formatters like %PLAYER_NAME% says hello to %PLAYER_NAME% it will send all the messages needed for every player to say hello to every player.

The list of formatters is as follows. Note: In formatters underscores and capitalization are ignored, so %player_name% and %PLAYERNAME% are the same.

  • %PLAYER_NAME% - The name of the player
  • %PLAYER_UUID% - The UUID of the player
  • %{list,item2}% - A list of items, it will simply go through each item

There are also modifiers that can be added to the formatters, which can be chained of course. Modifiers can be used like this %PLAYER_NAME:MODIFIER%, Ex: %PLAYER_NAME:LOWERCASE%. The list of modifiers is as follows.

  • TITLECASE - Capitalizes the first letter of each word
  • LOWERCASE - Makes all the letters lowercase
  • UPPERCASE - Makes all the letters uppercase
  • RANDOMCASE - Makes each letter either uppercase or lowercase randomly
  • ISONLINE - Will skip the permutation if the player is not online, can take a name or UUID

save

/util save

This command just saves the current config to disk. The config GUI automatically saves the config when you close it, but if you change the config with the config or toggle command you will need to use this command to save the changes.

task

/util task <kill <id> | list | stop <id>>

As mentioned in some of the previous commands SigmaUtils has a task system, which is used to run async tasks. With the list mode you can see all the tasks that are currently running. On the right side it has the task ID as well as buttons to kill or stop the task.

Stopping a task nicely asks the task to stop, but it might not stop right away, or at all. If you want to kill a task you can use the kill mode, which will immediately stop the task.

toggle

/util toggle

This command is used to toggle modules on and off. State can be true or false, and if you don't specify a state the module will be toggled to.

config

/util config

This command is used to change the config of a module. If you wanted to change the distance value on the Camera Distance module for example you would use the command /util config camera_distance distance 10. This command lets you change config values out of their expected ranges, so you can set the distance to be 100 if you wanted to.

Because this command has so many different values, refer to the module documentation for the list of options for each module.

Clone this wiki locally