
本模组是 superfluke 等人开发的原版 Hex Lands 模组的更新与重写版本。它已完全重写以适配新的 Minecraft 版本。
特性
- 添加两种世界类型预设:“HexLands” 和 “HexLands (Overworld)”。前者在主世界和下界均启用六边形地形生成,后者仅在主世界启用。
- 每个六边形格子包含单一生物群系。不同类型的六边形格子之间由墙壁隔开。
- 自动兼容向主世界或其他世界生成添加生物群系的模组。
- 通过数据包提供多种世界自定义选项。
配置(数据包 - 1.19.x - 1.20.x)
注意: 由于 Mojang 对世界生成的更改,配置方式会因你使用的 Minecraft 版本而异!请参阅此文档的 1.18.x、1.17.x 或 1.16.x 版本。
由于 Mojang 的变更,世界现在由 世界预设 指定。HexLands 可以通过添加新的世界预设进行自定义。默认的 HexLands 世界预设位于此处:HexLands 和 HexLands (仅主世界)。它们都使用了 hexlands:hexlands 区块生成器。
要为特定维度使用 HexLands 世界,你必须更改 generator 字段。它必须是一个包含以下属性的对象:
type 是一个字符串,用于标识要使用的生成器。应为 hexlands:hexlands。
settings 是 噪声设置,用于该维度。
biome_source 是生物群系源,如同原版一样。它可以是一个已知的预设,如 "minecraft:overworld" 或 "minecraft:nether",也可以是一个遵循原版生物群系源格式的 JSON 对象。
hex_settings 是一个对象,包含定义六边形网格工作原理的参数。它可以是一个已知预设,必须是 "hexlands:overworld"、"hexlands:nether" 或 "hexlands:the_end" 之一;也可以是一个包含以下字段的对象:
biome_scale(默认值:8)是采样生物群系以创建六边形的比例。较高的值会产生更随机的生物群系布局。
hex_size(默认值:40)是单个六边形的大小。
hex_border_threshold(默认值:0.92)是一个介于 0 和 1 之间的数字,表示六边形应被边框覆盖的比例。较大的值会导致边框更细。
top_border 和 bottom_border 都是边框设置,用于定义如何构建世界的顶部和底部边框。六边形之间的边框由底部边框、空气和顶部边框组成。如果未提供,该部分边框将完全由空气构成。如果提供,则必须包含以下字段:
min_height: 边框的最小高度。
max_height: 边框的最大高度。
state: 作为边框状态的方块状态。如同原版格式,这必须是一个包含 Name 和 Properties 字段的对象。Properties 必须是一个对象,包含所有可能的方块状态属性(键值对),且 Name 字段必须是方块名称。
示例
下面是一个可以在世界预设的 generator 字段中使用的示例对象。
// Below is an example object which can be used in the `generator` field of a world preset.
{
"type": "hexlands:hexlands",
"settings": "minecraft:overworld",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:overworld"
},
"hex_settings": "hexlands:overworld"
}

This mod is an updated and rewritten version of the original Hex Lands mod by superfluke, et. al. It has been rewritten completely for new Minecraft versions.
Features
- Adds two world type presets: "HexLands", and "HexLands (Overworld)". The former which enables hexagonal terrain generation in both the overworld and the nether, the latter which only enables it in the overworld.
- Each hex contains a single biome. Hexes of different types are bordered by walls.
- Automatic compatibility with mods that add biomes to the overworld or other world generation.
- Many options for world customization via data packs.
Configuration (Data Packs - 1.19.x - 1.20.x)
Note: Due to Mojang's changes to world generation, configuration will be different depending on which Minecraft version you are using! See the 1.18.x, 1.17.x, or 1.16.x versions of this documentation instead.
Worlds are now specified by World Presets due to a change from Mojang. HexLands can be customized by adding a new world preset. The default HexLands world presets can be found here, for HexLands, and HexLands (Overworld Only). They both make use of the hexlands:hexlands chunk generator.
In order to use a HexLands world for a specific dimension, you must change the generator field. It must be an object with the following properties:
type is a string identifying what generator to use. It should be hexlands:hexlands.
settings is a Noise Settings used by the dimension.
biome_source is the biome source, as in vanilla. It can be a known preset, such as "minecraft:overworld", or "minecraft:nether", or it can be a JSON object following the vanilla biome source format.
hex_settings is an object with parameters defining how the hexagonal grid works. It can either be a known preset, which must be one of "hexlands:overworld", "hexlands:nether", or "hexlands:the_end", or it can be an object with the following fields:
biome_scale (Default: 8) is the scale at which biomes are sampled to create hexes. Higher values create more random biome layouts.
hex_size (Default: 40) is the size of an individual hex.
hex_border_threshold (Default: 0.92) is a number between 0 and 1 representing how much of a hex should be covered by the border. Larger values will lead to thinner borders.
top_border and bottom_border are both border settings which define how the top and bottom borders of the world are built. The borders between hexes consist of a bottom border, air, and a top border. If not present, this section of the border will consist entirely of air. If present, it must have the following fields:
min_height: The minimum height of the border.
max_height: The maximum height of the border.
state: A block state to generate as the border state. As in vanilla formats, this must be an object with a Name and Properties field. The Properties must be an object containing all possible block state properties in key-value pairs, and the Name field must be the name of the block.
Example
Below is an example object which can be used in the generator field of a world preset.
// Below is an example object which can be used in the `generator` field of a world preset.
{
"type": "hexlands:hexlands",
"settings": "minecraft:overworld",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:overworld"
},
"hex_settings": "hexlands:overworld"
}
评论 0
登录后参与评分
还没有评论,来抢沙发吧