Gate Of The Watcher - An Astral Sorcery Inspired, Multi Destination Tp Circle using an Ocular Based Selection System

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.
wes10566
Posts: 2
Joined: Thu May 29, 2025 11:54 pm

Gate Of The Watcher - An Astral Sorcery Inspired, Multi Destination Tp Circle using an Ocular Based Selection System

Post by wes10566 »

A friend and I got bored and cracked down on this abomination of a teleportation circle. It reads a list of destination vectors (their Coordinates) Then calculates which one of these destinations you are closest to looking at, then teleports you to it.
Perfect for use as a teleportation Hub of sorts, as you can have a theoretical destination for each and every possible angle the player is looking at.

I've attached an image of the circle, make use of it if you'd like.

Explanation:

TLDR: Calculate the angular differences between destination and player look, find the smallest difference, match it to a destination, then Teleport.

Brown: Math for a list of the Angular Distance between the direction of each destination, and the player's current look vector. Achieved by finding the offset between player's current location and the destination much as if you'd be tping to it via greater teleport. It then takes a copy of that offset, divides it by it's length. then subtracts the player's current look vector from it, before length purifying it again for the angular difference.

Black: Reads in the list of destinations from a focus in an item frame, located on the face of the impetus

lapis: Due to floating point imprecision, we can purify it of such annoyances by multiplying each number in the list of by 100, flooring it, then dividing it back by 100 to restore the original value.

Diamond: The logic used to find the index of the smallest number in the list. By looping through and pushing the smallest number to the ravenmind, we can then run a locater's distillation to find the index of the smallest number.

Emerald: Using that index, we can find the respective destination at the same index in the original list.

Cyan: We can now use that destination to do a Greater Teleport
Attachments
Screenshot 2025-05-29 182406-min.png
Screenshot 2025-05-29 182406-min.png (80.73 KiB) Viewed 6665 times
User avatar
beholderface
Posts: 39
Joined: Tue Dec 06, 2022 10:46 pm

Re: Gate Of The Watcher

Post by beholderface »

I made something similar a while back, but it's nice to see the concept brought to 1.20.
wes10566
Posts: 2
Joined: Thu May 29, 2025 11:54 pm

Re: Gate Of The Watcher - An Astral Sorcery Inspired, Multi Destination Tp Circle using an Ocular Based Selection Syst

Post by wes10566 »

I crammed the circle into an akashic library. And set up a few of these small ones, they can tp to any other location like the big main one
Attachments
image_2025-05-29_202302133-min.png
image_2025-05-29_202302133-min.png (151.68 KiB) Viewed 6655 times