π GlymeraBreeding
Manual and automatic animal breeding for Hytale
Don't miss my other exciting projects β take a look at GlymeraCraft's Profile
Discord: https://discord.gg/s5NRFWfxgy
What is GlymeraBreeding?
GlymeraBreeding adds a complete animal breeding system to Hytale. This package contains two plugins that work independently or together: GlymeraBreeding for manual, player-controlled breeding, and GlymeraAutoBreed for passive, automatic breeding in the wild and on farms.
Both plugins support 16 animal species including cows, pigs, sheep, horses, chickens, goats, camels, bison, and more. Babies are born as actual baby NPC variants and grow into adults over time. Growth is persistent β babies survive server restarts and chunk unloads.
GlymeraBreeding β Manual Breeding
Hit a tamed animal with a stick to mark it as ready to mate. Then hit a second animal of the same species within range. If both animals are close enough, a baby spawns between them with a heart particle effect.
How It Works
- Hold a stick in your hand (configurable)
- Hit a tamed animal β it becomes "ready to mate" (30 seconds by default)
- Hit a second animal of the same species within 10 blocks
- A baby spawns between the two parents
- The baby grows into an adult after the configured growth time (~5 real minutes by default)
Rules
- Only tamed animals can be bred manually
- Both animals must be the same species (e.g. two Tamed Cows)
- Animals must be within the configured mate range (default: 10 blocks)
- Configurable cooldown per player per species after a successful breed (default: 5 minutes)
- The breeding item does not hurt animals β damage is cancelled
- Hitting the same animal twice tells you to find a different partner
Configuration (config.json)
All settings are configurable via config.json. The file is located in the plugin's data directory at mods/de.glymera_GlymeraBreeding/config.json and is created automatically on first start with default values.
To change settings, stop the server, open the file with any text editor, adjust the values, save, and restart the server.
- breedingItem β The item used to trigger breeding (default: "Ingredient_Stick")
- mateRange β Maximum distance between two animals to breed (default: 10.0 blocks)
- readyDurationSeconds β How long an animal stays "ready to mate" after being hit (default: 30 seconds, real time)
- breedCooldownSeconds β Cooldown per player per species after breeding (default: 300 seconds / 5 minutes, real time)
- growthTimeGameSeconds β Time for a baby to grow into an adult in game-time seconds (default: 9000, which equals ~5 real minutes at 30x game speed)
- growthScanIntervalSeconds β How often to check for mature babies (default: 30 seconds, real time)
Note on time units: Cooldown and ready duration values are in real seconds. Growth time is in game-time seconds β at the default 30x game speed, 9000 game-seconds equals approximately 5 real minutes.
GlymeraAutoBreed β Automatic Breeding
Animals that live near each other may produce offspring on their own. The plugin periodically scans all loaded chunks, groups animals by species and chunk, and gives nearby pairs a chance to breed automatically. A built-in population cap prevents overpopulation.
How It Works
The plugin runs a scan every 60 seconds (configurable). For each chunk, it groups all breedable adults by species. If two animals of the same species are within the configured distance, they have a random chance to produce a baby. Only one breeding event per species per chunk per scan β populations grow steadily, not explosively.
Population Cap
Before breeding occurs, the plugin checks how many animals of the same species already exist within a configurable radius around the breeding pair. If the count meets or exceeds the cap, no new baby is spawned. Both adults and babies count towards the population limit. This prevents areas from becoming overcrowded while still allowing natural population growth.
What Can Breed Automatically
AutoBreed works with both wild and tamed animals. Wild and tamed variants of the same species are treated as the same breed group (e.g. Cow and Tamed_Cow count together for population checks). Additionally, intelligent NPCs with baby variants can breed: Feran (civilians, burrowers, sharptooths, longtooths, windwalkers), Kweebecs, and Scarak Broodmothers.
Configuration (config.json)
All settings are configurable via config.json. The file is located in the plugin's data directory at mods/de.glymera_GlymeraAutoBreed/config.json and is created automatically on first start with default values.
To change settings, stop the server, open the file with any text editor, adjust the values, save, and restart the server.
- scanIntervalSeconds β How often to scan for breeding pairs (default: 60, minimum: 10, real time)
- maxBreedDistance β Maximum distance between two animals to breed (default: 5.0 blocks)
- breedChancePercent β Chance per eligible pair per scan (default: 20%)
- breedCooldownSeconds β Cooldown per individual animal after breeding (default: 600 seconds / 10 minutes, real time)
- growthTimeGameSeconds β Time for a baby to grow into an adult in game-time seconds (default: 9000, which equals ~5 real minutes at 30x game speed)
- breedCheckRadius β Radius in blocks to check for population cap (default: 15)
- maxSameTypeInRadius β Maximum number of same-species animals allowed within the check radius before breeding is blocked (default: 6, minimum: 2)
Note on time units: Cooldown and scan interval values are in real seconds. Growth time is in game-time seconds β at the default 30x game speed, 9000 game-seconds equals approximately 5 real minutes.
Supported Species
Both plugins support the following animal species (baby variant in parentheses):
- Cow (Calf), Pig (Piglet), Sheep (Lamb), Horse (Foal)
- Goat (Kid), Chicken (Chick), Desert Chicken (Chick), Turkey (Chick)
- Boar (Piglet), Warthog (Piglet), Wild Pig (Piglet)
- Camel (Calf), Bison (Calf), Mouflon (Lamb), Ram (Lamb), Skrill (Chick)
AutoBreed additionally supports: Feran variants (Cub), Kweebec variants (Youngling), and Scarak Broodmother (Young).
Technical Details
- Manual breeding item: Stick (configurable via config.json)
- Baby growth is persistent β tracked via spawnInstant, survives server restarts and chunk unloads
- Heart particle effects on breeding and growth
- Thread-safe: all spawning happens on the World Thread
- No commands β breeding is interaction-based (manual) or fully automatic
- Both plugins create their config.json automatically on first start
Installation
- Stop your Hytale server
- Copy the plugin JAR(s) into your server's mods/ folder:
- GlymeraBreeding.jar β for manual breeding
- GlymeraAutoBreed.jar β for automatic breeding
- Install one or both β they work independently
- Start your server
- Both plugins create their
config.json automatically on first start
No asset packs or additional files required β just the JAR(s).
Included in this Package
- GlymeraBreeding.jar (manual breeding)
- GlymeraAutoBreed.jar (automatic breeding)
Support
Having issues or questions? Leave a comment or visit our Discord!
Developed by GlymeraCraft