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?
- Extend Functionality: Add new content without modifying the core mod
- Maintain Compatibility: Addon mods work well with the main AnvilCraft mod and other addons
- Community Contribution: Share your creativity and ideas with the AnvilCraft community
- Learning Opportunity: Gain deeper understanding of Minecraft mod development through practice
Prerequisites
Before you begin development, you need to:
- Be familiar with the Java programming language
- Understand vanilla Minecraft mechanics
- Grasp basic mod development concepts
- Have your development environment ready (JDK 21, IDE, etc.)
Development Overview
Basic Development
- Environment Setup - Configure your development environment
- Creating Your First Item - Learn basic item registration
- Creating Your First Block - Learn basic block registration
Advanced Development
- Entity Registration - Learn how to create custom entities
- Block Entity Development - Create blocks with logic
- Data Generators - Automatically generate game resources
- Configuration System - Create mod configuration files
- Recipe System Integration - Integrate with AnvilCraft recipe system
- Event System - Use the NeoForge event system
- Resources and Localization - Manage textures, models, and language files
- 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!