Skip to main content

Dragon Breath Type JSON

A dragon breath type defines the breath's color gradient, base damage, fire duration, particle density, and additional status effects.

File Location

Place files in data/<namespace>/dragon_breath_type/. For example:

data/example/dragon_breath_type/frost.json

This file has the registry ID example:frost, which can be referenced from the root breath_type field of a purebred dragon.

Fields

FieldTypeDefaultDescription
colorsHex color string array[]Breath gradient colors without #.
damageFloat2.0Base damage for each hit.
fire_timeInteger0Time in ticks for which a target is set on fire. 0 applies no additional fire.
particle_densityInteger3Breath particle density.
effectsEffect array[]Status effects that may be applied on hit.

Effect Object

FieldTypeDefaultDescription
effectStatus effect IDrequiredFor example, minecraft:slowness.
durationIntegerrequiredEffect duration in ticks.
amplifierInteger0Effect level, starting at 0.
chanceFloat1.0Application probability; normally between 0.0 and 1.0.

Example

{
"colors": ["b8efff", "4e91d9", "d8f3ff"],
"damage": 3.5,
"particle_density": 4,
"effects": [
{
"effect": "minecraft:slowness",
"duration": 100,
"amplifier": 1,
"chance": 0.75
}
]
}