addons制作教程第二期:创造地形
本帖最后由 him论坛号 于 2021-9-12 11:02 编辑亿年一更新的我又回来了,为什么更新那么慢,主要没地方学,这东西我是通过addons maker学到的,好了开始
在生存中,不管再稀有的地形,只要找到,就没兴趣了,比如我找到的那个大的离谱的繁茂洞穴,而且地形如果不富有的话也没啥意思,不用担心,今天,我来教你们写地形
首先,接着上期教程点我前往,我们在行为包创造一个叫做biomes的文件夹,在行为包文件里面创建一个叫(地形名字).biome.json的文件,在里面写入:
{
"format_version": "1.15.0",
"minecraft:biome": {
"description": {
"identifier": "ceshi"
},
"components": {
"minecraft:climate": {
"downfall": 0.99,
"snow_accumulation": [
0.0,
0.0
],
"temperature": 2.0,
"blue_spores": 0,
"red_spores": 0,
"white_ash": 0,
"ash": 0
},
"minecraft:overworld_height": {
"noise_type": "default"
},
"animal": {},
"monster": {},
"overworld": {},
"ceshi": {},
"minecraft:surface_parameters": {
"top_material": "minecraft:iron_block",
"mid_material": "minecraft:iron_block",
"foundation_material": "minecraft:diamond_block",
"sea_floor_material": "minecraft:diamond_block",
"sea_material": "minecraft:water",
"sea_floor_depth": 7
},
"minecraft:overworld_generation_rules": {
"hills_transformation": "cold_taiga_hills",
"river_transformation": "frozen_river",
"generate_for_climates": [
[
"cold",
10
],
[
"medium",
30
]
]
}
}
}
}
接下来,我们来讲解各个东西的用途
"format_version": "1.15.0":表示地形生成版本号,除非未来地形再一次更新,否则别改
"identifier": "ceshi:是地形名字(基岩版没有寻找地形的种子,我要它有何用)
"downfall": 0.99,:指地形生成的高度限制
"top_material": "minecraft:iron_block",
"mid_material": "minecraft:iron_block",
"foundation_material": "minecraft:diamond_block",
"sea_floor_material": "minecraft:diamond_block",
"sea_material": "minecraft:water",:指地形生成所附带的方块,然后没了
感谢楼主的干货分享 谢谢 啊这边建议写个梯子区块[贴吧_滑稽] 太棒了,[贴吧_真棒] 学会了!!!先去收藏夹呆着! 请问下地形生成高度限制是不是越大越高? 我是想修改代码使其在每个种子随机生成的山地群系超过250格,但是还是只有130多格(基岩手机版的) 有没有地狱生成主世界的地图和模组? 感谢分享教程
页: [1]