DatapackJava

/test

Runs the GameTest framework's automated tests — used by mod/datapack developers to verify in-world behavior. Run a named test, run all, or clear test structures. Replaced parts of the old /gametest tooling.

Syntax

Parameters

action
literal
run / runclosest / runfailed / create / clearall / locate / stop / …
testoptional
test ID
Which GameTest to run/create.

Examples

  • Run the nearest GameTest structure.

  • Remove all GameTest structures.

Permission level

/test requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.