> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Spawn Mob

> Spawn a MythicMob at a specific location.

The **Spawn Mob** action allows you to spawn any defined MythicMob into the world. You can control the mob's level, position, and even restrict its visibility to a specific player.

## Configuration

| Key                    | Type       | Description                                                             |
| :--------------------- | :--------- | :---------------------------------------------------------------------- |
| `mobName`              | `String`   | The internal name of the MythicMob to spawn. Supports placeholders.     |
| `level`                | `Double`   | The level of the spawned mob (default: 1.0).                            |
| `spawnLocation`        | `Location` | Where the mob should appear.                                            |
| `onlyVisibleForPlayer` | `Boolean`  | If true, the mob will only be seen by the player triggering the action. |

## Usage Examples

### Boss Spawn

Spawn a level 50 boss at the center of an arena when a player enters.

```yaml theme={null}
id: spawn_arena_boss
type: spawn_mythicmobs_mob
mobName: SkeletalKing
level: 50.0
spawnLocation:
  world: world
  x: 100
  y: 64
  z: 100
```

### Personal Objective

Spawn a mob that only the relevant player can see and interact with.

```yaml theme={null}
id: spawn_personal_phantom
type: spawn_mythicmobs_mob
mobName: QuestPhantom
onlyVisibleForPlayer: true
spawnLocation: "@self"
```
