Skip to content

Development Documentation

Overview

The AnvilCraft development documentation provides comprehensive technical guidance for mod developers and content creators, covering all aspects from add-on mod development to data pack customization.

Documentation Structure

This documentation is divided into four major sections:

1. Addon Development

Guides developers on creating addon mods based on AnvilCraft core, including:

  • Environment setup and toolchain configuration
  • Item and block creation and registration
  • Content management with Registrum/Registrate-style APIs
  • NeoForge mod development best practices

2. Datapack

Covers AnvilCraft datapack systems, now documenting 32 recipe types:

  • Core crafting recipes: item/block compress, crush, unpack
  • Special process recipes: stamping, bulging, squeezing, inject
  • Environment interaction recipes: in-world, cooking, super heating
  • Advanced recipes: time warp, multiblock, mob transform
  • Decorative recipes: jewel crafting, mineral fountain, block smear
  • Extended mechanisms: mesh, boiling, neutron irradiation, mass inject, anvil collision craft
  • System recipes: multiblock conversion, mob transform with item, multiple-to-one smithing, frost smithing, charger/discharger, energy weapon make

Each recipe type includes JSON structure details and practical examples.

3. KubeJS Integration

Provides complete integration guidance for AnvilCraft with KubeJS scripts, including:

  • Scripted implementations for all supported recipe schemas
  • KubeJS-style chain builder APIs
  • Utility methods and constructor variants
  • Practical examples and integration notes

4. AnvilLib Library

Complete documentation for all AnvilLib modules:

  • Config: Annotation-based configuration system
  • Integration: Mod compatibility integration framework
  • Network: Automatic packet registration
  • Recipe: In-world recipe system
  • Moveable Entity Block: Piston-movable block entities
  • Registrum: Fluent chain-style registration API

Whether you want to build feature-rich addon mods or customize gameplay through datapacks and scripts, this documentation provides the guidance and technical references you need.

Released under the CC-BY-NC-SA 4.0 License.