Topic category: Help with modding (Java Edition)
I'm working on a mod that adds new dimensions. Instead of the traditional portal, there's a block called a "Portal Hub" that allows you to select a portal block to place above it.
The portal block above has a custom procedure that teleports the player to the other dimension, then places a Portal Hub block under the player, so they'll be able to easily teleport back. Unfortunately, my code is not working. Here is my procedure, which is activated whenever the player touches the custom portal block.
Read the comments on the blocks for more information.