MoFlowers is an exciting mod for Minecraft that introduces a diverse range of flowers, berry bushes, and decorative elements, enhancing the game’s visual and interactive experience. This mod is designed to seamlessly integrate into the existing gameplay, providing players with new mechanics, vibrant biomes, and endless opportunities for creativity in both building and exploration.
🌼 Key Features
- Variety of Flora: Explore a range of species, including wildflowers that can bloom in different states, lavenders, calendulas, foxgloves, hebeas, and aquatic lilies.
- Berry Bushes: Grow and collect delicious blue and glowing berries that are not only tasty but also serve to attract wildlife.
- Floral Storage: Utilize a specialized chest designed exclusively for storing items related to the mod, helping you keep your floral collection organized.
- Decorative Elements: Customize your spaces with petals, pots, and taller plant variants.
- Natural Biome Generation: New plant species are designed to naturally spawn in selected biomes, enhancing your environment’s diversity.
- Public API: This feature allows other mods and data packs to register flowers and blocks compatible with MoFlowers.
- Unique Rendering and Loot Drops: Experience a specialized drop system along with distinctive visual effects.
- Multilingual Support: The mod is available in both English and Spanish, catering to a wider audience.
📥 How to Install
- First, download and set up Fabric Loader.
- Next, acquire the latest version of the mod from GitHub.
- Finally, move the
.jar
file into yourmods
folder to complete the installation.
🧩 API Documentation for MoFlowers
MoFlowers comes equipped with a straightforward, extensible API that allows modders and creators of data packs to register, query, and engage with custom flowers and related items.
Using the API
Access the API instance easily through a static access point.
import net.bichal.moflowers.api.MoFlowersAPI;
import net.bichal.moflowers.api.IMoFlowersAPI;
IMoFlowersAPI api = MoFlowersAPI.getInstance();
Registering New Flowers
It’s simple to register new flowers, blocks, or detailed flower attributes:
// For flower items
api.registerFlower(myFlowerItem);
// For flower blocks
api.registerFlowerBlock(myFlowerBlock);
// For custom flowers with additional properties
api.registerCustomFlower(new FlowerData.Builder(myItem, myBlock)
.defaultColor(0xFF00FF)
.tallVariant(true)
.biomeRestriction(myBiomeId)
.build());
Querying for Flowers
Determine if an item or block qualifies as a MoFlower:
boolean isFlower = api.isMoFlower(item);
boolean isFlowerBlock = api.isMoFlowerBlock(block);
Utilizing the Flowers Chest
Work with the special Flowers Chest block and item:
Item flowersChestItem = api.getFlowersChestItem();
Block flowersChestBlock = api.getFlowersChestBlock();
Handling Flower Registration Events
Subscribe to events linked to flower registration for further integration:
api.registerFlowerRegistrationCallback(flowerData ->{
// Your implementation here (e.g., logging or appending custom behavior)
});
Enhancing MoFlowers
- Create Your Own Flowers: Register personal flower species or blocks for full mod compatibility.
- Custom Recipes and Tags: Utilize the provided tags for crafting recipes, advancements, and additional uses.
- Translations: Implement translations for your custom flowers using standard Minecraft localization files.