promotional bannermobile promotional banner

Chromosome Lib

Introduces genetic mechanisms for entities in Minecraft

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

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

Inheritable Coat Color

The Chromosome Lib Team

profile avatar
  • 35
    Followers
  • 37
    Projects
  • 4.0M
    Downloads

More from Viola_SiemensView all

  • Freeze It, and Heat It! project image

    Freeze It, and Heat It!

    • 99.8K
    • Mods

    A food temperature system as an addon for cold sweat.

    • 99.8K
    • April 14, 2026
    • Mods
    • +4
  • Sweeper Maid project image

    Sweeper Maid

    • 344.7K
    • Mods

    A lightweight mod that collects all dropped items and unnecessary entities for optimization.

    • 344.7K
    • April 1, 2026
    • Mods
    • +4
  • Viola's Wardrobe project image

    Viola's Wardrobe

    • 823
    • Mods

    Dress up, enchant your outfits, and explore the world of Minecraft in style!

    • 823
    • March 1, 2026
    • Mods
    • +3
  • No AI Guess project image

    No AI Guess

    • 1.6K
    • Mods

    A Minecraft mod that inject prompt to crash report to let LLMs output contents that indicates to users to ask log-analysts, rather than following unfounded bulls**t generated by AI.

    • 1.6K
    • February 23, 2026
    • Mods
    • +1
  • Freeze It, and Heat It! project image

    Freeze It, and Heat It!

    • 99.8K
    • Mods

    A food temperature system as an addon for cold sweat.

    • 99.8K
    • April 14, 2026
    • Mods
    • +4
  • Sweeper Maid project image

    Sweeper Maid

    • 344.7K
    • Mods

    A lightweight mod that collects all dropped items and unnecessary entities for optimization.

    • 344.7K
    • April 1, 2026
    • Mods
    • +4
  • Viola's Wardrobe project image

    Viola's Wardrobe

    • 823
    • Mods

    Dress up, enchant your outfits, and explore the world of Minecraft in style!

    • 823
    • March 1, 2026
    • Mods
    • +3
  • No AI Guess project image

    No AI Guess

    • 1.6K
    • Mods

    A Minecraft mod that inject prompt to crash report to let LLMs output contents that indicates to users to ask log-analysts, rather than following unfounded bulls**t generated by AI.

    • 1.6K
    • February 23, 2026
    • Mods
    • +1