
Compat with Vivatech
falseresync opened this issue ยท 1 comments
My mod has an item that allows you to teleport (if you remember it from Modfest 1.20 it's the same one but updated), and it allows you to store that teleport point for later use. I've thought there could be compat with Anshar - Anshar could display all of the Comet Warp anchors you have in your inventory when you enter the astral dimension.
I could expose the anchors via a compat class, plus also tweak the existing beacon renderer a bit so that it can be reused perhaps
I wanted to know what part of the code is responsible for collecting the possible teleport destination in Anshar, because I am not sure if FrequencyNetwork is what I need
Looking through the code, I think if Anshar makes an Event for when a player enters a network, I could use that event to inject my anchors into any network regardless of frequency
i.e. an event called something like ENTER_NETWORK
or COLLECT_BEACON_NODES
which passes a previously collected list of BeaconNodes, the current network/frequency and the player, which I then will just .add
my anchors to
(it is important that there's a player somewhere in there, as I need access to the inventory)