Mod
Command Actions
No reviews yet
Allows mcfunction files to be executed on various events
Provides a framework or library for other mods to use.
Quilt is a fork of the Fabric mod loader. Many Fabric mods are compatible with Quilt and vice versa.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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/functionsfolder - Add function files or folders containing function files with the proper event names
- Functions are detected either without an extension or with the
.mcfunctionextension. - All files in subdirectories are detected regardless of extension (or lack thereof)
- Subdirectories are recursed to find functions
- Functions are detected either without an extension or with the
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 totrueor1, if a number is nonzero, if an equation results in a nonzero answer, or if two values are equal or unequaldefine- define a replacement to be replaced later. Not recursiveundef- 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 playersserverNameisSinglePlayeronlinemotd
player-join- called when a player is placed into the server- All macros provided by
server-ready playerNameandplayeras shorthandplayerUUIDauthfirstJoin
- All macros provided by
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers