Topic category: User side tutorials
First, you will have to create a dimension, while making sure to uncheck "Enable portal"
Secondly, you must create your block which will be used to teleport you in your dimension, on the second image it is the "HellPortal"
Third, go to trigger and create a new procedure in "On block right click", then copy the script of the fourth image
To explain the procedure below, we start by checking if the player has nothing in his hand (you can modify it with the object you want), then we check if the block on which we click is the block of our portal and finally we check if the player is in the overworld.
If these conditions are met, then the player can teleport into the dimension.
then we do the same thing but this time to return to the overworld.
Fourth, go back to your dimension, trigger and create a new procedure "When player enters dimension".
See the procedure to add below
Now you can compile and test all this in game!
Hoping that it will be useful for you :)