数据包需保存在data里,使用kubujs放置在下面这个位置:
\kubejs\data\hexlands\worldgen\world_preset\hexlands.json
{
"dimensions": {
"minecraft:overworld": {
"type": "minecraft:overworld",
"generator": {
"type": "hexlands:hexlands", //标识使用的生成器
"settings": "minecraft:overworld",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:overworld"
},
"hex_settings": {
"biome_scale": 32, //生物群系采样率,数值越高,更多样化,源码默认32
"hex_size": 80, //单个群系格半径,源码默认40
"hex_border_threshold": 0.96, //群系格边界大小,数值越小,边界越大,范围0~1,源码默认0.92
"bottom_border": {
"min_height": 62, //边界底部到地表的高度,最小高度,源码默认62
"max_height": 66, //最大高度,源码默认66
"state": {
"Name": "minecraft:terracotta", //边界由什么方块组成
"Properties": {} //方块的方向等属性
}
}
}
}
},
"minecraft:the_nether": {
"type": "minecraft:the_nether",
"generator": {
"type": "hexlands:hexlands",
"settings": "minecraft:nether",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:nether"
},
"hex_settings": {
"biome_scale": 16, //源码默认4
"hex_size": 80, //源码默认40
"hex_border_threshold": 0.96, //源码默认0.92
"bottom_border": {
"min_height": 31, //边界底部到地表的高度,源码默认31
"max_height": 40, //源码默认40
"state": {
"Name": "minecraft:nether_bricks",
"Properties": {} //方块的方向等属性
}
},
"top_border": {
"min_height": 100, //边界顶部到地表的高度,最小高度,源码默认100
"max_height": 110, //最大高度,源码默认110
"state": {
"Name": "minecraft:nether_bricks",
"Properties": {}
}
}
}
}
},
"minecraft:the_end": {
"type": "minecraft:the_end",
"generator": {
"type": "hexlands:hexlands",
"settings": "minecraft:end",
"biome_source": {
"type": "minecraft:the_end"
},
"hex_settings": "hexlands:the_end"
}
}
}
}