Skip to content

Addon Development ​

Welcome to the AnvilCraft Addon Development documentation! This section will guide you through creating your own AnvilCraft addon mod.

What is an Addon Mod? ​

An addon mod is an extension built on top of the AnvilCraft core mod, allowing developers and creators to:

  • Add new items and blocks
  • Create custom recipes
  • Extend existing AnvilCraft mechanics
  • Integrate with other mods
  • Contribute new content to the AnvilCraft ecosystem

Why Create an Addon Mod? ​

  1. Extend Functionality: Add new content without modifying the core mod
  2. Maintain Compatibility: Addon mods work well with the main AnvilCraft mod and other addons
  3. Community Contribution: Share your creativity and ideas with the AnvilCraft community
  4. Learning Opportunity: Gain deeper understanding of Minecraft mod development through practice

Prerequisites ​

Before you begin development, you need to:

  1. Be familiar with the Java programming language
  2. Understand vanilla Minecraft mechanics
  3. Grasp basic mod development concepts
  4. Have your development environment ready (JDK 21, IDE, etc.)

Development Overview ​

Basic Development ​

  1. Environment Setup - Configure your development environment
  2. Creating Your First Item - Learn basic item registration
  3. Creating Your First Block - Learn basic block registration

Advanced Development ​

  1. Entity Registration - Learn how to create custom entities
  2. Block Entity Development - Create blocks with logic
  3. Data Generators - Automatically generate game resources
  4. Configuration System - Create mod configuration files
  5. Recipe System Integration - Integrate with AnvilCraft recipe system
  6. Event System - Use the NeoForge event system
  7. Resources and Localization - Manage textures, models, and language files
  8. Networking - Implement client-server communication

Tech Stack ​

AnvilCraft addon mod development primarily uses the following technologies:

  • Java 21 - Programming language
  • Gradle - Build tool
  • Registrum - Content registration system (Registration API provided by AnvilLib, improved from Registrate)
  • NeoForge - Mod loader API
  • Lombok - Simplifies Java code writing

Best Practices ​

  • Follow AnvilCraft's design language and style
  • Maintain consistency with vanilla Minecraft
  • Make full use of the APIs provided by AnvilCraft
  • Write clear documentation and comments
  • Perform thorough testing

Ready to start your addon development journey? Let's begin with Environment Setup!

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