本帖最后由 EmptyLava 于 2021-10-17 23:25 编辑
我是想在世界中添加一个维度,我数据包的文件夹是这样的:
维度类型:
维度的代码是这样的:
维度类型的代码是这样的:
可是开游戏变成了这样:
我用的版本是1.17,有没有大佬来解答一下?拜托啦~
我是想在世界中添加一个维度,我数据包的文件夹是这样的:


维度的代码是这样的:
{ "type": ":xiaoelaila", "generator": { "type":"minecraft:noise", "seed": 0, "settings": { "noise_caves_enabled":true, "noodle_caves_enabled":true, "deepslate_enabled":false, "ore_veins_enabled":true, "aquifers_enabled":true, "min_surface_level":132, "bedrock_roof_position":10020131, "bedrock_floor_position":-128, "sea_level":64, "disable_mob_generation":false, "structures":{ "stronghold":{ "distance":4096, "count":1203, "spread":1242 } "structures":{ "minecraft:bastion_remnant":{ "spacing":1023, "separation":1022, "salt":1232 }, "minecraft:mansion":{ "spacing":1023, "separation":1022, "salt":1232 }, "minecraft:mansion":{ "spacing":1023, "separation":1022, "salt":1232 }, "minecraft:mansion":{ "spacing":1023, "separation":1022, "salt":1232 } } }, "noise":{ "top_slide":{ "target":10, "size":1023, "offset":293 } "bottom_slide":{ "target":-124, "size":1275, "offset":-20 } "sampling":{ "xz_scale":1232.0, "xz_factor":129.0, "y_scale":291.0, "y_factor":9231.0 } "size_vertical":3, "size_horizontal":2, "height":146, "min_y":-1024, "density_factor":102.0, "density_offset":0.0, "random_density_offset":true, "simplex_surface_noise":false, "island_noise_override":false, "amplified":true } "default_block":{ "Name":"minecraft:stone_bricks", } "default_fluid":{ "Name":"minecraft:lava" } } "biome_source": { "seed":0, "type": "minecraft:multi_noise", "biomes":[ { "biome":"minecraft:mountains", "parameters":{ "altitude":1.5, "weirdness":-1.0, "offset": 0.5, "temperature":-1.0, "humidity":2.0 } }, { "biome":"minecraft:cold_ocean", "parameters":{ "altitude":2.0, "weirdness":-2.0, "offset": 0.5, "temperature":2.0, "humidity":2.0 } }, { "biome":"minecraft:the_void", "parameters":{ "altitude":0.0, "weirdness":2.0, "offset": 1.0, "temperature":3.0, "humidity":5.0 } }, { "biome":"minecraft:nether_wastes", "parameters":{ "altitude":2.0, "weirdness":2.0, "offset": 1.0, "temperature":-1.0, "humidity":5.0 } } ], "altitude_noise":{ "firstOctave":1002, "amplitudes":[ 912.0, 1293.0, 129.0] }, "weirdness_noise":{ "firstOctave":1023, "amplitudes":[ 1231.12, 12131.0, 921.0] }, "temperature_noise":{ "firstOctave":-103, "amplitudes":[ 12.0, 1321.0, 239.0, 128.0] }, "humidity_noise":{ "firstOctave":-1232, "amplitudes":[ 1323.0, 12891.0] } } } } |
维度类型的代码是这样的:
{ "ultrawarm": false, "natural" : false, "coordinate_scale": 1000.0, "has_skylight": true, "has_ceiling" :false, "ambient_light": 1.0, "fixed_time": 20000, "piglin_safe": true, "bed_works": false, "respawn_anchor_works": true, "has_raids": false, "logical_height": 2048, "min_y": -1024, "height": 1024, "infiniburn":"minecraft:diamond_block", "effects":"minecraft:the_end" } |
可是开游戏变成了这样:

