Command Actions
⚪ Last updated 2022⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
🖼️ Gallery (1 images)
🔍 Analysis
- 👍 0.4% endorsement rate
- 🏆 #5 of 6 library mods in this game by downloads
📋 About This Mod
!(https://blob.jortage.com/blobs/5/d4d/5d4d14d96db2e2024d87cf5606cb7ce6421633a002e328947f85d210ba250ecb9f86de8df210dd031be2d4eafb0980494e7a1e8e99590a550abaa42d82768b9f)
Command Actions provides an interface to automatically run `.mcfunction` files at particular events. They are loaded from the filesystem on every event call, ensuring that they are as up to date as they can be.
## How to run functions? - Open / create the `.minecraft/config/command-actions/functions` folder - Add function files or folders containing function files with the proper event names - Functions are detected either without an extension or with the `.mcfunction` extension. - All files in subdirectories are detected regardless of extension (or lack thereof) - Subdirectories are recursed to find functions
## Current capabilities Some preprocessing occurs on the input. All preprocessing directives are preceded with a hash (`#`), and any line preceded with a hash that is not a preprocessor is marked as a comment.
Preprocessing directives: - `if`, `elif`, `else`, `endif` - check if a given macro evaluates to `true` or `1`, if a number is nonzero, if an equation results in a nonzero answer, or if two values are equal or unequal - `define` - define a replacement to be replaced later. Not recursive - `undef` - remove the definition of an already defined macro. This also works for system-provided macros.
## Current events
Built-in macros are listed, and all builtins (including those provided by other mods) are preceded with `C_`
- `server-ready` - called after the server reports it's ready for players
- - `serverName`
- - `isSinglePlayer`
- - `online`
- - `motd`
- `player-join` - called when a player is placed into the server
- - All macros provided by `server-ready`
- - `playerName` and `player` as shorthand
- - `playerUUID`
- - `auth`
- - `firstJoin`
📊 Mod Details
- Game
- Minecraft Mods
- Author
- sschr15
- Version
- 1.1.0
- Downloads
- 1,280
- Endorsements
- 5
- Category
- library
- Created
- 8/20/2022
- Updated
- 8/23/2022
- Game Versions
- 1.19.2
- Tags
- library, utility
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does Command Actions support?
The author lists 1.19.2. Other versions may work but are untested by the author.
What is the latest version of Command Actions?
Version 1.1.0, published 2022-08-23 with 1,280 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await
