Описание
## Commander
[](https://modrinth.com/mod/connector)
[](https://bsky.app/profile/constellation.melontini.me)
Checkout the wiki to learn more! https://constellation-mc.github.io/commander/
If you have a suggestion or a feature request, be sure to share it here: https://github.com/constellation-mc/commander/discussions/categories/ideas
### Quick Introduction
**Commander** is an extension of the vanilla data pack system.
It adds a new event system:
```json
{
"event": "commander:after_killed_by_other",
"commands": [
]
}
```
Flexible JSON commands:
```json
{
"type": "commander:commands",
"selector": "commander:random_player",
"commands": [
"/cmd:explode ~ ~1 ~ 2"
]
}
```
New `/` commands:
- `cmd:arithmetica`: `/cmd:arithmetica "round(346.45, 1)"`
- `cmd:explode`: `/cmd:explode ~ ~ ~ 4`
Support for advanced expressions with data access:
`minecraft:this_entity.isInWaterOrRain`
`/say ${{ origin.x }}`
There are no client-side features available, everything is done on the server.
***
Commander is still in beta, so things can change, develop, break.
Modpack creators, DO NOT INCLUDE the `.commander` folder!