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.1.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.1.0
File Size Uploaded Provenance Actions
mcward-2.1.0.tar.gz 68.4 kB Without provenance Details for mcward-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 112.0 kB

Release files / mcward-2.1.0.tar.gz

Download URL mcward-2.1.0.tar.gz
Size 68.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5de055c236c2573c802ce32eef311b22bd81be38a36c78955c2b3e72ca87a36a
BLAKE2b-256 checksum
How to use checksums
5ec4bf17cb3fae1fae71ce4c800ceef3046e663c06102491963106d5366f8073
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.1.0-py3-none-any.whl

Download URL mcward-2.1.0-py3-none-any.whl
Size 43.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f646aa35a012db6dbc901134f9800b9dc812bfa606342a0d11ae0aa18788f2f9
BLAKE2b-256 checksum
How to use checksums
60b1470dfb980984380a1e37914065d62b72033852ff0d15642b7495dd639ccd
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.1.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