Magical gene / no coat effect
Magic mob aura
How everything else in the world feels about the horse. A warding horse keeps mobs outside about ten blocks; a baiting one makes every hostile that can see it pick it over anything else in range, including its rider. Both take two copies, and one of each cancels outright.
Crossing two of them
What it does
| Combination | Outcome |
|---|---|
Wrd/Wrd | hostiles will not approach within ~10 blocks |
Bai/Bai | hostiles within ~16 blocks that can see it target it |
Wrd/Bai | nothing — the two cancel |
anything with an n | nothing |
What each one is for
A ward is the horse you leave a stable with overnight. It does not hurt anything or teleport anything; hostiles simply turn away at the edge.
A bait is the horse you take somewhere on purpose. It pulls aggro off its rider and off everything else nearby, which is either a shield or a very short career depending on how much magic health and fighting you bred into it. That pairing is deliberate: the baiting allele is the one that makes the other magical loci worth stacking.
What you can catch
A fraction of a percent of wild horses are the doubled form of each. Both are things you would want to find, so the founder table sits on the expressing combinations rather than on carriers.
Health
A doubled baiting horse is in continuous danger anywhere hostile mobs spawn, and it is not a disorder — the server’s health switch will not turn it off. It is the rule of the gene.
Its gene carrot
- Gene key
horsegenetics.magic_mob_aura- Alleles
Wrdwarding,Baibaiting,n- Priority
- 135 — the magical utility band, beside milk
- Reaches the game as
- a
mob_auraeffect - Coat effect
- none, ever
Nothing on this page has been seen in game. The translator was written against the 26.1.2 sources and is flagged as unverified in its own comments. Checklist on To be verified.
The compound heterozygote is the interesting row
Wrd/Bai produces nothing, and not as a shrug. The two alleles
are opposite answers to one question — does a mob want to be near this
horse — and a horse carrying one of each is asking for both at once.
Rather than pick a winner, or let a ward and a bait fight every tick in the
translator, the locus says the pair is silent.
It has the same practical consequence as on death’s mixed pairs: a breeder who crosses their ward line with their bait line gets an ordinary-looking horse that carries and throws both.
Repel is a shove, not a wall
A hostile inside the radius has its target cleared if it was the horse or the horse’s rider, and is pushed outward. That is deliberately weaker than a real avoidance goal, and the reason is lifecycle: a goal would have to be added to and taken off every mob that ever walked past, and a horse whose aura stopped expressing would leave the goal behind on everything it had ever met.
Vec3 away = mob.position().subtract(horse.position());
if (away.lengthSqr() < 1.0e-4) {
away = new Vec3(1, 0, 0); // exactly on top of the horse; any direction will do
}
away = away.normalize().scale(0.35);
mob.setDeltaMovement(mob.getDeltaMovement().add(away.x, 0.05, away.z));
mob.hurtMarked = true;
Capped, like every radius effect
Twelve entities per beat, one beat a second, counted off the horse’s
own tickCount rather than the world’s — so a field
of them does not do all of its work on one tick. The same rule the healing
aura follows, and every radius effect in the format is required to state a
cap.
Why both alleles are on one locus
They could have been two genes, and then a horse could be both, and being both means nothing. Putting them at one locus makes them alternatives — a herd has a warding line and a baiting line and they are in competition — and it gives the mod a compound heterozygote that says something true instead of something arbitrary.
A gene that is worse for the horse
Baiting is the clearest case in the mod of a gene bred for the owner’s benefit at the horse’s expense, and it is the reason the locus is worth having beside health and fighting: on its own it is a way to lose a horse, and it only becomes a strategy when three loci are bred together.
common/genetics/genes/MagicMobAuraGene.java,
neoforge/server/GeneAbilityHandler.java