这是我为 Larion World Generation 模组制作的一个简单附加组件,它将陆地生成限制在一个可配置半径的圆形区域内。此圆内的陆地块形状在不同种子之间变化极大。温度带也经过调整以适配该圆形区域,北方为冰冻生物群系,南方为炎热生物群系。
仅修改了 Larion 中的两个文件即可实现这一功能——大陆和温度正弦波函数,后者被略微缩小并进行了封顶处理,以防止其重复出现。
此模组/数据包依赖于 Larion 才能正常工作,且必须在 Larion 之后加载。如果你使用的是 Fabric 模组版本,这应该会自动发生;但如果你使用的是数据包版本,你可能需要借助 Paxi 或类似工具来确保它们按正确顺序加载。
你可能会很难找到林地府邸——如果你的世界中没有生成任何林地府邸,你将不得不使用作弊模式自行创建一个!
如果你想让生成的区域变大或变小,操作很简单:只需编辑 data/laron/worldgen/density_function/overworld/circle.json 文件,并将那两个非常小的分数更改为其他数值,甚至可以让它们互不相同,从而生成椭圆形的世界。
这些数字对应于磁盘半径(每个世界轴一个)的 -1 次方,单位为方块。例如,如果你希望半径为 5000,你可以写入 0.0002,因为 5000^-1 = 0.0002。
你可以调整 temperature_delta.json 中的另一个小数值以适应新的大小。这个数值与温度曲线的“长度”(以方块为单位)相关,关系如下:number = length^-1 * 3.14。尝试调整它并使用像 World Preview 这样的模组来查看是否合适。
This is a simple add-on for my Larion World Generation mod that limits land
generation to a circle of a configurable radius. The shape of the
landmass(es) within this circle vary wildly between seeds. The temperature bands have also been altered to fit within the circle, with frozen biomes north and hot biomes south.
Only two files from Larion have been changed to make this possible - continents
and the temperature sinewave, which has been made slightly smaller and capped so
it doesn't repeat.
This mod/datapack depends on Larion to work and must be loaded after
Larion. If you use the Fabric mod versions, this should happen automagically,
but if you use the datapack versions, you may have to look into Paxi or similar
tools to get them to order correctly.
You may have a hard time finding woodland mansions - if your world has none,
you'll have to create one yourself with cheats!
If you want to make the generated area larger or smaller it's easy to do so, just edit the file data/laron/worldgen/density_function/overworld/circle.json file and change the two really small fractional numbers to something else, or even make them differ from each other for an ellipsis world.
The numbers correspond to the disk radius (one per world axis) in blocks to the power of -1. For
example if you want a radius of 5000, you can write 0.0002, because 5000^-1 = 0.0002.
You can adjust the other small number in temperature_delta.json to fit with the new size. This one relates to the "length" in blocks of the temperature curve like this: number = length^-1 * 3.14. Try adjusting it and using a mod like World Preview to see if it fits.
评论 0
登录后参与评分
还没有评论,来抢沙发吧