Line between two vectors

Post your coolest Hexcasting creations here.

New topics are NOT for chatting or asking help, put those in the comments of a post or in a different forum.
User avatar
Cameron TNT
Posts: 3
Joined: Wed Jun 11, 2025 1:22 am

Line between two vectors

Post by Cameron TNT »

This spell takes two vectors and returns a list of the positions between them. This could be used to find entites in a close range to said line, dig paths through ground (potentially using https://forum.petra-k.at/viewtopic.php?t=142 to generate the relative positions) or create a path in the air.

The positions this spell returns are not rounded to the nearest block as blockwork spells round automatically and the difference in other spells, if not desired, is negligible.

The ravenmind and stack are left unaffected by this spell, and it does not utilise any addons.

This spell has a range limit of ~100 blocks due to the stack limit, which makes it suitable for anything within the players ambit. For larger distances, sentinel walking will be required to maintain ambit, making this spell unsuitable regardless of its range.

The step size of the line can be adjusted (maybe you want to explode only every 5 blocks). To do this the number of steps must be divided by n (to the nearest integer) and step size multiplied by n.

If you have any queries regarding the spell feel free to ping me on discord, or PM me on the forums.

aaeddwddwaadaaaadaaqqqqqawwwaqawddqaawdedwddqddqweddqddqqaeaaeqqqdeaqqaaeddwaawaadaaNumerical Reflection: -3ddadeeeNumerical Reflection: 4aadaaadaadaadeaqqvvewdqdwe

Code: Select all

Prospector's Gambit
Subtractive Distillation
Gemini Decomposition
Gemini Decomposition
Axial Purification
Multiplicative Distillation
Undertaker's Gambit
Division Distillation
Rotation Gambit II
Ceiling Purification
Rotation Gambit II
Vacant Reflection
{
	Hermes' Gambit
	Prospector's Gambit
	Additive Distillation
	Gemini Decomposition
	Numerical Reflection: -3
	Fisherman's Gambit
}
Numerical Reflection: 4
Fisherman's Gambit II
Gemini Gambit
Hermes' Gambit
Bookkeeper's Gambit: vv
Flock's Gambit