Commander
Commander is an extension of the vanilla data pack system in Minecraft, offering developers new capabilities for creating complex mechanics and events.
Main Features
The mod introduces an innovative event system that allows executing commands when specific conditions are met. For example, you can configure command execution after an entity has been killed by another entity:
{
"event": "commander:after_killed_by_other",
"commands": [
]
}
Flexible JSON Commands
The system supports flexible command execution through JSON format with various selectors:
{
"type": "commander:commands",
"selector": "commander:random_player",
"commands": [
"/cmd:explode ~ ~1 ~ 2"
]
}
New Commands
Specialized commands have been added to extend functionality:
cmd:arithmetica- mathematical calculations:/cmd:arithmetica "round(346.45, 1)"cmd:explode- creating explosions:/cmd:explode ~ ~ ~ 4
Advanced Expressions
Complex expressions with entity data access are supported:
minecraft:this_entity.isInWaterOrRain/say ${{ origin.x }}
Technical Features
All functions work exclusively on the server side, client-side capabilities are absent. The mod is in beta testing stage, so functionality may change and develop.
Important warning for modpack creators: Do not include the .commander folder in your builds!