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

Built distribution (wheel)

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

Total release size: 112.0 kB

Release files / mcward-2.2.0.tar.gz

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

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