示例数据包中的红石矿脉。
通过此模组,您可以配置除铁和铜以外的更多大型矿石矿脉类型。它默认不会添加任何矿脉,而是从每个数据包中读取 data/yournamespace/worldgen/custom_ore_veins/yourvein.json 文件,这些文件应具备以下格式:
dimension: 生成该矿脉的维度类型(若未指定则为主世界)。
toggle: 决定该矿脉可以在世界的哪些区域生成:
density: 用于计算 toggle 值的密度函数。
max_value: 生成矿脉时 toggle 值的最大值(如果指定了 min_value 则为可选)。
min_value: 生成矿脉时 toggle 值的最小值(如果指定了 max_value 则为可选)。
min_y: 生成矿脉时的最低 Y 坐标。
max_y: 生成矿脉时的最高 Y 坐标。
ridged: 决定矿脉的形状。若未指定,则使用原版铜和铁矿脉相同的形状,但这并不推荐,因为这会导致它们与新增的矿脉重叠。
density: 用于计算 ridged 值的密度函数(可选,见上文)。
min_value: 生成方块时 ridged 值的最小值(默认为 0)。
gap: 决定矿石相对于基础岩石的生成位置。若未指定,则使用原版的设置。
density: 用于计算 gap 值的密度函数(可选,见上文)。
min_value: 生成矿石时 gap 值的最小值(默认为 -0.3)。
stone: 基础岩石方块。
ore: 矿石方块。
raw_ore: 粗矿石方块(若未指定则与 ore 相同)。
min_ore_chance: 在矿脉外层生成矿石方块的几率(默认:0.16)。
max_ore_chance: 在矿脉内层生成矿石方块的几率(默认:0.5)。
raw_ore_chance: 将矿石方块替换为粗矿石方块的几率(默认 0.02)。
如果您(完全可以理解地)不想了解密度函数等相关内容,可以复制并重命名 示例数据包 中的每个文件(该数据包添加了红石和煤矿脉),针对每种矿脉类型对进行修改,然后更改 stone、ore、raw_ore 方块以及对噪声函数的引用(如 ore_veinness 等)。请注意,同一组配对中的矿脉永远不会在同一位置生成(就像铜和铁一样),如果您不希望这样,可以为每组噪声文件只添加一个矿脉文件,而不是两个。
Redstone vein from the example datapack.
With this mod you can configure more types of large ore veins other than iron and copper. It doesn't add any by default, it reads data/yournamespace/worldgen/custom_ore_veins/yourvein.json files from each datapack, which should have the following format:
dimension: dimension type in which this vein is generated (overworld if not specified).
toggle: determines the regions of the world in which this vein can be generated:
density: a density function from which the toggle value is calculated.
max_value: maximum value of the toggle value at which the veins are generated (optional if min_value is specified).
min_value: minimum value of the toggle value at which the veins are generated (optional if max_value is specified).
min_y: minimum Y at which the vein is generated.
max_y: maximum Y at which the vein is generated.
ridged: determines the shape of the veins. If not specified, it uses the same as the vanilla copper and iron veins, which is not recommended because it causes them to overlap with the added ones.
density: density function from which the ridged value is calculated (optional, see above).
min_value: minimum ridged value at which blocks are generated (default is 0).
gap: determines where ores are generated as opposed to the base stone. If not specified, it uses the vanilla one.
density: density function from which the gap value is calculated (optional, see above).
min_value: minimum gap value at which ores are generated (default is -0.3).
stone: base rock block.
ore: ore block.
raw_ore: raw ore block (same as ore if not specified).
min_ore_chance: chance of generating a ore block in the outer part of the vein (default: 0.16).
max_ore_chance: chance of generating a ore block in the inner part of the vein (default: 0.5).
raw_ore_chance: chance of replacing a ore block with a raw ore one (default 0.02).
If you (understandably) don't want to learn about density functions and stuff, you can copy and rename each file from the example datapack (which adds redstone and coal veins) for each pair of vein type, and then change the stone, ore, raw_ore blocks and the references to the noise functions (ore_veinness, etc.). Note that the veins from the same pair are never generated at the same location (just like copper and iron), if you don't want that you can add only one vein file for each set of noise files instead of two.
评论 0
登录后参与评分
还没有评论,来抢沙发吧