Cross Breeding - MWall541/Dragon-Mounts-Legacy GitHub Wiki

├── data  
│   └── example_addon  
│       ├── dragonmounts
|       |   ├── cross_breeding
|       |   |   └── example_crossbreed.json

While not used by any of the dragon breeds in the base mod, Cross Breeding is a feature of DML that allows addons to define the result of the child breed of two parents. For example, SHOULD DML implement this, an Ice dragon and a Fire dragon could produce a Water dragon egg.

While this data expects two parents, it does not matter which parent is which. parent1 and parent2 are just simple identifiers. The behavior reflects the same in game when breeding. It does not matter what dragon is set in love mode first.

"parent1" (Required)

Expects: String (ResourceLocation pointing to the type of dragon breed)

Example: "parent1": "dragonmounts:ice"

One of the parent breeds that will produce "child"

"parent2" (Required)

Expects: String (ResourceLocation pointing to the type of dragon breed)

Example: "parent2": "dragonmounts:fire"

One of the parent breeds that will produce "child"

"child" (Required)

Expects: String (ResourceLocation pointing to the type of dragon breed)

Example: "child": "dragonmounts:water"

The breed of the egg "parent1" and "parent2" will produce.

⚠️ **GitHub.com Fallback** ⚠️