Biome Squisher
Biome Squisher 是一种向原版 Minecraft 生物群系地图添加生物群系的创新新方法,其设计目标是非破坏性,即保留原版的生物群系分布、边界和相对稀有度。此外,Biome Squisher 的次要目标是能与多个生物群系模组良好配合;从此告别每个世界生成模组各自占据世界特定区域、且彼此之间仅有罕见交界线的局面。
生物群系注入的新解决方案
与其他解决添加新生物群系问题的方案不同,Biome Squisher 会将原版生物群系(或实际上此前已添加的模组生物群系)“挤开”,从而在生物群系空间中打开一个“空洞”,以便在该位置生成新的生物群系。这一过程以可确定性分层叠加的方式进行——这意味着即使多个模组在同一位置注入生物群系,它们都会被正确“挤压”,而不会出现某些生物群系不成比例地缩小或扩大的情况。
这种方案需要注意以下几点:
- 生物群系之间的边界得以保持
- 生物群系被挤压的方式旨在维持其相对面积不变——这意味着所有生物群系都会均匀地变得不那么常见
- 多个模组可以在同一目标位置注入生物群系,并且它们可以很好地共存
事实证明,这个过程远非那么简单,其中存在一些需要处理的陷阱。Biome Squisher 会处理这些边缘情况,并为你计算进行此类“挤压”所需的数学逻辑,提供一个基于数据包的 API,用于向生物群系地图中注入额外的生物群系。
如何使用?
Biome Squisher 完全由数据包控制。首先,模组会在 data/[namespace]/biomesquisher/series/[path].json 处定义一系列要在相关维度生物群系空间上执行的操作。其结构如下:
"levels": 要应用包含的挤压器的层级标识符列表。可以包含任何 Biome Squisher 可应用的层级——例如使用噪声生物群系源的任何层级"squishers": 要应用的挤压器标识符列表
系列引用的每个挤压器应放置在 data/[namespace]/biomesquisher/squisher/[path].json。其结构如下:
"biome": 要注入的生物群系标识符"injection": 定义生物群系将在何处以及如何注入。具有以下结构:"radius": 注入的大小范围,0表示“无”,1表示“整个生物群系空间”"temperature"、"humidify"、"continentalness"、"erosion"、"depth"和"humidity": 定义注入在不同轴上的行为。每个字段都有一个"type"字段,并接受以下形式之一:"type": "range": 定义注入该生物群系的范围;换句话说,该生物群系在此轴上不发生挤压。"weirdness"、"erosion"、"continentalness"和"depth"必须定义范围"min"和"max": 定义范围的端点
"type": "squish": 生物群系应在该维度中将其他生物群系挤开。"temperature"和"humidity"必须具有挤压行为"position": 在此轴上注入生物群系的位置,并将其他生物群系挤离"degree": (可选,默认为1)允许非方形注入。将此值设为大于或小于 1 的值,以使挤压打开的“空洞”在此轴上变大或变小,并在其他轴上相应缩小
"snap": (可选;默认为true)如果存在,生物群系注入是否应“吸附”到其半径内生物群系角落/边缘"relative": (可选;默认为温度起始值)当两个生物群系尝试在同一位置注入时,查询它们的相对值。具有以下结构:"temperature"、"humidity": 取值为"start"、"center"或"end"。在确定应将生物群系注入移动到打开的空洞哪一侧时,Biome Squisher 将使用此值;至少有一个值必须为非"center"
Biome Squisher 按字母顺序应用注册的 series,以确保生物群系注入与平台无关且具有确定性。
该模组提供了几个用于调试生物群系空间的有用命令:
/biomesquisher dump: 导出穿过生物群系空间的二维切片图像。接受 10 个参数- 前两个参数是用于图像的 x 轴和 y 轴的维度名称
- 接下来的四个参数是在剩余维度中进行切片的值
- 最后四个参数是 x 轴的最小值和最大值,后跟 y 轴的最小值和最大值
/biomesquisher serve: 管理允许浏览生物群系地图的 Web 服务器start: 在提供的端口启动服务器stop: 停止任何已启动的服务器
Biome Squisher
An innovative new approach to adding biomes to the vanilla Minecraft biome map, Biome Squisher is designed with the goal of being non-destructive, meaning that vanilla biome placement, boundaries, and relative rarities are preserved. Additionally, a secondary goal of Biome Squisher is to work well with multiple biome mods; gone are the days of each worldgen mod present having it's own regions of the world, with only rare borders between them.
A new solution to biome injection
Unlike other solutions to the problem of adding new biomes, Biome Squisher "squishes" the vanilla biomes (or, in fact, previously added modded biomes) out of the way to open a "hole" in the biome space which a biome can be generated within. This is done in a way that multiple biome injections can be deterministically layered on top of each other - ensuring that even if multiple mods inject biomes in the same location, they are all properly "squished" and no biomes get disproportionately shrunken or expanded.
Some things to note with this approach:
- borders between biomes are maintained
- biomes are squished in such a way that the relative area of biomes should not change - meaning that biomes uniformly become less common
- multiple mods can inject biomes at the same target location, and they will co-exist fine
It turns out that the process is not nearly that simple, and there's some pitfalls deal with. Biome Squisher accounts for these edge cases and does the math necessary for such "squishing" for you, providing a nice datapack-based API to inject extra biomes into the biome map.
So how do I use this?
Biome Squisher is controlled entirely by datapack. First, a mod defines a series which Biome Squisher will execute on the biome space
of the relevant dimension, at data/[namespace]/biomesquisher/series/[path].json. They have the following structure:
"levels": a list of identifiers of any levels to apply the contained squishers to. Can contain any levels Biome Squisher can apply to - so, any using a noise biome source"squishers": a list of identifiers of squishers to apply
Each squisher referenced by a series should be placed at data/[namespace]/biomesquisher/squisher/[path].json. They have the following structure:
"biome": the identifier of the biome to inject"injection": defines where and how the biome will be injected. Has the following structure:"radius": how large the injection should be, with0being "nothing" and1being "the entire biome space""temperature","humidify","continentalness","erosion","depth", and"humidity": define the injection's behaviour on different axes. Each has a"type"field and takes one of the following forms:"type": "range": defines a set range to inject the biome in; in other words, the biome does not squish on this axis."weirdness","erosion","continentalness"and"depth"must define a range"min"and"max": define the endpoints of the range
"type": "squish": the biome should squish other biomes out of the way in this dimension."temperature"and"humidity"must have squishing behaviour"position": the posiiton in this axis to inject the biome at, and squish other biomes away from"degree": (optional, defaults to1) allows for non-square injections. Make this value larger or smaller than 1 to make the "hole" opened up by the squishing larger or smaller on this axis, shrinking accordingly on other axes
"snap": (optional; defaults totrue) whether the biome injection should "snap" to a corner/edge between biomes within its radius, if one is present"relative": (optional; defaults to the start of temperature) when two biomes attempt to inject at the same location, their relative values are queried. Has the following structure:"temperature","humidity": one of"start","center", or"end". When resolving which side of an opened hole to move a biome injection to, Biome Squisher will use this; at least one value must be non-"center"
Biome Squisher applies registered series in alphabetical order, so that biome injection is platform-independent and
deterministic.
The mod provides several commands useful for debugging the biome space in general:
/biomesquisher dump: exports an image of a 2D slice through the biome space. Takes 10 arguments- the first two arguments are the names of the dimensions to use for the x and y axes of the image
- the next four arguments are the values in the remaining dimensions to slice at
- the final four arguments are the minimum and maximum values of the x axis, followed by the minimum and maximum values of the y axis
/biomesquisher serve: manage a web server that allows browsing through the biome mapstart: start the server at the provided portstop: stop any started server
下载 Biome Squisher
下载 Biome Squisher
下载 Biome Squisher
下载 Biome Squisher
下载 Biome Squisher
下载 Biome Squisher
下载 Biome Squisher
下载 Biome Squisher
下载 Biome Squisher
下载 Biome Squisher
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