BiomeVisuals

一个允许服务器所有者覆盖发送给客户端的生物群系信息的插件。

资源图片
**仅支持 1.19** 此插件无需任何依赖项。 请访问 [Owen1212055/BiomeVisuals](https://github.com/owen1212055/biomevisuals) 获取高级文档。 需要帮助?请查看:[discord](https://discord.com/invite/apazk9tvkw) ![https://user-images.githubusercontent.com/23108066/147176650-2585395b-6ab0-4936-9815-6af428354689.png](https://user-images.githubusercontent.com/23108066/147176650-2585395b-6ab0-4936-9815-6af428354689.png) 文件导入 插件将尝试自动导入插件目录(**BiomeVisuals/overrides**)中定义的覆盖。 要添加覆盖,您必须首先定义正在覆盖的注册类型。以防将来添加任何新的覆盖。 目前支持的覆盖类型是:**worldgen/biome**。 然后,您将添加覆盖的 JSON 对象,如下所示: ``` { "key": "minecraft:plains", "override": {}, "condition": { "type": "", } } ``` **key** 代表要覆盖的项的键。 这通常代表某物的命名空间,在本例中是一个生物群系。 **override** 字段表示将替换原始对象的所有字段。 请参阅 [https://minecraft.fandom.com/wiki/Biome/JSON_format](https://minecraft.fandom.com/wiki/Biome/JSON_format) 了解可以替换的字段。 要转换颜色,我建议使用 [http://www.shodor.org/stella2java/rgbint.html](http://www.shodor.org/stella2java/rgbint.html)。 **condition** 字段表示一个谓词,未来可能会更改,但我的目标是能够为“节日”等分配条件。 当前有效的条件 ``` "condition": { "type": "biomevisuals:static", "value": true } ``` Value 将始终返回在 value 字段中定义的数值,在本例中是 ``true``。 ``` "condition": { "type": "biomevisuals:date_range", "min_date": "2021-12-20", "max_date": "2021-12-31", "ignore_year": true } ``` Value 将在当前日期在两个给定日期之间时返回 true。 忽略年份会忽略 min/max 日期字段中的年份,适用于重复日期。 JSON 示例 ``` { "minecraft:worldgen/biome": [ { "key": "minecraft:plains", "override": { "effects": { "sky_color": 1 } }, "condition": { "type": "biomevisuals:static", "value": true } }, { "key": "minecraft:forest", "override": { "effects": { "sky_color": 15138811, "foliage_color": 13434879, "grass_color": 13434879, "particle": { "options": { "type": "minecraft:snowflake" }, "probability": 0.01428 } } }, "condition": { "type": "biomevisuals:date_range", "min_date": "2021-12-20", "max_date": "2021-12-31", "ignore_year": true } } ] } ```