描述
Painted Biomes 允许使用图像模板来设定世界的生物群系布局。
(有关基本操作的快速入门指南,请参阅本页底部。)
有两种不同的模板图像模式:
- 使用单个模板图像,可以通过三个配置选项在世界中定位它,包括坐标和对齐方式
- 为每个区域使用单独的模板图像。这些遵循 Minecraft 的 McRegion/Anvil 区域格式。这使得你理论上可以映射整个 Minecraft 世界的所有生物群系(前提是你有足够的时间制作模板,并且有足够的磁盘空间来存储这些图像)
模板重复
在单模板模式下,你可以选择性地启用模板重复功能。
- 它可以分别在四个方向(+x、-x、+z、-z)中单独启用或禁用。
- 当启用重复时,有两种模式可选:
- 重复整个模板图像
- 重复模板图像最边缘像素所对应的生物群系
注意: 只有当与某个角落相邻的两个边都启用了模板重复,并且使用的是相同的重复模式(无论是重复整个模板还是重复边缘像素的生物群系),该角落之外的区域才会由重复机制处理。
关于生物群系替换
- 在版本
0.4.0 之前,Painted Biomes 使用了生物群系 GenLayer 覆盖。不幸的是,这仅在极少数情况下有效(主要是主世界,并且仅与某些 WorldTypes/BiomeProviders 兼容,例如原版的 DEFAULT 以及来自 Biomes O' Plenty 模组的 BIOMESOP)。它也不支持按维度设置或模板。
- 从版本
0.4.0 开始,替换生物群系的主要方法是通过自定义的 BiomeProvider 包装器。这应该允许 Painted Biomes 在任何维度中使用。
- 注意: 如果你使用其他调整模组来替换
BiomeProvider(在 MCP 中曾称为 WorldChunkManager),则可能会出现不兼容的情况。如果遇到任何问题,请报告它们,我会看看是否可以修复。至少 Dimensional Control 模组应该可以正常工作,但我本人尚未亲自测试过。
- 你可以通过配置文件设置 Painted Biomes 生效的维度(
enabledInDimensions 设置,这是一个维度编号列表)。
- 在某些情况下,仅替换生物群系本身对地形生成没有任何影响,例如原版下界和末地环境在替换生物群系后看起来完全一样。
- 要启用基于生物群系的地形生成,现在还可以选择覆盖所使用的
ChunkProvider。
- 对于被覆盖的 ChunkProvider,有四个选项可用:
VANILLA_DEFAULT
VANILLA_FLAT
VANILLA_NETHER
VANILLA_END
- 注意: 如果你使用其他调整模组如 Dimensional Control,那么最好使用该模组来替换
ChunkProvider,并在 Painted Biomes 中禁用这些选项。此模组中的覆盖选项作为一种备用方案提供,以防你没有使用或无法使用 Dimensional Control 或其他类似的调整模组。
- 注意: 默认情况下,请将
B:overrideChunkProvider 选项保留为 false!它主要在你想要在下界或末地中基于生物群系进行自定义地形时有用。即便如此,请参阅上面的说明。
配置覆盖
- 自
0.4.0 版本起,配置可以通过几种不同的方式进行覆盖。
- 主配置文件位于
config/paintedbiomes/paintedbiomes.cfg
- 可以通过在
<worldsavedirectory>/paintedbiomes/paintedbiomes.cfg 放置配置文件来按*世界(per-world)*覆盖主配置
- 这些“主”配置可以按*维度(per-dimension)*进行覆盖,包括全局和按世界两种形式。
- 全局的按维度配置覆盖文件位于
config/paintedbiomes/paintedbiomes_dim<dimension number>.cfg(例如 paintedbiomes_dim0.cfg 或 paintedbiomes_dim-1.cfg)
- 按世界、按维度的配置覆盖文件位于
<worldsavedirectory>/paintedbiomes/paintedbiomes_dim<dimension number>.cfg
- 如果对应的覆盖配置文件不存在,它们不会被创建或填充。要生成这些文件并填充内容,请在正确的位置创建一个空文件。
- 并非所有值都可以按维度进行覆盖。创建一个空文件以查看哪些值是可用的。
- 基本上,
useGenLayer、enabledInDimensions 以及颜色定义仅在全局和按世界的主配置文件中可用。
必需的配置值
颜色
- 每个生物群系所使用的颜色可以在配置文件中设置。
B:useCustomColorsAsDefaults 的值控制那些尚未在配置文件中定义的生物群系默认分配的颜色。
- 如果设置为 true,则原版生物群系默认使用 Amidst 程序中使用的颜色。
- 它对模组生物群系无效,也不会在原版生物群系已被添加到配置文件后生效。
- 如果设置为 false,则原版生物群系默认被分配一个颜色,其中红色通道对应生物群系 ID。这也是所有其他(即模组)生物群系的默认行为。
- 由于该值默认为 true,如果你想对原版生物群系使用红色通道映射,只需将值改为 false,然后从配置文件中移除所有的 ColorToBiome 映射,让它们重新生成即可。
未上色区域
你可以配置在两种不同情况下,“未上色”区域会发生什么:
- 未被模板图像覆盖的区域:使用
I:unpaintedAreaBiomeID
- 位于模板图像内部但模板完全透明的区域:使用
I:templateUndefinedAreaBiomeID
- 若要使用常规地形生成中的生物群系,请将值设为
-1
- 若要使用预定义的生物群系,请将值设为你想要的生物群系 ID
- 这些值在读取配置文件时会被验证,如果生物群系 ID 无效,则该值会被重置为
-1
模板图像
-
模板图片必须保存为 PNG 格式
-
模板图像中的一个像素对应世界中的一个方块
-
模板图片需要保存在 config/paintedbiomes/templates/dim<维度编号>/ 目录下
- 例如,主世界使用
config/paintedbiomes/templates/dim0/,下界使用 config/paintedbiomes/templates/dim-1/ 等
-
位置在不同版本间有所变化。在 0.2.0 和 0.3.0 中,路径为 config/paintedbiomes/templates/
-
对于单模板图像模式,将图像保存为 biomes.png
-
对于按区域模板模式,将图像保存为 r.0.0.png、r.-1.-1.png 等,以对应区域文件的名称。
-
如果您启用了备用模板,请保存按以下命名方式命名的备用模板图片:
- 对于单模板模式:
biomes_alt_1.png、biomes_alt_2.png……
- 对于区域模式:
r.0.0_alt_1.png 等。
-
模板图片也可以针对每个世界进行覆盖/定义,只需将它们放置在 <worldsavedirectory>/paintedbiomes/templates/dim<维度编号>/ 目录下即可。
-
其工作原理是:如果目录 <worldsavedirectory>/paintedbiomes/templates/dim<维度编号>/ 存在(即使为空),则该目录会覆盖该维度的全局 config/paintedbiomes/templates/dim<维度编号>/ 目录。
为这个世界添加变化/随机性
从版本 0.5.0 开始,新增了三个配置选项,以增加世界的多样性:
useTemplateRandomRotation - 此选项将为每个模板图像应用随机旋转
useTemplateRandomFlipping - 此选项将随机翻转模板图像(即沿 x 和/或 z 轴进行镜像)
useAlternateTemplates 及其配套的 maxAlternateTemplates 选项。此选项将随机选择一个备用模板图像来使用。
这些操作产生的“随机结果”基于世界种子以及模板在世界中的相对位置(因为它们需要是确定性的,即在相同设置下的同一世界中保持一致)。这些选项在启用模板重复的单模板模式下可能最有用,但它们在所有模式下均可正常工作。
由于你很可能不希望看到因地形不匹配而产生的难看的模板边缘,因此模板重复和随机旋转最好与四周生物群系相同的模板一起使用。一个很好的例子是那些包含一个或多个岛屿(或者零个,尤其是配合备用模板使用时,可以使岛屿更稀有)的海洋中央的模板。
注意:如果你在单模板模式下使用大型模板图像,那么使用多个备用模板将显著增加将原始图像数据保留在内存中的内存需求。最好在实际游玩之前预先生成(特别是)这样的世界,这样模组就不必在游戏实际运行时被使用并消耗该内存。
模板对齐
在单模板图像操作模式下,可以使用 I:templateAlignmentMode、I:templateAlignmentX 和 I:templateAlignmentZ 值来设置模板图像在世界中的位置。
I:templateAlignmentMode=0: 模板图像将居中于设定的坐标
I:templateAlignmentMode=1: 模板图像的左上角将位于设定的坐标
I:templateAlignmentMode=2: 模板图像的右上角将位于设定的坐标
I:templateAlignmentMode=3: 模板图像的右下角将位于设定的坐标
I:templateAlignmentMode=4: 模板图像的左下角将位于设定的坐标
要在模板区域内使用常规地形生成的生物群系,请在图像中将这些区域完全留为透明,并将 I:templateUndefinedAreaBiomeID 配置值设置为 -1。
参考图像
你可以使用这张图片(基于 Amidst 的截图制作)作为在 Gimp 或你使用的其他图像编辑器中选择原版生物群系颜色的快速参考:
Amidst 生物群系颜色
如果你想使用按区域划分的模板模式,以下是区域文件布局的快速参考:
区域布局
快速入门指南
要让这个模组最基本的功能正常工作,你主要需要完成以下操作:
- 启动游戏以生成默认配置文件。
- 你可以在加载世界之前现在就编辑它。
- 每次加载世界时都会重新读取该文件,因此你可以直接退出到主菜单,编辑配置并加载新世界。
- 在你想要的维度中启用模组(通常是主世界,如果是这样,请在
I:enabledInDimensions 列表中添加 0)。
- 制作模板图片。更多细节和用于选择原版生物群系颜色的参考图片请参见上文。
- 假设你只需要一个模板图片,将该模板放置在
config/paintedbiomes/templates/dim0/biomes.png。注意所有文件名必须为小写!
- 将未定义和未绘制区域的生物群系 ID 设置为你希望处理这些区域的方式。
- 试试看!然后开始根据你的喜好进行调整。
一些提示
- 配置文件和模板图片会在服务器每次启动时重新加载,因此你不需要完全关闭并重启游戏(至少在单人游戏中……)。只需保存并退出到主菜单,进行配置和/或模板更改,然后重新加载世界或开始一个新世界即可。
- 如果你正在测试需要重新生成地形的内容,你不必删除/重建整个世界/存档。你只需从
<worldsavedirectory>/region/r.*(主世界)或 <worldsavedirectory>/DIM<number>/region/r.*(其他维度)中删除区域文件即可。这样你就可以保留游戏规则、世界出生点位置、世界时间、玩家位置/物品栏等。
制作按区域划分的模板图片
这里有一个小型实用程序,可自动将大型模板图片拆分为每个区域的模板图片:
仓库中的 README 文件解释了如何运行该程序。
Description
Painted Biomes allows using image templates for the biome layout of the world.
(See at the bottom of this page for a quick start quide for basic operation.)
There are two different template image modes:
- Use a single template image, which can be positioned in the world using three config options for the coordinates and the alignment
- Use separate template images per regions. These follow the Minecraft McRegion/Anvil regions. This allows you to theoretically map the entire Minecraft world's biomes (if you just had enough time to make the templates and enough disk space to store the images)
Template Repeating
In the Single Template mode you can optionally use template repeating.
- It can be enabled or disabled individually in all four directions (+x, -x, +z, -z).
- There are two modes when enabling repeating:
- Repeat the entire template image
- Repeat the biome from the edge-most pixel of the template image
Note: The areas of world beyond the corner of the template image are only handled by the repeating, if the two sides that are adjacent to that area also have template repeating enabled, and are using the same mode, be it repeat the entire template, or repeat the edge pixel's biome.
About the biome replacement
- Before release
0.4.0 Painted Biomes used a biome GenLayer override. Unfortunately that only worked in very limited number of cases (mostly overworld, and only with some WorldTypes/BiomeProviders like the vanilla DEFAULT and also BIOMESOP from the Biomes O' Plenty mod). It also did not allow per-dimension settings or templates.
- As of version
0.4.0 the main method of replacing the biomes is via a custom BiomeProvider wrapper. This should allow using Painted Biomes in any dimension.
- Note: If you are using other tweak mods for replacing the
BiomeProvider (formerly called WorldChunkManager in MCP), then there is a possibility for incompatibilities here. If you encounter any, please report them and I'll see if they can be fixed. At least the Dimensional Control mod should work for this, but I haven't personally tested it.
- You can set the dimensions you want Painted Biomes to work in via the configuration file (the
enabledInDimensions setting, which is a list of the dimension numbers).
- Replacing the biome in itself doesn't have any effect to the terrain generation in some cases, for example the vanilla Nether and End look exactly the same after replacing the biome.
- To enable biome-based terrain generation, there is now also the option to override the used
ChunkProvider.
- For the overridden ChunkProvider there are four options available:
VANILLA_DEFAULT
VANILLA_FLAT
VANILLA_NETHER
VANILLA_END
- Note: If you are using other tweak mods like Dimensional Control, it's then most likely best to use that mod for replacing the
ChunkProvider, and leave those options disabled in Painted Biomes. The override option in this mod is provided as sort of a backup, in case you aren't using or simply can't use Dimensional Control or some other similar tweak mod.
- Note: By default, leave the
B:overrideChunkProvider option to false! It is mostly of use if you want custom terrain based on the biomes in the Nether or the End. And even so, see the note above.
Configuration overriding
- As of the
0.4.0 release, the configurations can be overridden in a few different ways.
- The main configuration file is at
config/paintedbiomes/paintedbiomes.cfg
- The main configuration can be overridden per-world by placing a config file in
<worldsavedirectory>/paintedbiomes/paintedbiomes.cfg
- Those "main" configurations can be overridden per-dimension, both globally and per-world.
- Global per-dimension configuration overrides are at
config/paintedbiomes/paintedbiomes_dim<dimension number>.cfg (for example paintedbiomes_dim0.cfg or paintedbiomes_dim-1.cfg)
- Per-world, per-dimension configuration overrides are at
<worldsavedirectory>/paintedbiomes/paintedbiomes_dim<dimension number>.cfg
- The overriding config files are not created/filled if they don't exist in the first place. To get them populated, create an empty file in the correct location.
- Not all values can be overridden per-dimension. Create an empty file to get it populated to see which ones are available.
- Basically the
useGenLayer, enabledInDimensions and the color definitions are only available in the global and the per-world main configuration files.
Required configuration values
-
Since the 0.4.0 version, for the mod to actually do anything, you have to enable it in the dimensions where you want it to handle the biome overriding (or alternatively use the old method of operation via the useGenLayer config value, but this is not recommended in most cases due to the limitations of it).
-
To enable the mod in some dimensions, add the dimension ID (= number) of those dimensions to the enabledInDimensions list.
- For example, to enable biome overriding in the overworld (DIM 0), the End (DIM 1) and some mod dimension with an id of -100, it will look like this (only one number per line!):
Enabled in Dimensions
Colors
- The colors used for each biome can and should be set in the configuration file.
- The
B:useCustomColorsAsDefaults value controls what colors get assigned by default for biomes that aren't yet in the configuration file.
- If set to true, then vanilla biomes are by default assigned the colors used in the Amidst program.
- It does nothing for mod biomes, nor after the vanilla biomes are already added to the configuration file.
- If set to false, then the vanilla biomes are by default assigned a color so that the red channel is the biome ID. This is also what happens to all other (= mod) biomes by default.
- Since the value is true by default, if you want to use the red channel mapping for vanilla biomes, just change the value to false and then remove all those ColorToBiome mappings from the configuration file and let them be re-generated.
Unpainted areas
You can configure what happens to areas that are not "painted", in two different cases:
- Areas that are NOT covered by the template image(s): use
I:unpaintedAreaBiomeID
- Areas that are inside the template image, but the template is completely transparent: use
I:templateUndefinedAreaBiomeID
- To use the biome from the regular terrain generation, set the value to
-1
- To use a pre-defined biome, set the value to the biome ID you want
- The values are validated when the configuration is read, and if the biome ID is invalid, then the value gets reset to
-1
Template images
- The template images need to be saved as PNG
- One pixel in the template image corresponds to one block in world
- The template images need to be saved in the
config/paintedbiomes/templates/dim<dimension number>/ directory
- For example
config/paintedbiomes/templates/dim0/ for the overworld, or config/paintedbiomes/templates/dim-1/ for the Nether etc.
- The location has changed between versions. In
0.2.0 and 0.3.0 the location is config/paintedbiomes/templates/
- For the single template image mode, save the image as
biomes.png
- For the per-region templates mode, save the images as
r.0.0.png, r.-1.-1.png etc. corresponding to the region file names.
- If you have alternate templates enabled, then save the alternate template images named like this:
- For the single template mode:
biomes_alt_1.png, biomes_alt_2.png, ...
- For the region mode:
r.0.0_alt_1.png etc.
- The template images can also be overridden/defined per-world, by placing them in
<worldsavedirectory>/paintedbiomes/templates/dim<dimension number>/
- The way this works, is that if the directory
<worldsavedirectory>/paintedbiomes/templates/dim<dimension number>/ exists (even if it's empty!), then that will override the global config/paintedbiomes/templates/dim<dimension number>/ directory for that dimension.
Adding variation/randomness to the world
Starting from version 0.5.0, there are three new config options to add more variety to the world:
useTemplateRandomRotation - This option will apply a random rotation to each template image
useTemplateRandomFlipping - This option will randomly flip the template image (= mirror it along the x and/or z axis)
useAlternateTemplates plus the maxAlternateTemplates option that goes with it. This option will randomly select an alternate template image to use.
The "random result" of those actions is based on the world seed and the template's relative position in the world (since they need to be deterministic i.e. remain the same in the same world using the same settings). These options are probably most useful in the single template mode, when template repeating is enabled, but they will work in every mode.
Since you most likely don't want nasty looking template edges with mismatched terrain, the template repeating and random rotations are best used with templates that have the same biome around the edges. A good example of this would be templates that contain one or more islands (or why not zero, especially with alternate templates, to make the islands rarer) in the middle of an ocean.
Note: If you have a large template image for the single template mode, then using several alternate templates will significantly increase the memory requirements to hold the raw image data in memory. It might be best to pre-generate (especially) such worlds before they are actually played on, so that the mod doesn't have to be used and consume that memory while the game is actually being played.
Template alignment
In the single template image operation mode, the template image's position in the world can be set using the I:templateAlignmentMode, I:templateAlignmentX and I:templateAlignmentZ values.
I:templateAlignmentMode=0: The template image will be centered on the set coordinates
I:templateAlignmentMode=1: The template image's top left corner will be at the set coordinates
I:templateAlignmentMode=2: The template image's top right corner will be at the set coordinates
I:templateAlignmentMode=3: The template image's bottom right corner will be at the set coordinates
I:templateAlignmentMode=4: The template image's bottom left corner will be at the set coordinates
To use the biome from the regular terrain generation inside a template area, leave those areas in the image completely transparent and set the I:templateUndefinedAreaBiomeID config value to -1.
Reference images
You can use this image (made based on a screenshot from Amidst) as a quick reference for picking the colors for vanilla biomes in Gimp or whatever image editor you use:
Amidst Biome Colors
Here is a quick reference of how the region files are laid out, if you want to use the per-region template mode:
Regions Layout
Quick Start Guide
To get the most basic mode of this mod working, you mostly need to do the following things:
- Start the game to get a default configuration file generated.
- You can edit it now, before loading a world.
- It will get re-read every time you load a world, so you can just exit to main menu and edit it and load a new world.
- Enable the mod in the dimension(s) you want, (usually the overworld, so in that case add 0 to the list
I:enabledInDimensions
- Make a template image. See above for more details and a reference image to pick colors from for vanilla biomes.
- Assuming you want a single template image, place that template in
config/paintedbiomes/templates/dim0/biomes.png. Note that everything needs to be lower case!!
- Set the undefined and unpainted area biome IDs to how you want those areas to get handled.
- Try it out! And then start tweaking things to your liking.
Some tips
- The configuration file(s) and the template images are reloaded every time the server starts, so you don't have to close and restart the game completely (in single player at least...). Just save and exit to main menu, make your config and/or template changes and reload the world or start a new world.
- If you are testing something that requires re-generating the terrain, you don't have to delete/re-create the entire world/save. You can just delete the region files from
<worldsavedirectory>/region/r.* for the overworld, or from <worldsavedirectory>/DIM<number>/region/r.* for other dimensions. That way you keep your gamerules, the world spawn position, world time, your player position/inventory etc.
Making the per-region template images
There is a small utility program to automatically split large template images into the per-region template images available here:
The README file in the repository explains how to run the program.
评论 0
登录后参与评分
还没有评论,来抢沙发吧