Skip to main content

Purebred Dragon Breed JSON

A purebred dragon definition provides a dragon's base values, taming and breeding items, abilities, habitats, and client resource locations.

File Location

Place files in data/<namespace>/purebred_dragon_breed/ in a data pack. For example:

data/example/purebred_dragon_breed/azure.json

This file has the registry ID example:azure.

Fields

Every field is written directly in the root object. There are no core or content child objects.

FieldTypeDefaultDescription
ambient_soundSound event IDoptionalThe dragon's ambient sound.
death_lootLoot table IDoptionalThe loot table used when the dragon dies.
hatch_timeInteger-1Hatching duration in ticks. Values less than or equal to 0 use the server configuration.
growth_timeInteger-1Growth duration in ticks. Values less than or equal to 0 use the server configuration.
size_modifierFloat-1.0Size multiplier. Values less than or equal to 0 use the server configuration.
primary_colorHex color stringoptionalPrimary color without #, for example "4e91d9".
secondary_colorHex color stringoptionalSecondary color without #.
inventory_textureResource IDminecraft:textures/block/stone.pngTexture used by the dragon inventory screen.
breath_typeBreath type registry IDoptionalReferences an entry in dragon_breath_type.
immunitiesString array[]Immunity identifiers. For example, "drown" changes water pathfinding malus.
attributesObject of attribute ID to number{}Overrides entity attribute base values, such as "minecraft:max_health": 40.0.
habitatsHabitat array[]Inline conditions used for habitat scoring.
abilitiesAbility array[]Inline abilities possessed by the dragon.
taming_itemsItem ID array[]Items that can tame the dragon.
breeding_itemsItem ID array[]Items that can breed the dragon.
hatch_particlesParticleOptions objectoptionalHatching particle. The object must contain type, which is dispatched by the vanilla particle Codec.
accessoriesString array[]Permitted accessory identifiers.
model_locationResource IDoptionalGeckoLib model resource location.
animation_locationResource IDoptionalGeckoLib animation resource location.
variantsVariant array[]Available variants for this purebred dragon.

Variant Object

FieldTypeDefaultDescription
idStringrequiredLocal variant ID.
textureResource IDoptionalSkin texture.
saddle_textureResource IDoptionalSaddled texture.
glow_textureResource IDoptionalEmissive-layer texture.
egg_textureResource IDoptionalEgg texture.
breath_typeInline breath-type objectoptionalVariant-specific breath type. Its schema is documented in Dragon Breath Type.
primary_colorHex color stringoptionalVariant primary color without #.
secondary_colorHex color stringoptionalVariant secondary color without #.
size_modifierFloat-1.0Variant size multiplier.

Example

{
"ambient_sound": "minecraft:entity.ender_dragon.ambient",
"hatch_time": 24000,
"growth_time": 48000,
"size_modifier": 1.15,
"primary_color": "4e91d9",
"secondary_color": "d8f3ff",
"inventory_texture": "example:textures/gui/azure_dragon.png",
"breath_type": "example:frost",
"attributes": {
"minecraft:max_health": 40.0,
"minecraft:movement_speed": 0.28
},
"taming_items": ["minecraft:salmon"],
"breeding_items": ["minecraft:cod"],
"hatch_particles": {
"type": "minecraft:snowflake"
},
"habitats": [
{
"type": "dragon_mounts:biome",
"biome": "#minecraft:is_snowy",
"points": 4
}
],
"abilities": [
{
"type": "dragon_mounts:frost_walker",
"level": 2
}
],
"variants": [
{
"id": "pale",
"texture": "example:textures/entity/dragon/azure_pale.png",
"egg_texture": "example:textures/entity/dragon/egg/azure_pale.png",
"primary_color": "d4efff"
}
]
}
note

variants[].breath_type is a complete inline breath-type object. The root breath_type field is a breath-type registry ID. These fields are not interchangeable.