Download Command Actions — Minecraft Mods — MetaMods
Command Actions

Command Actions

Active

Downloads

0

Last update

3 years ago

Versions

1.19.2
Server
Quilt
Libraries
Utils

Command Actions

Created for ModFest: Singularity

The Command Actions mod enables automatic execution of .mcfunction files when specific game events occur. The system's unique feature is that files are loaded directly from the file system on every event call, ensuring they are always up to date.

Running Functions

To get started:

  • Open or create the .minecraft/config/command-actions/functions folder
  • Place function files or folders containing them using appropriate event names
  • The system recognizes files both with and without the .mcfunction extension
  • All files in subdirectories are detected regardless of extension
  • Function search is performed recursively through all nested folders

Functional Capabilities

Before execution, functions undergo preprocessing. All preprocessor directives begin with a hash symbol (#), while lines starting with this symbol that are not directives are treated as comments.

Available preprocessor directives:

  • if, elif, else, endif - check execution conditions
  • define - defines replacements for subsequent use
  • undef - removes previously defined macros, including system ones

Available Events

Built-in macros are marked with the C_ prefix and include both system macros and those provided by other mods.

Current event list:

  • server-ready - triggered after the server is ready for player connections
  • player-join - activated when a player joins the server

Each event provides its own set of macros with relevant server and player information.

Project members
sschr15

sschr15

Developer

Created: 2 Oct 2025

ID: 12691