Magical gene / magical body-stat genes
Agatebound
A ribbon of banded colour runs diagonally across the barrel like a slice through agate, every band outlined in near-black, with a bright seam along its middle.
What it can come out as
| Outcome | Carrying |
|---|---|
| Grey agate | P/P · P/C · P/n |
| Agatebound | C/C |
| Wild type | C/n · n/n |
How each one is actually drawn - region by region, and the layers it is built from - is on the coding tab.
Crossing two of them
Finding one
About 1 in 3,571 wild horses is born showing this. That is the whole of the supply: catch one, or make one with the carrot below. Breeds set their own pools and a breed built around this gene will carry it far more often than the wild population does.
| Wild pair | Shows as | How often |
|---|---|---|
P/P | Grey agate | 0.001% — 1 in 100,000 |
P/C | Grey agate | 0.004% — 1 in 25,000 |
P/n | Grey agate | 0.019% — 1 in 5,263 |
C/C | Agatebound | 0.004% — 1 in 25,000 |
n/n | Wild type | 99.972% |
Its gene carrot
The file
common/src/main/resources/horsegenetics/genes/agatebound.json — a
data-driven gene, not a Java class. It is listed in the
index.json beside it and registered by Genes' class
initialiser at startup.
| Key | horsegenetics.agatebound |
|---|---|
| Phase | magical — it adds signed colour in phase 3, after the pigment has resolved |
| Priority | 149 — where it sits in the one (priority, key) paint order |
| Alleles | P · C · n |
| Varies per horse | 2 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look |
| Built from | FRACTAL, PARTS, PATH, RAMP, TOWARD |
Why it is built this way
The ribbon is a stroked PATH rather than a field, because the reference is a band that goes somewhere - it enters low at the shoulder and leaves high at the haunch - and no noise field will reliably lay one diagonal across a horse. Everything inside it is a field.
The RAMP is axis=noise, not axis=X. A straight axis through the horse is monotonic: the colour would sweep once from one end of the sash to the other and never come back, and agate banding doubles back constantly. noise reads a smooth field instead, so the colour wanders and pools.
The RAMP's seed and scale are pointed at the SAME knob and the same number as the FRACTAL in the mask above it. That is what makes the colour line up with the shape; point them anywhere else and the bands and the colours are two unrelated patterns sharing a region.
The dark contour lines are a ridged FRACTAL on that same seed and scale, so they fall on the boundaries of the very blobs the first layer coloured. Three octaves for the lines against two for the field: the lines want the extra detail, the colour does not.
No black form. This gene's whole idea is that the ribbon runs through a spread of colour, and a grey version of that is a different marking.
Sourced from a traced SVG, but not drawn with the SVG mask. The trace runs to thousands of path commands over hundreds of subpaths, most of it trace noise - well past the point ceiling, which exists to keep a traced photograph out of a gene file, and it would have made the marking identical on every horse. The reference was read for what KIND of shape each element is and rebuilt from field masks. A hand-drawn, low-node version of the source would be worth the SVG mask with its d string verbatim.
Arrived keyed 'ixora.agatebound'. Renamed to the horsegenetics namespace every other gene in the mod uses - the format allows a modder their own, but a gene shipping INSIDE this mod under a second namespace breaks the tooling that builds a key from a slug.
What it paints
Each outcome, described the way the gene file describes it, and then the layers that draw it in the order they are painted. The prose is the part a reader checks a bake against; the list underneath is what the engine actually did.
Grey agate
A banded grey ribbon across the barrel, outlined in black with a white seam.
- the banded flow —
PARTS×PATH×FRACTAL, painted withRAMP - the contour lines between bands —
PARTS×PATH×FRACTAL, painted withTOWARD - the bright seam down the middle —
PARTS×PATH×FRACTAL, painted withTOWARD
Agatebound
A ribbon of wandering, banded colour across the barrel, every band outlined in near-black.
- the banded flow —
PARTS×PATH×FRACTAL, painted withRAMP - the contour lines between bands —
PARTS×PATH×FRACTAL, painted withTOWARD - the bright seam down the middle —
PARTS×PATH×FRACTAL, painted withTOWARD
Wild type
No marking.
Paints nothing.