Wiki 9Minecraft Wiki 9Minecraft

Programming Teleportation and Vector Movement Spells

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 Entity or Spell: Get Nearest Entity with Spell: Teleport and your calculated coordinates, or combine Spell: Trigger on Touching Block with Spell: Get Spell Entity Position to warp where a projectile lands.
  • Directional Dashes: Feed a target entity and a scaled view vector into Spell: Gain Velocity to launch yourself or nearby mobs smoothly.
  • Testing Math: Place Spell: Debug Print before Spell: End Spell to inspect live coordinate and vector values while casting with your RG Alloy Wand.