MoFlowers - 为你的我的世界世界注入新活力!
MoFlowers 是一款 Minecraft 模组,通过添加大量独特的花卉、浆果灌木和装饰性方块,为你的冒险之旅注入新的生机。每株植物都经过精心设计,能够自然地融入世界,为建造者和探索者提供全新的机制、绚丽的生物群系以及无限的创意可能。

✨ 主要特性
- 新花卉与灌木:发现具有开放/闭合状态的花丛、薰衣草、金盏花、毛地黄、海贝花和水生睡莲等物种...
- 浆果灌木:采集甜美的蓝色浆果和发光浆果作为食物或吸引动物。
- 花卉箱:一个仅接受模组物品的箱子,用于整理你的花卉收藏。
- 装饰性方块:花瓣、花盆和高版变体,供你自定义搭配。
- 生物群系集成:新植物会在特定生物群系中自然生成。
- 公共 API:允许其他模组或数据包注册兼容的花卉和方块。
- 自定义渲染与战利品:独特的掉落系统和视觉效果。
- 多语言支持:提供英文和西班牙文版本。
? 安装
- 安装 Fabric Loader。
- 从 GitHub 下载最新版本。
- 将
.jar 文件放入你的 mods 文件夹中。

? MoFlowers API 文档
MoFlowers 为模组开发者(Modders)和数据包创作者提供了一个简单且可扩展的 API,用于注册、查询以及与自定义花卉及相关方块进行交互。

访问 API
使用静态访问点获取 API 实例
import net.bichal.moflowers.api.MoFlowersAPI;
import net.bichal.moflowers.api.IMoFlowersAPI;
IMoFlowersAPI api = MoFlowersAPI.getInstance();
注册花卉
你可以注册新的花卉、方块或详细的花卉数据:
// 注册一个花卉物品
api.registerFlower(myFlowerItem);
// 注册一个花卉方块
api.registerFlowerBlock(myFlowerBlock);
// 注册带有额外数据的自定义花卉
api.registerCustomFlower(new FlowerData.Builder(myItem, myBlock)
.defaultColor(0xFF00FF)
.tallVariant(true)
.biomeRestriction(myBiomeId)
.build());
查询花卉
检查某个物品或方块是否属于 MoFlowers
boolean isFlower = api.isMoFlower(item);
boolean isFlowerBlock = api.isMoFlowerBlock(block);
花卉箱
访问特殊的花卉箱方块和物品
Item flowersChestItem = api.getFlowersChestItem();
Block flowersChestBlock = api.getFlowersChestBlock();
花卉注册事件
订阅花卉注册事件以实现集成
api.registerFlowerRegistrationCallback(flowerData ->{
// 在此处编写你的代码(例如:日志记录、添加自定义行为)
});
扩展 MoFlowers
- 添加新花卉: 注册你自己的花卉或方块以获得完全兼容性。
- 自定义配方/标签: 使用提供的标签用于配方、成就等。
- 本地化: 使用标准的 Minecraft 语言文件为你的自定义花卉添加翻译。
更多详细信息,请参阅 api 包中的 JavaDocs,或查看模组源代码中的示例用法。

本模组的许可证为 保留所有权利 (All Rights Reserved)。
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.

✨ 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
- Install Fabric Loader.
- Download the latest release from GitHub.
- Place the
.jar file into your mods folder.

? 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.

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.

This mod is licensed is All Rights Reserved.
评论 0
登录后参与评分
还没有评论,来抢沙发吧