Add-On Documentation
  • Preparing search index...
  • The search index is not available
8Crafter's Server Utilities API
  • 8Crafter's Server Utilities API
  • @minecraft/server-gametest
  • spawnSimulatedPlayer

Function spawnSimulatedPlayer

  • spawnSimulatedPlayer(
        location: DimensionLocation,
        name: string,
        gameMode: GameMode,
    ): SimulatedPlayer
    Beta

    Parameters

    • location: DimensionLocation

      The location in which to spawn the player.

    • name: string

      The name for the player.

    • gameMode: GameMode

      The game mode for the player.

    Returns SimulatedPlayer

    Remarks

    Spawns a simulated player that isn't associated to a specific Test. You can use SimulatedPlayer.remove to remove the player from the world.

    This function can't be called in restricted-execution mode.

    Throws

    This function can throw errors.

    minecraftcommon.EngineError

    • Defined in ../../../../AppData/Roaming/.minecraft_bedrock/installations/Main Release/packageData/development_behavior_packs/DebugSticksAndScreens/node_modules/@minecraft/server-gametest/index.d.ts:2900

Settings

Member Visibility
Add-On Documentation
8Crafter's Server Utilities API
  • Loading...

Generated using TypeDoc