Ward
No reviews yet
A testing framework for Minecraft datapacks using mcfunction.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
Ward lets you write automated tests for your datapacks as plain .mcfunction files in a test/ folder.

A test run with ward, results stream in live.
Ward comes in two parts:
| 🧩 Mod - Modrinth | Adds the test commands (/assert, /await, /fail, /succeed, /dummy) and a headless test server that streams results live. |
| 🐍 CLI - PyPI | Installs test servers (Java and the mod are fetched for you) and runs your packs on one or several Minecraft versions. Also ships a beet plugin that adds beet test. |
Running tests
Write tests in your datapack under data/<namespace>/test/:
# @timeout 100
summon minecraft:armor_stand ~ ~ ~ {Tags: ["target"]}
assert entity @e[tag=target]
await not entity @e[tag=target]
Comment lines starting with @ are directives that
configure the test, and assert is one of the test commands.
In-Game
/test run <name>- Run a specific test/test runall [namespace]- Run all tests (optionally filtered by namespace)/test runfailed- Re-run previously failed tests/test runthis- Run the closest test/test runthese- Run all tests within 200 blocks
Console
Install then run the CLI:
uv tool install mcward[cli] # or: pip install mcward[cli]
ward # discovers your packs, picks compatible versions, runs the tests
Documentation
- CLI — the
mcwardCLI andbeet test - Dummies — fake players and the
/dummycommand - Directives —
@max_ticks,@environment, ... - Test commands —
/assert,/await,/fail,/succeed - Test environments — world setup/teardown around tests
Acknowledgements
Ward is heavily inspired by packtest by misode, and implements its full command set.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers