-
Notifications
You must be signed in to change notification settings - Fork 2
Minecraft Architecture
Just like a town has different neighborhoods and buildings, Minecraft has various packages neatly organized within its source folder. Each package plays a unique role in bringing the game to life.
One of these packages, called BabyCarrot-Mod/src/main
, is like a master builder. It takes charge of initiating the construction process for all the packages related to the Baby Carrots Mod. It's the starting point for making those adorable baby carrots appear in the game!
In the heart of the mod, we find the BabyCarrot-Mod/src/main
folder. Inside, there are two important parts: the java/babyCarrots/setup
package and the resources
package.
The resources
package is like a treasure filled with essential assets. Here, you'll discover the assets/babyCarrots
directory, which contains all the magic. Within this directory, you'll find the lang
, blockstates
, models
, and texture
packages.
Imagine stepping into the assets/babyCarrots/models
and assets/babyCarrots/textures
packages. They hold the secrets to making the baby carrots look delightful. Inside, you'll find folders named items
and blocks
that house the 3D models and textures for the baby carrots. These elements add that extra charm to your Minecraft experience.
Now, let's explore the java/babyCarrots/setup
package. This is where the important classes reside. Meet the BabyCarrotMod.java
class, which plays a crucial role. It extends the ClientSetup.java
class, the ModSetup.java
class, and the Registration class. Together, they work as a team, setting up the mod's functionality and ensuring it fits seamlessly into Minecraft.