Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
GenderBub adds a gender system to animals and villagers. Every mob gets a random gender at spawn — male or female — and can also be sterile. You can configure interaction rules (e.g. prevent milking male cows), control breeding settings, and see gender icons above mobs.
Features
- Random gender (male/female) with configurable chances
- Infertility — mobs can be sterile
- Visual icons above mobs
- Interaction blocking via config
- Breeding control
Magnifying Glass
- Right-click on animal with magnifying glass in any hand — shows gender and sterility status
- Magnifying glass in offhand — shows icons above all scanned animals within radius
- Magnifying glass in main hand — shows icon only when aiming at a specific mob
Settings
| Parameter | Default | Description |
|---|---|---|
| maleChance | 45 | Male chance (0-50) |
| femaleChance | 45 | Female chance (0-50) |
| displayRadius | 24 | Icon display radius (0-256). 0 = only when aiming |
| allowMaleMaleBreed | false | Allow male-male breeding |
| allowFemaleFemaleBreed | false | Allow female-female breeding |
| allowSterileBreed | false | Allow sterile breeding |
| enableVillagers | true | Enable genders for villagers |
| keepVillagerGender | true | Keep gender when curing zombie villagers |
| enabledMobs | [] | List of mobs affected by the mod |
| autoScanComplete | false | Automatic mob scanning on first launch |
Sterile chance is calculated automatically. By default 45% male and 45% female — the remaining 10% is split equally: 5% of males will be sterile and 5% of females will be sterile. If you set 50% male and 50% female — there will be no chance for sterility, and mobs will not receive sterility.
Commands
| Command | Description | Permission |
|---|---|---|
| /bub reload | Reload config | OP |
| /bub reset | Reset config to default | OP |
| /bub scan | Scan and add new mobs | OP |
| /bub clearcache | Clear gender cache | Player |
Configuration
File: .minecraft/config/genderbub/genderbub.json
{
"settings": {
"maleChance": 45,
"femaleChance": 45,
"displayRadius": 24,
"allowMaleMaleBreed": false,
"allowFemaleFemaleBreed": false,
"allowSterileBreed": false,
"enableVillagers": true,
"keepVillagerGender": true,
"enabledMobs": []
},
"mobs": [],
"eggBlockedMobs": [],
"autoScanComplete": false
}
Examples
{
"settings": {
"maleChance": 45,
"femaleChance": 45,
"displayRadius": 24,
"allowMaleMaleBreed": false,
"allowFemaleFemaleBreed": false,
"allowSterileBreed": false,
"enableVillagers": true,
"keepVillagerGender": true,
"enabledMobs": [
"minecraft:cow" // Add a mob to enabledMobs
]
},
"mobs": [
{
"mobId": "minecraft:cow",
"genders": ["male", "sterile"], // Prevent male and sterile cows from being milked
"itemIds": ["minecraft:bucket"]
}
],
"eggBlockedMobs": [
{
"mobId": "minecraft:chicken",
"genders": ["male", "sterile"] // Prevent male and sterile chickens from laying eggs
}
],
"autoScanComplete": false
}
FAQ
Will there be a port to Fabric / NeoForge / other versions?
Not for now. The mod is made for Forge 1.20.1. If it becomes popular and I have the opportunity, I will try to port it.
Can I use this mod in my modpack?
Yes. The only thing — if you have modded animals, you need to add them manually to enabledMobs in the config, otherwise they won't get genders.
| Translations | Code |
|---|---|
| English | en_us |
| Russian | ru_ru |
| Ukrainian | uk_ua |
| German | de_de |
| Spanish | es_es |
| French | fr_fr |
| Japanese | ja_jp |
| Simplified Chinese | zh_cn |
| Traditional Chinese | zh_tw |
![[BUB] Gender](https://cdn.modrinth.com/data/MbyjNhpr/6b3e11fa3912c5b71d663d15234f1e71343f3200.png)

