A Minecraft bedrock content development framework.
Project description
Anvil Documentation
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
minecraftis 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_projectin 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
- Documentation - Official docs for anvil.
- Bedrock Learn Portal - Official Minecraft Bedrock Documentation.
Projects made with Anvil
|
|
|
|
|
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcanvil-0.9.6.3.tar.gz.
File metadata
- Download URL: mcanvil-0.9.6.3.tar.gz
- Upload date:
- Size: 323.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
086f190d03967a22ea4a0baf73ab6b984b33677e31f3e5e21d011819010876b7
|
|
| MD5 |
7018d4c29f8a0d1e977f05000061d5a9
|
|
| BLAKE2b-256 |
beb13baa5fbfb4e01dc9dfdfe510c19bfc31ae271da623b1074bcbd502e93d4b
|
Provenance
The following attestation bundles were made for mcanvil-0.9.6.3.tar.gz:
Publisher:
publish_to_pypi.yaml on StarkTMA/Anvil
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcanvil-0.9.6.3.tar.gz -
Subject digest:
086f190d03967a22ea4a0baf73ab6b984b33677e31f3e5e21d011819010876b7 - Sigstore transparency entry: 938471450
- Sigstore integration time:
-
Permalink:
StarkTMA/Anvil@6e100e9ddbb96c6bf7d2e8ff8a64dbb7135a28d4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/StarkTMA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yaml@6e100e9ddbb96c6bf7d2e8ff8a64dbb7135a28d4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcanvil-0.9.6.3-py3-none-any.whl.
File metadata
- Download URL: mcanvil-0.9.6.3-py3-none-any.whl
- Upload date:
- Size: 340.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46d1a97d18dfb904a3525cf2bd5c497cf367e98953cdd861b00f2f9798fb42b6
|
|
| MD5 |
a6e29f97d5fa5a6d17edf5249e297ab9
|
|
| BLAKE2b-256 |
436b2db594383277b9911cf6ae321c5bc41be44926bd111914a6a5601ca427e7
|
Provenance
The following attestation bundles were made for mcanvil-0.9.6.3-py3-none-any.whl:
Publisher:
publish_to_pypi.yaml on StarkTMA/Anvil
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcanvil-0.9.6.3-py3-none-any.whl -
Subject digest:
46d1a97d18dfb904a3525cf2bd5c497cf367e98953cdd861b00f2f9798fb42b6 - Sigstore transparency entry: 938471457
- Sigstore integration time:
-
Permalink:
StarkTMA/Anvil@6e100e9ddbb96c6bf7d2e8ff8a64dbb7135a28d4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/StarkTMA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yaml@6e100e9ddbb96c6bf7d2e8ff8a64dbb7135a28d4 -
Trigger Event:
push
-
Statement type: