Script API - v1.20.60
    Preparing search index...
    • Beta

      Parameters

      • testClassName: string

        Name of the class of tests this test should be a part of.

      • testName: string

        Name of this specific test.

      • testFunction: (arg: Test) => Promise<void>

        Implementation of the test function.

      Returns RegistrationBuilder

      Returns a RegistrationBuilder object where additional options for this test can be specified via builder methods.

      Registers a new GameTest function that is designed for asynchronous execution. This GameTest will become available in Minecraft via /gametest run [testClassName]:[testName].

      This function can't be called in read-only mode.