BlueGrass is a Minecraft mod that changes the color of grass blocks to blue. This mod is built using the Fabric modding platform and is intended for Minecraft version 1.20.2.
- Make sure you have Fabric Loader and Fabric API installed.
- Download the latest version of BlueGrass from the releases page.
- Place the downloaded
.jar
file into yourmods
folder inside your Minecraft directory.
Simply install the mod and launch the game. Grass blocks will appear blue in the game world.
-
Initialization: When the game starts, the
BlueGrassClient
class is triggered. This class registers a custom model for the grass block. -
Model Loading: The
UnbakedBlueGrassModel
class takes care of creating a custom model for the grass block. It specifies how the block should look before it's rendered. -
Model Baking: The
BakedBlueGrassModel
class finalizes the model, making it ready for rendering in the game.
-
Fabric API: A set of libraries that make it easier to modify Minecraft.
-
Model: In Minecraft, a model defines the shape and appearance of a block or item.
-
Unbaked Model: A model that is not yet ready for rendering. It's like a blueprint.
-
Baked Model: A model that is ready for rendering in the game.
-
Sprite: A 2D image that represents a texture.
-
Mesh: A collection of vertices, edges, and faces that defines the shape of a 3D object.
- Fabric Loader >= 0.14.22
- Minecraft ~1.20.2
- Java >= 17
- Fabric API
If you're starting from scratch, here's how to get everything set up to use this mod and even modify it yourself.
- Download and install the JDK. For this mod, you'll need JDK 17 or higher. You can download it from Oracle's website or use AdoptOpenJDK.
- Set up environment variables. If you're on Windows, you'll need to add Java to your PATH. Here's a tutorial for Windows.
You can use any text editor or IDE you're comfortable with. Here are two popular choices:
- Visual Studio Code: Lightweight and highly customizable.
- Sublime Text: Known for its speed and ease of use.
- IntelliJ IDEA: Robust and feature-rich, my choice.
- Download the Fabric Installer.
- Run the installer and select the "Client" tab.
- Choose the Minecraft version you want (in this case, 1.20.2).
- Click "Install."
- Download the Fabric API from CurseForge.
- Place the downloaded
.jar
file into yourmods
folder inside your Minecraft directory.
- Clone this repository to your local machine, or download the zip file.
- Open a terminal and navigate to the directory where you cloned the repository.
- Run the following commands to build and run the mod:
# Build the mod
gradlew.bat build
# Run the mod in a development environment
gradlew.bat runClient
- 1.0.0 Initial Release
- 1.1.0 Color provider for biome colors, also blueified tufts of grass
- 1.1.2 Refactoring and cleanup
This project is licensed under the MIT License. See the LICENSE file for details.