Magical Scepter

Scepter Definition

Scepters are stored as JSON files within a data pack in the path data/<namespace>/magicalscepter/scepter.

  • {}: Root object.
    • RGB color: Color value - Display color of the scepter.
    • I experience_cost: Non negative integer - Cost in experience points to cast a spell with this scepter.
    • B infusable: Boolean - Specifies if scepter can be infused to become a different scepter. Defaults to false.
    • {} infusion: Predicate - Infuses scepter when it passes and is provided with entity loot context type.
    • {}/"" spell_attack: Spell component or entry ID - Spell cast on attack with scepter.
    • {}/"" spell_protect: Spell component or entry ID - Spell cast on use with scepter.
Example JSON
{
"color": 12067829,
"experience_cost": 8,
"infusion": [
{
"condition": "minecraft:damage_source_properties",
"predicate": {
"source_entity": {
"type": "minecraft:ender_dragon"
}
}
}
],
"infusable": true,
"spell_attack": "magicalscepter:dragon_fireball",
"spell_protect": "magicalscepter:dragon_growl"
}