> ## 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

> Spawns a BTCMobs entity at a specified location.

The `spawn_btcmobs_mob` action spawns a specific BTCMob entity at a target location. You can define the mob type, level, and visibility.

## Configuration

<ResponseField name="spawn_btcmobs_mob" type="Map" required>
  Configuration for the spawn mob action.

  <Expandable title="Properties">
    <ResponseField name="mobName" type="String" required>
      The internal name of the BTCMob to spawn (as defined in BTCMobs configuration).
    </ResponseField>

    <ResponseField name="spawnLocation" type="Location" required>
      The location where the mob should be spawned.
    </ResponseField>

    <ResponseField name="level" type="Double">
      The level of the spawned mob. Default is `1.0`.
    </ResponseField>

    <ResponseField name="onlyVisibleForPlayer" type="Boolean">
      If `true`, the mob will only be visible to the target player. Default is `false`.
    </ResponseField>
  </Expandable>
</ResponseField>

## Examples

<CodeGroup>
  ```yaml Simple Spawn theme={null}
  spawn_btcmobs_mob:
    mobName: "SkeletonKing"
    spawnLocation: "0, 64, 0"
  ```

  ```yaml Detailed Spawn theme={null}
  spawn_btcmobs_mob:
    mobName: "EliteGuard"
    level: 5.0
    spawnLocation:
      x: 10
      y: 65
      z: 10
      world: "world"
    onlyVisibleForPlayer: true
  ```
</CodeGroup>
