Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
- Random gender — each mob spawns as male or female with configurable chances (0-50% each)
- Sterility system — mobs can be infertile, preventing them from breeding
- Visual icons — gender icons appear above mobs when holding the magnifying glass
- Interaction blocking — prevent specific items on certain genders (e.g., stop male cows from being milked)
- Breeding control — restrict same-gender breeding, disable sterile mobs from breeding, or allow everything
- Villager support — with option to keep gender when curing zombie villagers
These mods are added for better compatibility. The mod works with all mods by default.
Magnifying Glass
| Crafting recipe | Description |
|---|---|
![]() |
Right-click — shows gender and sterility, saves to cache Offhand — shows icons above cached animals within radius Main hand — shows icon only when aiming at a cached mobㅤㅤㅤㅤㅤ Command: /give @s genderbub:magnifying_glass |
Settings
| Parameter | Default | Description |
|---|---|---|
| maleChance | 45 | Male chance (0-50) |
| femaleChance | 45 | Female chance (0-50) |
| displayRadius | 24 | Icon display radius (0-256) |
| 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 |
| genderOnlyMobs | [] | Gender only, no restrictions |
| autoScanComplete | false | Automatic mob scanning on first launch |
Sterile chance
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.
Gender-only mobs
Mobs in
genderOnlyMobsnever receive sterility. To work, the mob must be added to bothgenderOnlyMobsandenabledMobs.
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 clear | 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": []
"genderOnlyMobs": []
},
"interactions": [],
"eggRules": [],
"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 mod automatically scans animals on first launch, but some mobs may be missed. If a modded animal doesn't get a gender, add its ID manually to the enabledMobs list in the config.
Translations: English, Русский, Українська, Deutsch, Español, Français, 日本語, 简体中文, 繁體中文
![[BUB] Gender](https://cdn.modrinth.com/data/MbyjNhpr/6b3e11fa3912c5b71d663d15234f1e71343f3200.png)


