Topic category: Help with Minecraft modding (Java Edition)
Hello, I want help for my berserk mod since I don't know how to make a portal the way I want and I don't know if it is possible or not.
What I want is that when using an item in my case, the behelit creates a structure and that in the structure there is an area in which if you get into it, it will teleport you to the dimension which will be a single giant structure that will occupy the entire dimension and that The only way to get out is either by dying or by killing a mob that will give you an item to get out. The latter, I do know how to do it, but what I don't know how to do is so that the structure that generates the item can function as a portal and that you can from within. act as another "portal" that returns you to the normal world. Thank you and if anyone knows anything I appreciate the help.
The water in this image is where the portal should be to be able to go to the dimension.
create a block when you touch it, teleport the player to your dimension, and add the block to the structure