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 mcward. 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. It downloads Java and the mod for you. The beet extra adds beet test to beet.

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:

mcward test

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

Documentation

Acknowledgements

Ward is heavily inspired by packtest by misode, and implements its full command set. Dummies are inspired by the fake players of Carpet.

Metadata

Release files for mcward 2.0.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 2.0.0
File Size Uploaded Provenance Actions
mcward-2.0.0.tar.gz 68.4 kB Without provenance Details for mcward-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 112.0 kB

Release files / mcward-2.0.0.tar.gz

Download URL mcward-2.0.0.tar.gz
Size 68.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c0a4ea13bd0cf9dadb3c2851223ba02a7b9927f3bcf13c7c754ef7598eb8a296
BLAKE2b-256 checksum
How to use checksums
9b2e7721ca4c507f71e1df7260706b8b624cb8366a06f726d510d32b78a953ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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-2.0.0-py3-none-any.whl

Download URL mcward-2.0.0-py3-none-any.whl
Size 43.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
866a29bf1d083e34b37d6217f6b6baacc92775c3a8e740bdc51c58ae1b405a76
BLAKE2b-256 checksum
How to use checksums
a01227c514102c69e7819486e2e79bd70f044da6eadd277f8c4ffae63682bc1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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 2.0.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