Skip to main content

Ward

CI   Modrinth   PyPI   Discord

Ward runs automated tests for Minecraft datapacks. Tests are plain .mcfunction files in a test/ folder.

demo

A test run with ward, results stream in live.

Ward comes in two parts:

🧩 Mod - Modrinth Adds the test commands (/assert, /await, /fail, /succeed, /log, /dummy) and a headless test server that streams results live.
🐍 CLI - PyPI Installs test servers and runs your packs on one or more Minecraft versions. Java and the mod are downloaded for you. Also ships a beet plugin that adds beet test.

Quickstart

Install the CLI (requires Python 3.14 or newer):

uv tool install mcward[cli]   # or: pip install mcward[cli]

Write a test in your datapack under data/<namespace>/test/:

# @max_ticks 20
summon minecraft:zombie ~ ~ ~ {Tags: ["target"]}
kill @e[tag=target]
await not entity @e[tag=target]

Ward finds your packs, picks matching versions, and runs the tests:

ward

Comments starting with @ are directives. They configure the test. await and assert are the test commands.

Documentation

Acknowledgements

Ward is heavily inspired by packtest by misode, and implements its full command set.

Metadata

Release files for mcward 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcward 1.6.0
File Size Uploaded Provenance Actions
mcward-1.6.0.tar.gz 2.4 MB Without provenance Details for mcward-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcward 1.6.0
File Interpreter ABI Platform Actions
mcward-1.6.0-py3-none-any.whl Python 3 none any Details for mcward-1.6.0-py3-none-any.whl

Total release size: 2.4 MB

Release files / mcward-1.6.0.tar.gz

Download URL mcward-1.6.0.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c725a0cfb9341655c73bb20e62c6b486ff56dc7c631689f35ceafe997a614124
BLAKE2b-256 checksum
How to use checksums
e80117663c7713fe474d11cb34267705d624d84231ba0a28164a22fdad209e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mcward-1.6.0-py3-none-any.whl

Download URL mcward-1.6.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2ec9d6bb354cd85d5cf4a6f625edd325afeb0b3e90e59350eb35fbef8f33de6
BLAKE2b-256 checksum
How to use checksums
2860a41c277f74eed5a7ab93878079f836e561a78749649dc935ebf32601ff39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for mcward 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page