Script API - v1.21.90.25
    Preparing search index...

    Module @minecraft/server-gametest - v0.1.0

    The @minecraft/server-gametest module provides scriptable APIs for scaffolding and testing content experiences in Minecraft.

    Manifest Details

    {
    "module_name": "@minecraft/server-gametest",
    "version": "0.1.0"
    }

    @minecraft/common (Optional in Manifest Details)

    • Requires v1.0.0 or above
    {
    "module_name": "@minecraft/common",
    "version": "1.0.0"
    }

    mojang-minecraft

    • Requires v0.1.0 up to, but not including, v1.0.0
    {
    "module_name": "mojang-minecraft",
    "version": "0.1.0"
    }
    Caution

    mojang-minecraft - v0.1.0 is an old module. It is not recommended to use it.

    Install type definition for @minecraft/server-gametest module using npm:

    npm i @minecraft/server-gametest@0.1.0
    

    Classes

    SimulatedPlayer

    A simulated player can be used within GameTests to represent how a player moves throughout the world and to support testing of how entities and the environment will react to a player. This type derives much of its structure and methods from the @minecraft/server.Player type. Note that many types of events that may be available for entities more broadly, such as item use events, may not fire in the same capacity for simulated players.