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.5.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.5.0
File Size Uploaded Provenance Actions
mcward-1.5.0.tar.gz 2.4 MB Without provenance Details for mcward-1.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.4 MB

Release files / mcward-1.5.0.tar.gz

Download URL mcward-1.5.0.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
e70071dddaba90a6433ed71e42567851ffdd80d9118ea3ea57c5cf36333665ae
BLAKE2b-256 checksum
How to use checksums
84521d813afd3a8ac74e70e592abf92997440de60739924db1aa58411d13d15a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.5.0-py3-none-any.whl

Download URL mcward-1.5.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ff4ec3c1ed66ae444cc047f79abdc7e8e7f81e1b170bee90469838f9bee76bf
BLAKE2b-256 checksum
How to use checksums
cb6b568666a50293ec2d0e94b6e38448eb806d20f33c425b37e5611167e61809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.5.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