挖掘变体
NeoForge 版本需要:Dynamic Asset Generator
Fabric/Quilt 版本需要:Dynamic Asset Generator 和 Fabric API/Quilted Fabric API
根据各种石头自动生成矿石的变体。
详情:
许多模组添加了新的石头或新的矿石。Excavated Variants 会自动为每种矿石与石头变体的组合添加新矿石。此外,Excavated Variants 还会尝试为这些矿石变体设置世界生成配置。可以在配置文件中更改所添加的变体;一些模组已内置于默认配置中,而其他的则需要手动添加。请参阅 Curseforge 页面中的“图片”标签页以查看生成的矿石示例。
故障排除:
遇到问题?从这里开始!
- 如果世界或游戏加载时间缓慢,请尝试在 Dynamic Asset Generator 的配置中启用更强的资源缓存和/或数据包缓存。
- 游戏启动时崩溃?矿石纹理变成紫黑色?可能是配置文件有问题。尝试删除并重置它。
- 缺少下方列出的某个模组的兼容性?删除您的配置文件以将其重置为默认值。
兼容性:
Excavated Variants 附带默认配置,其中包括以下模组的矿石变体(除了原版石头和矿石之外):
- Quark
- Create
- Oh The Biomes You'll Go
- Tech Reborn
- Immersive Engineering
- Blockus
- Better End
- Better Nether
- Promenade
- Twigs
- Unearthed
- Bewitchment
- Mekanism
- Mystical Agriculture
- 以及更多!
配置格式
主配置文件 config/excavated_variants.json 包含几个选项:
- attempt_worldgen_replacement:切换矿石生成更改;如果没有此项,矿石在世界生成期间不会被替换。
- add_conversion_recipes:切换是否添加将变体转换回基础矿石的合成配方。
所有其他配置都通过 globalresources 文件夹加载。您可以直接在那里添加新的配置文件,但如果想提取内置配置以便编辑它们,请打开 defaultresources.json 配置文件。它看起来应该如下所示:
{
"extract": {
"excavated_variants": "unextracted"
}
}
将 unextracted 更改为 extract 并加载一次游戏。现在,默认配置将在 globalresources 文件夹中可供编辑。
注意:如果您只是想添加更多配置,则无需(也不应该)这样做。您可以在不提取现有配置的情况下添加新的配置文件。
配置定义了四种主要数据类型:
- 地面类型 (Ground Types):地面类型代表矿石和石头的类别。它们用于确定应创建哪些新的矿石/石头组合(变体)。例如:
excavated_variants:overworld是一个共享普通 Minecraft 石头、深板岩和地表矿石的类别。 - 矿石 (Ores):矿石是可以存在于任意数量不同石头中的方块类型。在世界生成期间,它们会被替换为与相邻石头匹配的变体。例如:
excavated_variants:minecraft/iron_ore代表普通和深板岩铁矿石,以及任何生成的其他变体。 - 石头 (Stones):石头是矿石在其中生成的方块。例如:
excavated_variants:minecraft/granite代表花岗岩,并包含有关基于花岗岩生成哪些新变体的信息。 - 修饰符 (Modifiers):修饰符用于修改变体的属性。它们可用于添加标签、更改方块属性、阻止变体创建等。
除非被修饰符更改,否则将为所有共享相同地面类型且尚未具有变体的矿石/石头组合生成变体。
地面类型
放置在 globalresources/[folder/pack]/globaldata/[namespace]/excavated_variants/ground_type。它们是具有以下结构的 JSON 文件:
- (无内容):这些实际上还不包含任何数据!只需使用空的 JSON 文件:
{}。
矿石
放置在 globalresources/[folder/pack]/globaldata/[namespace]/excavated_variants/ore。它们是具有以下结构的 JSON 文件:
types:此矿石可以生成的地面类型列表。例如:["excavated_variants:overworld"]。translations:一个对象,其键为语言环境(如en_us),值为矿石的翻译名称。翻译将以石头名称作为前缀,除非翻译中包含%s,在这种情况下,石头名称将插入到该位置。tags:此矿石的变体将添加到的标签列表,同时作为方块标签和项目标签。blocks:一个表示此矿石的变体与石头配对的映射。每个键是代表矿石变体的方块的标识符。值采用两种形式之一:- 一个字符串,代表石头的标识符。例如:
"excavated_variants:minecraft/granite"。如果拥有该方块 ID 命名空间的模组的模组 ID 存在,则将假定该变体存在。 - 一个具有以下字段的对象:
stone:一个字符串,代表石头的标识符。例如:"excavated_variants:minecraft/granite"。required_mods:必须存在才能生成此变体的模组 ID 列表。例如:["spelunkery", "create"]。generating:(可选,默认为 true)此变体是否可以用作新生成变体的父级。
- 一个字符串,代表石头的标识符。例如:
石头
放置在 globalresources/[folder/pack]/globaldata/[namespace]/excavated_variants/stone。它们是具有以下结构的 JSON 文件:
types: 此石头可以生成的地面类型列表。例如:["excavated_variants:overworld"]。translations: 一个对象,其键为语言环境(如en_us),值为该石头的翻译名称。block: 与此石头对应的方块标识符。例如:"minecraft:granite"。ore_tags: 此石头的矿石变体将被添加到的标签列表,同时作为方块标签和物品标签。
修饰器 (Modifiers)
放置在 globalresources/[folder/pack]/globaldata/[namespace]/excavated_variants/modifier 目录下。它们是具有以下结构的 JSON 文件:
tags: (可选)匹配过滤条件的变体将被添加到的标签列表。可以是方块标签或物品标签,格式为"namespace:[blocks/items]/path"。flags: (可选)从以下集合中选取、将应用于匹配变体的标志列表:"original_without_silk":除非使用精准采集,否则该变体应掉落其原始方块会掉落的东西。请注意,对于具有掉落“原矿块”等行为的所有矿石方块,此标志无关紧要;它仅在原始方块掉落自身时相关。"original_always":即使使用精准采集,该变体也应始终掉落其原始方块会掉落的东西。"disable":该变体不应被模组生成或识别。"non_generating":该变体不应用作新变体的父级,但模组仍会感知到它。
properties: (可选)包含以下字段的对象,用于修改生成方块的属性:destroy_time: 破坏方块所需的时间。explosion_resistance: 方块对爆炸的抗性。xp: 方块掉落的经验值数量。可以采用原版数据包中看到的整数范围格式。
filter: 描述此修饰器适用于哪些变体。
过滤器 (Filters)
修饰器的过滤器可以是字符串或对象形式。作为对象时,它们至少有一个字段 type,用于描述过滤器的类型。可用的类型包括:
all:匹配所有内容。empty:不匹配任何内容。not:匹配其"filter"字段未匹配的所有内容。and:匹配其"filters"字段所有成员所匹配的内容。or:匹配其"filters"字段至少一个成员所匹配的内容。
作为字符串时,它们采用以下形式之一:
*:匹配所有内容。~:不匹配任何内容。~[filter]:匹配[filter]未匹配的所有内容。ground_type@[namespace]:[path]:匹配具有给定地面类型的所有变体。stone@[namespace]:[path]:匹配具有给定石头的所有变体。ore@[namespace]:[path]:匹配具有给定矿石的所有变体。mod@[mod_id]:匹配所有内容,但前提是存在具有给定 ID 的模组。generated:匹配由模组生成的所有变体。block@[namespace]:[path]:匹配具有给定方块 ID 的所有变体。此处提供的命名空间和路径可以使用*作为通配符来匹配一个或多个字符。
Excavated Variants
NeoForge version requires: Dynamic Asset Generator
Fabric/Quilt version requires: Dynamic Asset Generator and Fabric API/Quilted Fabric API
Adds automatically generated variants of ores based on various stones.
Details:
Many mods add new stones or new ores. Excavated Variants automatically adds new ores for each combination of ore and stone variant. Additionally, Excavated Variants attempts to set up world gen for these ore variants. The variants added can be changed in the config file; some mods are built in to the default configuration; others will have to be manually added. See Images tab of Curseforge page for examples of generated ores.
Troubleshooting:
Running into issues? Start here!
- If world or game loading times are slow, try turning on stronger asset and/or data caching in the config for Dynamic Asset Generator.
- Is the game crashing on launch? Do ore textures turn magenta and black? Something may be wrong with your config. Try removing and resetting it.
- Are you missing compatibility for a mod listed below? Delete your configs to reset them to the default.
Compatibility:
Excavated Variants comes with default configs that include ore variants for the following mods, in addition to vanilla stones and ores:
- Quark
- Create
- Oh The Biomes You'll Go
- Tech Reborn
- Immersive Engineering
- Blockus
- Better End
- Better Nether
- Promenade
- Twigs
- Unearthed
- Bewitchment
- Mekanism
- Mystical Agriculture
- And more!
Config Format
The main config file, config/excavated_variants.json, contains several options:
- attempt_worldgen_replacement: Toggles ore-gen changes; without this, ores won't be replaced during world gen.
- add_conversion_recipes: Toggles whether to add recipes to convert variants back to the base ore.
All other configuration is loaded through the globalresources folder. You may add new config files there directly, but if you want to extract the built-in
configs in order to edit them, open the defaultresources.json config file. It should look something like as follows:
{
"extract": {
"excavated_variants": "unextracted"
}
}
Change unextracted to extract and load the game once. Now, the default configs will be available to edit in the globalresources folder.
Note: If you just want to add more configs, you do not need to (and should not) do this. You can add new config files without extracting existing ones.
Configs define four main data types:
- Ground Types: Ground types represent classes of ores and stones. They are used to determine which new ore/stone combinations (variants) should be created. For example:
excavated_variants:overworldis a category shared by normal minecraft stone, deepslate, and overworld ores. - Ores: Ores are types of blocks which can exist in any number of different stones. During worldgen, they are replaced with variants matching neighboring stones. For example:
excavated_variants:minecraft/iron_orerepresents both normal and deepslate iron ore, as well as any other variants generated. - Stones: Stones are blocks which ores generate within. For example:
excavated_variants:minecraft/graniterepresents granite, and contains information about which new variants to generate based off of granite. - Modifiers: Modifiers are used to modify the properties of variants. They can be used to add tags, change block properties, prevent variant creation, and more.
Except when changed by modifiers, variants are generated for all ore/stone combinations that share a ground type and do not already have a variant.
Ground Types
Placed in globalresources/[folder/pack]/globaldata/[namespace]/excavated_variants/ground_type. They are JSON files with the following structure:
- (nothing): these don't actually hold any data yet! Just use an empty JSON file:
{}.
Ores
Placed in globalresources/[folder/pack]/globaldata/[namespace]/excavated_variants/ore. They are JSON files with the following structure:
types: a list of ground types that this ore can generate in. For example:["excavated_variants:overworld"].translations: an object with locales as keys (such asen_us) and translated names of the ore as values. Translations will be prepended by the stone name, unless the translation contains%s, in which case the stone name will be inserted at that location.tags: a list of tags that variants of this ore will be added to, as both block and item tags.blocks: a map representing pairings of variants of this ore with stones. Each key is the identifier of a block representing an ore variant. Values take one of two forms:- a string representing the identifier of a stone. For example:
"excavated_variants:minecraft/granite". This variant will be assumed to exist if the mod who's mod ID is the namespace of the block ID is present. - an object with the following fields:
stone: a string representing the identifier of a stone. For example:"excavated_variants:minecraft/granite".required_mods: a list of mod IDs that must be present for this variant to be generated. For example:["spelunkery", "create"].generating: (optional, defaults to true) whether this variant can be used as a parent for new, generated variants.
- a string representing the identifier of a stone. For example:
Stones
Placed in globalresources/[folder/pack]/globaldata/[namespace]/excavated_variants/stone. They are JSON files with the following structure:
types: a list of ground types that this stone can generate in. For example:["excavated_variants:overworld"].translations: an object with locales as keys (such asen_us) and translated names of the stone as values.block: the identifier of the block corresponding to this stone. For example:"minecraft:granite".ore_tags: a list of tags that ore variants for this stone will be added to, as both block and item tags.
Modifiers
Placed in globalresources/[folder/pack]/globaldata/[namespace]/excavated_variants/modifier. They are JSON files with the following structure:
tags: (optional) a list of tags that variants matching the filter will be added to. Can be either block or item tags, in the format"namespace:[blocks/items]/path".flags: (optional) a list of flags from the following set that will be applied to matching variants:"original_without_silk": the variant should drop whatever its original block would drop, unless silk touch is used. Note that this flag is irrelevant for any ore blocks that have the behaviour of dropping "raw ore chunks" or the like, and is only relevant for when the original block drops itself."original_always": the variant should always drop whatever its original block would drop, even if silk touch is used."disable": the variant should not be generated or recognized by the mod."non_generating": the variant should not be used as a parent for new variants, but the mod is still aware of it.
properties: (optional) an object with the following fields, that modifies the properties of generated blocks:destroy_time: the time it takes to break the block.explosion_resistance: the resistance of the block to explosions.xp: the amount of experience dropped by the block. Can take the same sort of integer range as seen in vanilla datapacks.
filter: describes which variants this modifier applies to.
Filters
Modifier filters can take the form of either a string or an object. As an object, they have at least one field, type,
which describes the type of filter. The available types are:
allmatches everything.emptymatches nothing.notmatches everything not matched by its"filter"field.andmatches everything matched by all members of its"filters"field.ormatches everything matched by at least one member of its"filters"field.
As a string, they take one of the following forms:
*: matches everything.~: matches nothing.~[filter]: matches everything not matched by[filter].ground_type@[namespace]:[path]: matches all variants with the given ground type.stone@[namespace]:[path]: matches all variants with the given stone.ore@[namespace]:[path]: matches all variants with the given ore.mod@[mod_id]: matches everything, but only if a mod with the given ID is present.generated: matches all variants that are generated by the mod.block@[namespace]:[path]: matches all variants with the given block ID. The namespace and path provided here can use*as a wildcard to match one or more characters.
下载 Excavated Variants
下载 Excavated Variants
下载 Excavated Variants
下载 Excavated Variants
下载 Excavated Variants
下载 Excavated Variants
下载 Excavated Variants
下载 Excavated Variants
下载 Excavated Variants
下载 Excavated Variants
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
原版世界生成优化模组
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
评论 0
登录后参与评分
还没有评论,来抢沙发吧