> For the complete documentation index, see [llms.txt](https://enchantedmobs.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enchantedmobs.superiormc.cn/info/zhi-ling.md).

# Commands & Permissions

Main command: `/enchantedmobs`\
Aliases: `/em`, `/emobs`

All examples may use any alias. Console-only restrictions and required coordinates are noted below.

## Command permissions

Each subcommand uses `enchantedmobs.<subcommand>`:

| Command              | Permission                         |
| -------------------- | ---------------------------------- |
| `reload`             | `enchantedmobs.reload`             |
| `saveitem`           | `enchantedmobs.saveitem`           |
| `givesaveitem`       | `enchantedmobs.givesaveitem`       |
| `generateitemformat` | `enchantedmobs.generateitemformat` |
| `spawnmob`           | `enchantedmobs.spawnmob`           |
| `spawnrandommob`     | `enchantedmobs.spawnrandommob`     |
| `power`              | `enchantedmobs.power`              |
| `chunkpower`         | `enchantedmobs.chunkpower`         |

`enchantedmobs.nodify` is separate and controls powered-mob spawn notifications when `display-spawn-message` is enabled.

## `reload`

```
/enchantedmobs reload
```

Reloads general configuration, language files, saved items, player-power configuration, powers, and related runtime state.

A full restart is still recommended after replacing the plugin JAR, dependencies, or server software.

## `saveitem`

```
/enchantedmobs saveitem <id> [bukkit|itemformat]
```

Player only. Saves the item in the main hand under the specified ID.

* `bukkit` is the default serialization mode.
* `itemformat` uses the plugin's ItemFormat representation.

## `givesaveitem`

```
/enchantedmobs givesaveitem <id> [player] [amount]
```

Gives a saved item to yourself or another online player. Console usage must include a player.

## `generateitemformat`

```
/enchantedmobs generateitemformat
```

Player only. Exports the main-hand item to `generated-item-format.yml`.

## `spawnmob`

```
/enchantedmobs spawnmob <entityType> <level> <power...> [world x y z]
```

Spawns a mob with an explicit level and power list.

* Players may omit coordinates to use their current location.
* Console usage requires world and coordinates.
* Power IDs must match loaded files in `plugins/EnchantedMobs/powers`.

## `spawnrandommob`

```
/enchantedmobs spawnrandommob <level> <entityType> [world x y z]
```

Spawns a mob and generates powers from the specified level budget.

* Players may omit coordinates to use their current location.
* Console usage requires world and coordinates.

## `power`

```
/enchantedmobs power [player]
```

Displays your calculated player strength or the value for a specified online player.

## `chunkpower`

```
/enchantedmobs chunkpower
```

Player only. Displays the nearby average player strength used as a reference for automatic mob-level generation.
