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.
.jar file into your mods folder.
MoFlowers provides a simple and extensible API for modders and datapack creators to register, query, and interact with custom flowers and related blocks.
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();
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());
Check if an item or block is a MoFlower
boolean isFlower = api.isMoFlower(item);
boolean isFlowerBlock = api.isMoFlowerBlock(block);
Access the special Flowers Chest block and item
Item flowersChestItem = api.getFlowersChestItem();
Block flowersChestBlock = api.getFlowersChestBlock();
Subscribe to flower registration events for integration
api.registerFlowerRegistrationCallback(flowerData ->{
// Your code here (e.g., log, add custom behavior)
});
For more details, see the JavaDocs in the api package or explore the example usages in the mod source.
This mod is licensed is All Rights Reserved.