← Back to Command Directory ← Back to Home

/test

Manages and executes GameTests — automated test structures that verify game mechanics work correctly. Originally only available in development environments, now accessible during normal gameplay.

Syntax

/test run <test> [<rotationSteps>] [<testsPerRow>]
/test runmultiple <test> [<amount>]
/test runall [<namespace>] [<rotationSteps>] [<testsPerRow>]
/test runfailed [<rotationSteps>] [<testsPerRow>]
/test runthis
/test resetclosest
/test resetall
/test locate <test>
/test pos
/test create <test> [<width>] [<height>] [<depth>]
/test clearall [<radius>]

Parameters

NameRequiredDescription
testVariesThe namespaced identifier of the test to run, locate, or create.
rotationStepsNoNumber of 90° clockwise rotations to apply (0–3).
testsPerRowNoHow many tests to place per row when running multiple.
amountNoNumber of times to run the same test.
namespaceNoRun all tests in this namespace.
width/height/depthNoDimensions for a new test structure.
radiusNoRadius around the player to clear test structures.

Examples

/test run minecraft:minecart_test
/test runall
/test clearall 50

Notes

Related Commands