我用的版本是1.17,有没有大佬来解答一下?拜托啦~
版本多少 1.16?
你的维度的代码里的type的冒号前面怎么没东西?
另外,可以发一下日志吗?
另外,可以发一下日志吗?
1.首先你这个JSON里有不少语法错误,例如这里:
"structures":{ 上一行的那个大括号后面应该加个逗号(每一项写完如果后面还有东西都要加逗号)
改完语法错误我又把你这个代码输进了数据包生成器网站,然后发现还有几个错误:
default_fluid那一块似乎必须要写上岩浆的方块状态
"height"必须要是16的倍数,你写的146我改成了144.
structures那里要塞的distance和speard好像不能超过1024,我都给你改成了1023
还有mansion你重复写了三次,重复的我删掉了。
维度类型文件里logical_height似乎不能大于height,所以我给你改成了1024.
其他的应该没有了,这是我给你改好的代码:
维度代码:
维度类型代码:
还有我看wiki上写的好像是在dimension和dimension_type文件夹下直接写JSON文件,不用在里面再建个文件夹。
由于没多少时间所以我没打开游戏试,总之用软件查是没有问题了,我其实也不是很懂维度自定义,这些都是用维度 生成器帮你改的,这个网站上还有不少数据包的生成器。
JSON语法自己写确实很容易出问题,你可以用Visual Studio Code 来写,会自动找出语法错误。
"structures":{ "stronghold":{ "distance":4096, "count":1203, "spread":1242 } "structures":{ |
"structures":{ 上一行的那个大括号后面应该加个逗号(每一项写完如果后面还有东西都要加逗号)
改完语法错误我又把你这个代码输进了数据包生成器网站,然后发现还有几个错误:
default_fluid那一块似乎必须要写上岩浆的方块状态
"default_fluid": { "Name": "minecraft:lava", "Properties": { "level": "0" } |
"height"必须要是16的倍数,你写的146我改成了144.
structures那里要塞的distance和speard好像不能超过1024,我都给你改成了1023
还有mansion你重复写了三次,重复的我删掉了。
维度类型文件里logical_height似乎不能大于height,所以我给你改成了1024.
其他的应该没有了,这是我给你改好的代码:
维度代码:
{ "type": ":xiaoelaila", "generator": { "type": "minecraft:noise", "seed": 0, "settings": { "name": "minecraft:overworld", "bedrock_roof_position": 10020131, "bedrock_floor_position": -128, "sea_level": 64, "min_surface_level": 132, "disable_mob_generation": false, "noise_caves_enabled": true, "noodle_caves_enabled": true, "aquifers_enabled": true, "deepslate_enabled": false, "ore_veins_enabled": true, "default_block": { "Name": "minecraft:stone_bricks" }, "default_fluid": { "Name": "minecraft:lava", "Properties": { "level": "0" } }, "noise": { "min_y": -1024, "height": 144, "density_factor": 102, "density_offset": 0, "size_horizontal": 2, "size_vertical": 3, "simplex_surface_noise": false, "random_density_offset": true, "island_noise_override": false, "amplified": true, "sampling": { "xz_scale": 1232, "y_scale": 291, "xz_factor": 129, "y_factor": 9231 }, "bottom_slide": { "target": -124, "size": 1275, "offset": -20 }, "top_slide": { "target": 10, "size": 1023, "offset": 293 } }, "structures": { "stronghold": { "distance": 1023, "spread": 1023, "count": 1203 }, "structures": { "minecraft:bastion_remnant": { "spacing": 1023, "separation": 1022, "salt": 1232 }, "minecraft:mansion": { "spacing": 1023, "separation": 1022, "salt": 1232 } } } }, "biome_source": { "type": "minecraft:multi_noise", "seed": 0, "altitude_noise": { "firstOctave": 1002, "amplitudes": [ 912, 1293, 129 }, "temperature_noise": { "firstOctave": -103, "amplitudes": [ 12, 1321, 239, 128 }, "humidity_noise": { "firstOctave": -1232, "amplitudes": [ 1323, 12891 }, "weirdness_noise": { "firstOctave": 1023, "amplitudes": [ 1231.12, 12131, 921 }, "biomes": [ { "biome": "minecraft:mountains", "parameters": { "altitude": 1.5, "temperature": -1, "humidity": 2, "weirdness": -1, "offset": 0.5 } }, { "biome": "minecraft:cold_ocean", "parameters": { "altitude": 2, "temperature": 2, "humidity": 2, "weirdness": -2, "offset": 0.5 } }, { "biome": "minecraft:the_void", "parameters": { "altitude": 0, "temperature": 3, "humidity": 5, "weirdness": 2, "offset": 1 } }, { "biome": "minecraft:nether_wastes", "parameters": { "altitude": 2, "temperature": -1, "humidity": 5, "weirdness": 2, "offset": 1 } } } } } |
维度类型代码:
{ "ultrawarm": false, "natural" : false, "coordinate_scale": 1000.0, "has_skylight": true, "has_ceiling" :false, "ambient_light": 1.0, "fixed_time": 20000, "piglin_safe": true, "bed_works": false, "respawn_anchor_works": true, "has_raids": false, "logical_height": 1024, "min_y": -1024, "height": 1024, "infiniburn":"minecraft:diamond_block", "effects":"minecraft:the_end" } |
还有我看wiki上写的好像是在dimension和dimension_type文件夹下直接写JSON文件,不用在里面再建个文件夹。
由于没多少时间所以我没打开游戏试,总之用软件查是没有问题了,我其实也不是很懂维度自定义,这些都是用维度 生成器帮你改的,这个网站上还有不少数据包的生成器。
JSON语法自己写确实很容易出问题,你可以用Visual Studio Code 来写,会自动找出语法错误。
MCOC_PH 发表于 2021-10-18 21:42
1.首先你这个JSON里有不少语法错误,例如这里:
我曾经也想下这个,但下载速度25小时,就放弃了。我现在在用notepad++