Skip to main content

A Minecraft bedrock content development framework.

Project description

Anvil Documentation

Python 10 Anvil Version OS Code style: black Ask DeepWiki

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.

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.10 or higher.
  • Windows OS: Anvil is designed specifically for Windows, as Minecraft Bedrock development is primarily done on this platform.

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 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.
  • --pbr: Adds Physically Based Rendering (PBR) dependencies for enhanced graphics.
  • --random_seed : Adds support for Random Seed Worlds, allowing for randomized world generation.
  • --addon: Marks the package as an addon, enforcing relevant constraints.

Example

anvil create my_ns awesome_project --scriptapi --pbr

This command will:

  • Create a folder named awesome_project in your working directory.
  • Set up the initial project structure, including JSON and Python files.

Project Structure

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

awesome_project/
├── 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.


Links & Resources

Projects made with Anvil

Enchantments Plus Dinosaurs Sugar Rush Beyond: Platformers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcanvil-0.9.6.6.tar.gz (329.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcanvil-0.9.6.6-py3-none-any.whl (346.0 kB view details)

Uploaded Python 3

File details

Details for the file mcanvil-0.9.6.6.tar.gz.

File metadata

  • Download URL: mcanvil-0.9.6.6.tar.gz
  • Upload date:
  • Size: 329.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcanvil-0.9.6.6.tar.gz
Algorithm Hash digest
SHA256 37ca9be456127e507143065037a7b8ac0b6473bce380c1e45849164940787284
MD5 b5e53144567821fe7ed429d75ec0178c
BLAKE2b-256 7682fe8825c38192f89c4a84774af968d0494a8dc12f602d8c82097867f9c605

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcanvil-0.9.6.6.tar.gz:

Publisher: publish_to_pypi.yaml on StarkTMA/Anvil

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcanvil-0.9.6.6-py3-none-any.whl.

File metadata

  • Download URL: mcanvil-0.9.6.6-py3-none-any.whl
  • Upload date:
  • Size: 346.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcanvil-0.9.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8516ad314d955bce0826b8569529ab96ad77ae442c61144e2d287d61409a702a
MD5 faef09db8aad8fe1de3e68dfb979b034
BLAKE2b-256 b7e571cfb73691e6daf25e4160076de5986c0f9cd4f67b420a5001163e1af186

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcanvil-0.9.6.6-py3-none-any.whl:

Publisher: publish_to_pypi.yaml on StarkTMA/Anvil

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page