Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

Anvil Documentation

Ask DeepWiki

Python

Windows Linux macOS

Introduction to Anvil

Anvil is a comprehensive development toolkit designed for creating Minecraft Bedrock Edition content with ease and flexibility. Anvil aims to simplify the creation of custom Minecraft entities, blocks, commands, and more by leveraging Python and embracing a modular, component-based design philosophy.

Whether you're a seasoned Minecraft modder or just starting your journey in content development, Anvil provides you with the tools to make your creations come to life. Its features are designed to streamline workflows, enforce consistency, and offer a robust framework for handling the complexities of Minecraft content.

Community Contributions

Anvil is intended to grow as a community-driven project. Contributions are very much encouraged, whether that's fixing bugs, improving documentation, or adding support for new Minecraft Bedrock features. If you have ideas or want to help build the toolkit, we want you involved.

Key Features

  • Modular Development: Design blocks, entities, and features in a reusable manner to make your content scalable and easy to manage.
  • Schema Management: Automate JSON schema creation and validation for Minecraft packs to eliminate manual errors.
  • Report Generation: Generate detailed reports about the contents of your project, including entities, blocks, and other assets, for easy tracking and management.
  • Project Validation: Validate your project before submission to the Minecraft Marketplace, raising any errors or warnings that need to be addressed to meet Marketplace standards.
  • Multi-Format Packaging: Package your project into multiple formats, worlds, addons, templates and more.

Getting Started with Anvil

Prerequisites

To use Anvil, ensure you have the following installed:

  • Python 3.13 or higher.
  • Operating System: Windows, Linux, or macOS.

Installation

To install Anvil, you can use pip:

pip install mcanvil

This will install the latest version of Anvil along with its dependencies.

Creating Your First Project

To create a new Minecraft development project with Anvil, open your terminal and run the following command:

anvil init <namespace> <project_name> [options]

(You can also use the alias anvil create <namespace> <project_name> [options])

  • namespace: A unique identifier for your project. The namespace minecraft is reserved and cannot be used.
  • project_name: The name of your project.

Optional flags include:

  • --preview: Set up the project for Minecraft Preview.
  • --scriptapi: Adds support for Script API dependencies.
  • --addon: Marks the package as an addon, enforcing relevant constraints.
  • --vscode: Adds support for Visual Studio Code (generates workspace and launch configuration).

Example

anvil init my_ns awesome_project --scriptapi --vscode

This command will:

  • Create a folder named awesome_project in your working directory.
  • Set up the initial project structure, including JSON and Python files.
  • Generate .github/workflows/release.yml so version bumps in anvilconfig.json can build archives and publish a GitHub release.

Project Structure

Once you create your project, the structure will look like this:

awesome_project/
├── .github/
│   └── workflows/
│       └── release.yml
├── assets/
│   ├── bbmodels/
│   ├── particles/
│   ├── textures/
│   ├── sounds/
│   └── structures/
├── marketing/
├── output/
├── scripts/
│   ├── javascript/
│   └── python/
├── world/
├── .gitignore
├── CHANGELOG.md
├── anvilconfig.json
├── esbuild.js
├── package.json
└── tsconfig.json

Running Your Project

To test your project in Minecraft, navigate to your project folder and use the following command:

anvil run

This command will run your python script and generates the necessary files for your project.


Projects made with Anvil

Enchantments Plus Dinosaurs Sugar Rush Beyond: Platformers

Metadata

Release files for mcanvil 0.9.101

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

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for mcanvil 0.9.101
File Size Uploaded Provenance Actions
mcanvil-0.9.101.tar.gz 533.9 kB Without provenance Details for mcanvil-0.9.101.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / mcanvil-0.9.101.tar.gz

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL mcanvil-0.9.101.tar.gz
Size 533.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bca0dace6959fc91daf2750897aa645baf770c702fd0a5444f579d77d602062f
BLAKE2b-256 checksum
How to use checksums
09ca82d2170671d61fa2b02f57936aa844034fd7d2a1f0b406a1facad6d76b00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / mcanvil-0.9.101-py3-none-any.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL mcanvil-0.9.101-py3-none-any.whl
Size 587.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47491d437bf6afaf2d39a5b01d733f903dfce5c5c9e7c35db397d884f155c4e5
BLAKE2b-256 checksum
How to use checksums
33f3db211b897b324726787cba196c3a5c171f76278b8c46b69ac9171a13e27e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Security for mcanvil 0.9.101

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.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 0.9.98 2 files With provenance
  • Added 0.9.101 2 files Without provenance

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.

Release history Release notifications | RSS feed

This release

0.9.101 This release

2 release files Loss of provenance

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