Skip to content

MoFlowers is a Minecraft mod that adds new flowers, shrubs and decorative blocks, with associated mechanics, biome generation, flower management API.

License

Notifications You must be signed in to change notification settings

bichal/MoFlowers

Repository files navigation

MoFlowers - Bring New Life to Your Minecraft World!

MoFlowers is a Minecraft mod that breathes new life into your adventures by adding a wide variety of unique flowers, berry bushes, and decorative blocks. Every plant is carefully designed to blend naturally into the world, offering new mechanics, vibrant biomes, and creative possibilities for builders and explorers alike.

HeaderTop

✨ Main Features

  • New Flowers & Bushes: Discover species like wildflowers with open/closed states, lavenders, calendulas, foxgloves, hebeas, and aquatic lilies...
  • Berry Bushes: Harvest sweet blue and glowing berries for food and attracting animals.
  • Flowers Chest: A chest that only accepts mod items for organizing your floral collection.
  • Decorative Blocks: Petals, pots, and tall variants for customization.
  • Biome Integration: New plants naturally generate in specific biomes.
  • Public API: Allows other mods or datapacks to register compatible flowers and blocks.
  • Custom Rendering & Loot: Unique drop system and visual effects.
  • Multilanguage Support: Available in English and Spanish.

📥 Installation

  1. Install Fabric Loader.
  2. Download the latest release from GitHub.
  3. Place the .jar file into your mods folder.

FooterTop

🧩 MoFlowers API Documentation

MoFlowers provides a simple and extensible API for modders and datapack creators to register, query, and interact with custom flowers and related blocks.

HeaderBottom

Accessing the API

Use the static access point to get the API instance

import net.bichal.moflowers.api.MoFlowersAPI;
import net.bichal.moflowers.api.IMoFlowersAPI;

IMoFlowersAPI api = MoFlowersAPI.getInstance();

Registering Flowers

You can register new flowers, blocks, or detailed flower data:

// Register a flower item
api.registerFlower(myFlowerItem);

// Register a flower block
api.registerFlowerBlock(myFlowerBlock);

// Register a custom flower with extra data
api.registerCustomFlower(new FlowerData.Builder(myItem, myBlock)
.defaultColor(0xFF00FF)
.tallVariant(true)
.biomeRestriction(myBiomeId)
.build());

Querying Flowers

Check if an item or block is a MoFlower

boolean isFlower = api.isMoFlower(item);
boolean isFlowerBlock = api.isMoFlowerBlock(block);

Flowers Chest

Access the special Flowers Chest block and item

Item flowersChestItem = api.getFlowersChestItem();
Block flowersChestBlock = api.getFlowersChestBlock();

Flower Registration Events

Subscribe to flower registration events for integration

api.registerFlowerRegistrationCallback(flowerData ->{
// Your code here (e.g., log, add custom behavior)
});

Extending MoFlowers

  • Add new flowers: Register your own flowers or blocks for full compatibility.
  • Custom recipes/tags: Use the provided tags for recipes, advancements, and more.
  • Localization: Add translations for your custom flowers using standard Minecraft lang files.
For more details, see the JavaDocs in the api package or explore the example usages in the mod source.

FooterBottom

This mod is licensed is All Rights Reserved.

About

MoFlowers is a Minecraft mod that adds new flowers, shrubs and decorative blocks, with associated mechanics, biome generation, flower management API.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages