Large Ore Veins
本模组将 Minecraft 默认的矿石生成替换为巨大且高度可定制的矿脉。这鼓励玩家探索世界,同时也使挖矿变得稍微困难一些。你可以将此模组添加到已有世界中,只需前往新的区块即可生成新的矿脉。该模组也支持仅安装在服务器端,但这意味着你将无法获得 JEI(Just Enough Items)集成。适用于 Neoforge 1.21.1。
游戏玩法
矿石矿脉现在更难发现了。你最佳的挖矿策略是探索洞穴,并希望偶然发现矿脉,或者使用来自其他模组的工具来快速寻找矿石。
某些矿石在特定的生物群系中更为常见:
- Coal: oceans
- Copper: plains
- Diamond: jungle
- Emerald: mountains
- Iron: forests
- Lapis: deserts
- Gold: badlands
- Redstone: swamps
注意事项
- Ancient debris 仍然以正常方式生成。我认为巨大的 Ancient debris 矿脉过于强大。
- JEI 自动支持!在 JEI 中点击矿石即可查看其生成矿脉的相关信息。
- 你可以为整合包创建自定义矿脉,这些矿脉可以在任何原版或模组维度中生成。
- 你可以更改此模组添加的任何默认矿脉的大小、形状、稀有度、Y 轴层级、生物群系权重等,或者直接移除某个矿脉。
配置指南
Large Ore Veins 使用 数据包 进行定制。如果你正在制作使用 KubeJS 的整合包,可以使用 kubejs/data 文件夹来存放你的矿脉配置。
在你的数据包中,应将所有矿脉配置文件放入以下文件夹之一:
- 用于添加新矿脉:
data/<your namespace>/ore_veins
- 用于编辑现有矿脉:
data/largeoreveins/ore_veins
以下是矿脉配置文件的一个示例:
{
"id": "largeoreveins:iron_vein",
"dimension": "minecraft:overworld",
"replace_blocks": {
"minecraft:stone": [
{"block": "minecraft:iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:deepslate": [
{"block": "minecraft:deepslate_iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:andesite": [
{"block": "minecraft:iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:diorite": [
{"block": "minecraft:iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:granite": [
{"block": "minecraft:iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:tuff": [
{"block": "minecraft:deepslate_iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
]
},
"maxY": 63,
"minY": -20,
"size": 35,
"type": "VEIN",
"default_weight": 5,
"biome_weights": {
"#c:is_forest": 8
},
"enabled": true
}
- id: 矿脉的唯一标识符。对于自定义矿脉,请将其置于你的模组(包)的命名空间下,例如
myawesomemod:zinc_vein。
- dimension: 在其中生成矿脉的维度。可以是任何原版或模组维度(尽管我不能保证所有模组维度都兼容)。
- replace_blocks: 将石头方块映射到矿石方块。在示例中,矿脉将在石头处生成铁矿石,在深板岩处生成深板岩铁矿石,并有 5% 的概率生成粗铁块。如果给定替换方块只能生成一种可能的方块,你可以简单地使用
"minecraft:stone": "minecraft:iron_ore"。
- maxY (可选,默认值 = 60): 矿脉生成的最高 Y 轴值。
- minY (可选,默认值 = 0): 矿脉生成的最低 Y 轴值。
- size (可选,默认值 = 25): 矿脉的“半径”。其效果取决于矿脉类型。
- type (可选,默认值 = BLOB): 在 BLOB、VEIN 和 PLATE 之间选择:
- BLOB 是一种带有噪声的球体形状。
- VEIN 是一种长条状、凹凸不平的形状,看起来类似于放大版的原版矿石矿脉。
- PLATE 是一种薄而扁平的圆形形状。
- default_weight (可选,默认值 = 1): 在任何生物群系中的默认权重。数值越高,矿脉越常见。
- biome_weights (可选): 使用此项仅在特定生物群系中更改权重。例如,Gold 矿脉在 Badlands 生物群系中具有更高的权重。请注意,此设置可能不适用于洞穴生物群系。
- enabled (可选,默认值 = true): 将其设置为 false 以禁用该矿脉的生成。
要修改现有矿脉,请将矿脉放置在 data/largeoreveins/ore_veins 中(而不是你自己的命名空间),并确保 id 字段与现有矿脉匹配。
另请注意:如果你希望矿脉名称在 JEI 中查看时显示为翻译后的文本,请将其添加到你的语言文件中(通常是 en_us.json)。
"ore_vein.myawesomemod.zinc_vein": "Zinc Vein"
你可以在这里查看更多示例。
常见问题
Q: 我可以在整合包中使用它吗?
A: 当然可以。只需以某种方式署名,例如链接到模组页面。
Q: 你能把它移植到 [某个版本]/[某个加载器] 吗?
A: 这个模组主要是为我自己的一个整合包制作的,因此我目前不打算将其移植到除 Neoforge 1.21.1 之外的任何平台。不过,该模组非常简单且开源,所以如果你想自行移植,欢迎 Fork 代码(只需遵守许可证即可)。
Q: 如何让我的矿石矿脉只在洞穴生物群系(如 Deep Dark)中生成?
A: 由于矿脉的生物群系采样方式,洞穴生物群系不太可能在 biome_weights 字段中起作用。我可能会在未来研究解决方案。
Large Ore Veins
This mod replaces Minecraft's default ore generation with massive, highly customisable ore veins. This encourages the player to explore the world and also makes mining a bit more difficult. You can put the mod in an existing world, just travel to new chunks for the new veins to generate. The mod also works when installed only on the server side, however this means you won't get the JEI integration. Available for Neoforge 1.21.1.
Gameplay
Ore veins are now much more difficult to find. Your new best mining strategy is to explore caves and hope to stumble across a vein, or use tools from other mods that can help you find ores quickly.
Certain ores are more common in certain biomes:
- Coal: oceans
- Copper: plains
- Diamond: jungle
- Emerald: mountains
- Iron: forests
- Lapis: deserts
- Gold: badlands
- Redstone: swamps
Notes
- Ancient debris still generates in the normal way. I thought massive ancient debris veins were a bit too overpowered.
- JEI is supported automatically! Click on ores in JEI to see information about the veins they generate in.
- You can create custom veins for your modpack that can generate in any vanilla or modded dimension.
- You can change the size, shape, rarity, Y level, biome rarities and more of any of the default veins added by this mod, or remove one altogether.
Configuration guide
Large Ore Veins uses datapacks for customisation. If you are making a modpack that uses KubeJS, you can use the kubejs/data folder for your vein configurations.
In your datapack, you should put all your vein configuration files in one of the following folders:
- For adding new veins:
data/<your namespace>/ore_veins
- For editing existing veins:
data/largeoreveins/ore_veins
Here is an example of an ore vein configuration file:
{
"id": "largeoreveins:iron_vein",
"dimension": "minecraft:overworld",
"replace_blocks": {
"minecraft:stone": [
{"block": "minecraft:iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:deepslate": [
{"block": "minecraft:deepslate_iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:andesite": [
{"block": "minecraft:iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:diorite": [
{"block": "minecraft:iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:granite": [
{"block": "minecraft:iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
],
"minecraft:tuff": [
{"block": "minecraft:deepslate_iron_ore", "weight": 19},
{"block": "minecraft:raw_iron_block", "weight": 1}
]
},
"maxY": 63,
"minY": -20,
"size": 35,
"type": "VEIN",
"default_weight": 5,
"biome_weights": {
"#c:is_forest": 8
},
"enabled": true
}
- id: A unique identifier for your vein. For custom veins, put this under your mod(pack)'s namespace, such as
myawesomemod:zinc_vein.
- dimension: The dimension to generate your vein in. This can be any vanilla or modded dimension (although I cannot guarantee that all modded dimensions are compatible).
- replace_blocks: Map stone blocks to ore blocks. In the example, the vein will generate iron ore in place of stone and deepslate iron ore in place of deepslate, with a 5% chance of generating raw iron ore instead. If only one possible block can be generated from a given replacement, you can simply use
"minecraft:stone": "minecraft:iron_ore".
- maxY (optional, default = 60): The highest Y value where your vein will generate.
- minY (optional, default = 0): The lowest Y value where your vein will generate.
- size (optional, default = 25): The 'radius' of the vein. The effect this has depends on the vein type.
- type (optional, default = BLOB): Choose between BLOB, VEIN and PLATE:
- BLOB is a noisy sphere shape.
- VEIN is a long lumpy shape that looks similar to a scaled up version of vanilla ore veins.
- PLATE is a thin, flat circular shape.
- default_weight (optional, default = 1): The default weight in any biome. A higher number makes the vein more common.
- biome_weights (optional): Use this to change the weight only in specific biomes. For example, gold veins have a higher weight in badlands biomes. Note that this setting may not work for cave biomes.
- enabled (optional, default = true): Set this to false to disable generation of the vein.
To modify an existing vein, place the vein in data/largeoreveins/ore_veins (not your own namespace) and make sure the id field matches the existing vein.
Another thing to note: If you want your vein's name to be translated when viewed in JEI, add it to your language file (often en_us.json).
"ore_vein.myawesomemod.zinc_vein": "Zinc Vein"
You can view more examples here.
FAQ
Q: Can I use this in a modpack?
A: Yes, of course. Just give credit in some way, like with a link to the mod page.
Q: Can you port this to [some version]/[some modloader]?
A: This mod was primarily made for one of my own modpacks, which is why I'm currently not planning on porting it to anything other than Neoforge 1.21.1. The mod is quite simple and open source, however, so feel free to fork it and port it yourself if you'd like (just make sure to follow the license).
Q: How can I make my ore veins only spawn in cave biomes like the deep dark?
A: Cave biomes are unlikely to work as fields in biome_weights due to how biomes for veins are sampled. I might look into a solution in the future.
评论 0
登录后参与评分
还没有评论,来抢沙发吧