介绍
Abstract
This is a library mod that introduces chromosome-based genetic mechanisms for entities, such as villagers, sheeps, cows, in Minecraft. It does not provide any actual functionality on its own, but serves as a powerful and compatible library that integrates traits and genetic systems for dependents.
For developers to create dependents of this mod, please read the following sections.
Architecture

Core capabilities
- Multi-loader support: Works seamlessly on both Fabric and (Neo)Forge.
- Five custom registries for chromosomes, gene loci, genes, traits, and trait types.
- Extensible trait system allowing developers to define custom observable characteristics.
Registration
Chromosomes, Gene Loci, Genes, Traits and Trait Types can be registered through this mod.
We also provide some built-in chromosomes for vanilla animals such as sheep, cows, polar bears, humans, to prevent conflicts between different mods by registering different chromosomes to the same entity.
Inheritance
Automatic chromosome inheritance, including gene recombination and mutation, default gene selectors, are reusable to any mobs, which is managed by chromosome lib. So there’s no need for developers to understand how it’s implemented – they can code in a really easy way.
Debug Commands
We also provide several commands for players to show and modify genes of entities easily, and reassign traits of them based on their genes.
Use Cases
This library is perfect for:
- Wildlife and animal husbandry mods wanting realistic breeding systems.
- RPG mods requiring hereditary traits and characteristics.
- Educational mods teaching genetics and biology concepts.
- Any mod that needs sophisticated inheritance mechanics.
Get Started
Add Viola Siemens’s Maven to repository in your build.gradle.
repositories {
maven {
name = 'Maven from Viola Siemens'
url = "https://viola-siemens.github.io/pages/maven/"
}
}
Declare Chromosome Lib as your dependency.
Forge:
implementation fg.deobf("com.hexagram2021:chromosomelib-forge:${chromosomelib_version}")
Fabric:
modImplementation group: 'com.hexagram2021', name: 'chromosomelib-fabric', version: chromosomelib_version
NeoForge:
implementation group: 'com.hexagram2021', name: 'chromosomelib-neoforge', version: chromosomelib_version
MultiLoader:
// ^common/build\.gradle$
modImplementation group: 'com.hexagram2021', name: 'chromosomelib-common', version: chromosomelib_version
// ^forge/build\.gradle$
modImplementation group: 'com.hexagram2021', name: 'chromosomelib-forge', version: chromosomelib_version
// ^fabric/build\.gradle$
modImplementation group: 'com.hexagram2021', name: 'chromosomelib-fabric', version: chromosomelib_version
// ^neoforge/build\.gradle$
modImplementation group: 'com.hexagram2021', name: 'chromosomelib-neoforge', version: chromosomelib_version
Example Mods
常见问题
Chromosome Lib 支持哪些 Minecraft 版本?
Chromosome Lib 支持 Minecraft Java 版 1.20–1.20.1,共 2 个版本,可用的加载器:Fabric / Forge。下载时注意选择和你游戏版本一致的文件。
Chromosome Lib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
Viola-Siemens 的其他作品
查看全部 →
Dyeable Redstone Signal
色彩缤纷的红石线,让你的红石电路更加复杂!
Teleport Master
这个模组添加了一些传送指令。
Sweeper Maid
一个轻量级模组,可收集所有掉落物和多余实体以优化性能。
Mod Whitelist
A security mod that prevents players entering the server if modlist not matches
评论
登录后评论和评分