本项目在 Modrinth 上已不再积极更新。
如需获取最新版本、修复内容以及未来的更新,请前往 CurseForge。
Dynamic Trees Compat(动态树木兼容性模组)
Beta 构建版本 — 活跃开发中
Dynamic Trees Compat 是一款适用于 Forge 1.20.1 的模组,可自动检测原版及模组添加的树木,并为它们生成 Dynamic Trees 兼容性支持。
其目标是避免为每个树木模组都单独配备一个兼容性附加模组。
该模组不依赖单纯的方块名称,而是读取 Minecraft 实际使用的配置特性、注册表、方块状态、模型和世界生成数据。
功能特点
- 自动检测已安装模组中的兼容树木
- 识别原木、去皮原木、树叶、树苗、树枝及其他树木组件
- 生成 Dynamic Trees 的族系、物种、树叶、树枝、种子、树苗、资源资产及世界生成数据
- 保留原始树木的原木和树叶方块
- 从原始方块状态和模型中解析纹理
- 将世界生成中受支持的源树木替换为 Dynamic Trees 版本
- 过滤误报项,如木板、板材、束、竹子以及非树木木材特性
树木形态
该模组还尝试保留每棵树的原始形状。
当从配置的特性中获得足够信息时,树拓扑结构会被转换为 Dynamic Trees 版本。
如果无法完全复现精确形状,模组会根据以下因素选择最接近的可用 Dynamic Trees 轮廓:
- 高度
- 树干大小
- 树冠大小
- 叶簇分布
- 树枝结构
- 树木类型
这包括棕榈树、针叶树、金合欢树、大型树木、灌木及宽冠树木等类型的轮廓。
如果信息不足,则最终回退使用类似橡树的 Dynamic Trees 形状,同时仍保留原始树木的材质。
世界生成
受支持的源树木特性会被替换为其生成的 Dynamic Trees 物种。
该模组还包含一个诊断系统,用于查找仍在替换系统之外生成的树木,从而帮助改善对非常规世界生成实现的兼容性。
需要重启
新检测到的树木会生成到一个待处理的资源包中,并在重启 Minecraft 后生效。
这是必要的,因为 Dynamic Trees 会在启动期间注册其生成的方块和物种。
从旧版本迁移后的首次启动可能会显示“需要重启”屏幕。只需退出 Minecraft 并重新启动即可。
必要依赖
- Minecraft Forge 47+
- Dynamic Trees 1.20.1-1.3.0+
- Moonlight Lib 1.20-2.16.23+
- GabouLibs 1.8.2+
GabouLibs 还需要 Architectury API。
当前限制
该模组仍处于 Beta 阶段。
生成的树苗纹理仍在完善中。目前模组尚无可靠的方法来为每棵检测到的树木动态创建独特的树苗纹理,因此部分生成的树苗可能会使用临时或通用视觉效果。
某些模组使用自定义 Java 世界生成特性,这些特性暴露的信息不足以完美复现其树木形状。这些树木目前使用最接近的可用 Dynamic Trees 形状。
已有区块不会被转换。更改仅影响新生成的地形。
计划中
- 自定义拓扑 JSON 文件
- 对更多非常规自定义树木生成器的支持
- 更好地处理嵌套的世界生成特性
- 更准确的自动形状转换
- 持续改进兼容性
- 改进自动树苗纹理生成
This project is no longer actively updated on Modrinth.
For the latest releases, fixes, and future updates, please use CurseForge.
Dynamic Trees Compat
Beta Build — Active Development
Dynamic Trees Compat is a Forge 1.20.1 mod that automatically detects vanilla and modded trees and generates Dynamic Trees compatibility for them.
The goal is to avoid needing a separate compatibility addon for every tree mod.
Instead of relying only on block names, the mod reads the actual configured features, registries, blockstates, models, and worldgen data used by Minecraft.
Features
- Automatically detects compatible trees from installed mods
- Detects logs, stripped logs, leaves, saplings, branches, and other tree components
- Generates Dynamic Trees families, species, leaves, branches, seeds, saplings, assets, and worldgen data
- Keeps the original tree's log and leaf blocks
- Resolves textures from the original blockstates and models
- Replaces supported source trees in world generation with Dynamic Trees versions
- Filters out false positives such as planks, boards, bundles, bamboo, air, and non-tree wood features
Tree Shapes
The mod also tries to preserve the original shape of each tree.
When enough information is available from the configured feature, the tree topology is translated into a Dynamic Trees version.
If the exact shape cannot be reproduced, the mod selects the closest available Dynamic Trees profile based on things such as:
- Height
- Trunk size
- Canopy size
- Foliage placement
- Branch structure
- Tree type
This includes profiles for trees such as palms, conifers, acacias, large trees, shrubs, and broad-canopy trees.
If there is not enough information, an oak-like Dynamic Trees shape is used as the final fallback while still keeping the original tree's materials.
World Generation
Supported source tree features are replaced with their generated Dynamic Trees species.
The mod also contains a diagnostic system for finding trees that are still generating outside the replacement system, which helps improve compatibility with unusual worldgen implementations.
Restart Required
Newly detected trees are generated into a pending resource pack and become active after restarting Minecraft.
This is required because Dynamic Trees registers its generated blocks and species during startup.
The first launch after migrating from an older version may show a Restart Required screen. Simply quit Minecraft and launch it again.
Required Dependencies
- Minecraft Forge 47+
- Dynamic Trees 1.20.1-1.3.0+
- Moonlight Lib 1.20-2.16.23+
- GabouLibs 1.8.2+
GabouLibs also require Architectury API.
Current Limitations
This mod is still in beta.
Generated sapling textures are still a work in progress. The mod currently does not have a reliable way to dynamically create unique sapling textures for every detected tree, so some generated saplings may use temporary or generic visuals.
Some mods use custom Java worldgen features that do not expose enough information to perfectly reproduce their tree shapes. These trees currently use the closest available Dynamic Trees shape.
Existing chunks are not converted. Changes only affect newly generated terrain.
Planned
- Custom topology JSON files
- More support for unusual custom tree generators
- Better handling of nested worldgen features
- More accurate automatic shape conversion
- Continued compatibility improvements
- Improved automatic sapling texture generation
评论 0
登录后参与评分
还没有评论,来抢沙发吧