For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-gametest/functions/spawnSimulatedPlayer.md.

Function: spawnSimulatedPlayer() experimental

player

spawnSimulatedPlayer(location, name, gameMode): SimulatedPlayer

World Mutation 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

生成一个未与特定 Test 关联的模拟玩家。 你可以使用 SimulatedPlayer.remove 将玩家移出世界。

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

Throws

This function can throw errors.

EngineError

同领域相关