Beyond block breaking and combat, Arcanism Mod's spell programming system lets you calculate three-dimensional coordinates and directional forces to move yourself, nearby targets, or an active Spell Entity. Because spell mana drains follow physics-based calculations tied to mass and energy, keeping travel distances and speeds grounded prevents your mana supply from emptying mid-cast.
Calculating Aim and Coordinates with Vectors
To aim a movement effect where you are looking, read your character's orientation and position before applying an action:
1. Chain Spell: Get Caster Position and Spell: Get View Vector to capture your starting coordinates and aim direction.
2. Scale your aim distance using Spell: Multiplication alongside number parts (Spell: Number 0 through Spell: Number 9), then combine it with your starting point using Spell: Addition, grouping expressions inside Spell: Left Paren and Spell: Right Paren.
3. Construct or split custom axes with Spell: Build Vector, Spell: Unit Vector Y, Spell: Vec X, Spell: Vec Y, and Spell: Vec Z. You can also calculate angles with Spell: sin, Spell: cos, and Spell: Pi, or check distances via Spell: Vector Length.
Applying Teleports, Velocity, and Debug Checks
Feed your finished vector into a movement part and verify the output:
- Blink or Impact Warp: Pair
Spell: Get Caster EntityorSpell: Get Nearest EntitywithSpell: Teleportand your calculated coordinates, or combineSpell: Trigger on Touching BlockwithSpell: Get Spell Entity Positionto warp where a projectile lands. - Directional Dashes: Feed a target entity and a scaled view vector into
Spell: Gain Velocityto launch yourself or nearby mobs smoothly. - Testing Math: Place
Spell: Debug PrintbeforeSpell: End Spellto inspect live coordinate and vector values while casting with yourRG Alloy Wand.
