Well the only thing to do so is to disable the dimension's portal, and then you detect when the player rights click on your custom structure. You replace the air blocks by the portal blocks and you add a procedure to the portal blocks (on player collide) and you teleport the player to the dimension. Then, you place the portal schematic with the portal blocks near the player's location and done!
could you tell me more about your problem, i might be albe to help you
Well the only thing to do so is to disable the dimension's portal, and then you detect when the player rights click on your custom structure. You replace the air blocks by the portal blocks and you add a procedure to the portal blocks (on player collide) and you teleport the player to the dimension. Then, you place the portal schematic with the portal blocks near the player's location and done!