Skip to main content

Title

A title defines an unlockable title that grants passive attributes and can be levelled up to a maximum level.

File Location

Title files go in data/<namespace>/mxt/title/ within your datapack.

The filename corresponds to its ID. For example, data/example/mxt/title/sword_saint.json has the ID example:sword_saint.

Fields

FieldTypeDefaultDescription
unlock_conditionEntityConditionmxt:always_trueUnlock condition.
priorityInteger0Selection or display priority.
passive_modifiersList<AttributeEntry>[]Passive attributes; uses vanilla AttributeModifiers.
exclusive_tagsIdentifier[][]Title exclusion groups.
maximum_levelInteger1Maximum level, range 1..1000.

Example

{
"unlock_condition": {"type": "mxt:has_realm", "resource": "example:qi"},
"priority": 10,
"passive_modifiers": [
{"attribute": "minecraft:generic.attack_damage", "id": "example:title/sword_saint", "amount": 1, "operation": "add_value"}
],
"exclusive_tags": ["example:sect_title"],
"maximum_level": 3
}