Swift Adventure Lab Mod lets you write and execute automated game tests inside data packs using mcfunction files. The mod provides built-in testing commands to check game conditions, run asynchronous checks, and verify mechanics without manual testing. It works both inside regular worlds and in automated headless server environments.

Swift Adventure Lab Mod

Features:

  • Runs tests written directly inside the test folder of any data pack.
  • Adds asynchronous testing capabilities using the await keyword to delay checks across game ticks.
  • Spawns controllable dummy players that jump, sneak, sprint, mine, and attack during testing sequences.
  • Checks blocks, NBT data, entity selectors, predicates, scores, and recent chat messages.
  • Provides header directives such as @template, @timeout, @optional, and @dummy to set up testing scenes.
  • Supports headless server runs with automated exit codes and GitHub workflow annotations for continuous testing.

Commands:

  • /test runall: Runs all available tests across all loaded data packs.
  • /test runall <namespace>: Runs every test from a specified namespace.
  • /test run <test>: Runs a single test by its exact name.
  • /test runfailed: Re-runs all tests that failed during the previous check.
  • /test runthis: Runs the test nearest to your current position.
  • /test runthese: Runs all tests located within a 200-block radius.
  • /fail <text>: Immediately fails the current test and stops the function.
  • /succeed: Marks the current test as passed and stops the function.
  • /assert <condition>: Fails the test if the specified condition is false.
  • /assert not <condition>: Fails the test if the specified condition is true.
  • /await <condition>: Keeps checking a condition each tick until it succeeds or times out.
  • /await delay <time>: Pauses test execution for a specified amount of time.
  • /dummy <name> spawn: Spawns a fake player into the world for interaction tests.
  • /dummy <name> leave: Removes the fake player from the world.
  • /dummy <name> attack <entity>: Forces the fake player to attack a target mob.
  • /dummy <name> mine <pos>: Forces the fake player to mine a block at a target coordinate.

How to Use:

  1. Create a test folder inside your data pack namespace directory.
  2. Add an .mcfunction file inside the test folder with your test logic.
  3. Add directives like @template or @dummy at the top of the function file.
  4. Write assertion commands such as assert or await to check game states.
  5. Run /test runall in-game to execute your tests and review the output.

Screenshots:

Swift Adventure Lab Mod Screenshot 1
In-game chat log showing multiple automated test results and failure details
Swift Adventure Lab Mod Screenshot 2
Custom function script utilizing test commands to verify conditions during execution
Swift Adventure Lab Mod Screenshot 3
Function file configured with a structure template directive for testing environments

Swift Adventure Lab Mod Download Links

Filter by

For Minecraft 26.3

For Minecraft 26.2

For Minecraft 26.1.2, 26.1.1, 26.1

For Minecraft 1.21.11

For Minecraft 1.21.10, 1.21.9

For Minecraft 1.21.8, 1.21.7, 1.21.6

For Minecraft 1.21.5

For Minecraft 1.21.4

For Minecraft 1.21.1, 1.21

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

How do you usually discover new mods to try out?

13 responses · See the full results →