Casting Context

Returns the location the spell is being cast from.

Returns the direction the casting block or entity is facing as a unit vector.

Returns the entity casting the spell, if available.

Returns the dimension where this spell is being cast.

Returns the amount of mana directly available to the spell.

This delusion counts the amount of mana in all mana-carrying items the caster is holding or wearing,including Knots and Whorls.

When cast from a Spell Construct, only the mana in the Construct's one Knot slot is counted.

Returns the maximum amount of mana that the caster of the spell can store. Works similarly to the previous delusion.

Returns the spell slot running this spell, or void if this casting context does not use spell slots.

Returns a map containing the combined maps of all rings worn, with any entries that aren't valid macros filtered out.

The result of this trick is equal to the map used when evaluating macros.

See the entry on Macros for more details.

Returns the selected hotbar slot of the caster, if available.