Iron's Spells 'n Spellbooks Events
This module specializes in creating an API that extends the functionality of Iron's Spells 'n Spellbooks for developers on Minecraft version 1.18.2. It serves as a tool for modifying the spell system from the original mod and by itself does not introduce any gameplay changes for regular users.
API Capabilities
Developers gain access to two events related to spellcasting:
- SpellPostCast — triggered after a spell is cast
- SpellPreCast — occurs before spell reading begins
![Example]()
Implementation Example
void SpellPreCast(SpellPreCastEvent event) {
// Executes before spell application
return event;
}
void SpellPostCast(SpellPostCastEvent event) {
// Executes after spell casting
return event;
}
Project demonstration video: