The More RPG Library adds four elemental magic spell schools that expand the magical capabilities of Spell Engine. These schools use the standard magic archetype and are designed for traditional spellcasting.
Overview
All magic spell schools are created using the SpellSchools.createMagic() method, which automatically configures them with the MAGIC archetype. Each school has a unique color theme that represents its elemental nature.
Air Magic
Earth Magic
Water Magic
Nature Magic
Air Magic
Air Magic harnesses the power of wind and sky.School Properties
- Color:
0xd4e3fe (light sky blue)
- Archetype:
MAGIC
- ID:
spell_power:air
Registration
public static final SpellSchool AIR = SpellSchools.register(
SpellSchools.createMagic("air", 0xd4e3fe)
);
Power Calculation
Air Magic uses the standard magic school power calculation, which is based on the entity’s air spell power attribute.Air Magic spells benefit from spell power attributes and standard spell school modifiers like haste and critical strike.
Earth Magic
Earth Magic channels the strength of stone and ground.School Properties
- Color:
0xbd8b00 (earthy brown/gold)
- Archetype:
MAGIC
- ID:
spell_power:earth
Registration
public static final SpellSchool EARTH = SpellSchools.register(
SpellSchools.createMagic("earth", 0xbd8b00)
);
Power Calculation
Earth Magic uses the standard magic school power calculation, which is based on the entity’s earth spell power attribute.Earth Magic is the first spell school registered in MoreSpellSchools.java, making it a foundational element of the library.
Water Magic
Water Magic wields the fluid power of water and ice.School Properties
- Color:
0x4dd9ff (cyan blue)
- Archetype:
MAGIC
- ID:
spell_power:water
Registration
public static final SpellSchool WATER = SpellSchools.register(
SpellSchools.createMagic("water", 0x4dd9ff)
);
Power Calculation
Water Magic uses the standard magic school power calculation, which is based on the entity’s water spell power attribute.Water Magic works particularly well with the Soaked status effect, which makes targets more vulnerable to water spells.
Nature Magic
Nature Magic draws upon the life force of plants and natural growth.School Properties
- Color:
0x43bf4b (vibrant green)
- Archetype:
MAGIC
- ID:
spell_power:nature
Registration
public static final SpellSchool NATURE = SpellSchools.register(
SpellSchools.createMagic("nature", 0x43bf4b)
);
Power Calculation
Nature Magic uses the standard magic school power calculation, which is based on the entity’s nature spell power attribute.Nature Magic complements poison and healing-based gameplay mechanics available in the library.
Implementation
All magic spell schools are registered in the MoreSpellSchools.initialize() method:
public static void initialize() {
SpellSchools.register(EARTH);
SpellSchools.register(WATER);
SpellSchools.register(AIR);
SpellSchools.register(NATURE);
// ... other school registrations
}
Using Magic Schools
To use these magic schools in your spells, reference them by their identifiers in your spell JSON files:
{
"school": "spell_power:air",
"power": 10.0
}
All magic spell schools automatically support the standard spell traits including power, haste, critical chance, and critical damage when properly configured.