Astral Tech Mod
NeoForge • Minecraft 1.21.1
Astral Tech Mod is a study project aimed at understanding and applying, in practice, the fundamental concepts of mod development in Java for Minecraft 1.21.1 with NeoForge. The focus is on:
- Client–Server Architecture
- 3D Object Rendering
- Event Handling in Java
-
Client–Server Architecture
- Understand how the game synchronizes state between server and client.
- Study network packets: data serialization and safe information transfer.
- Technical concept: thread‑safe — ensuring that multiple threads don’t corrupt shared data.
-
Event Handling
- Use annotations like
@SubscribeEventto react to game events (block registration, player clicks, etc.). - Design patterns: Observer — components “observe” events without tight coupling.
- Use annotations like
-
3D Model Rendering (WIP)
- Configuring custom models via
.objfiles or NeoForge JSON. - Applying textures and UV mapping for correct mesh texturing.
- Difference between static rendering (blocks) and dynamic rendering (moving block entities).
- Configuring custom models via
-
Graphical User Interfaces (GUI) (Not implemented yet)
- Building in-game control screens using NeoForge’s native system.
- Technical concept: GUI lifecycle — initialization, update, and disposal of visual components.
- Java 21
- NeoForge 1.21.1
- Gradle
- IDE: IntelliJ IDEA
- Install Minecraft 1.21.1 with NeoForge 1.21.1.
- Clone this repository:
git clone https://github.com/renanosx/astral-tech-mod.git
- Execute commands on Intellij
./gradlew runData # Generates JSON files for data-driven assets
./gradlew build # Compile the project
./gradlew runClient # Run in client for testing
./gradlew runServer # Run a local server for testing`