Started by
francouo
on
Topic category: Help with Minecraft modding (Java Edition)
I have created a dimension and i have deactivated the default portal, since with triggers i did several "Get block at x, y, z ..." and i managed to place the portal block with certain blocks surrounding it in a specific way. My problem is, how do i achieve that when i enter the dimension a portal is created and it takes me to the overworld portal? Sorry for so much text and thank you for help me. (Sorry for my bad english too, i speak spanish actually)
To enter the dimension, you must add the "when player collides in block" trigger to the portal block (not the portal frame). When you create the trigger, go to "player procedure" and select "Switch dimension of target entity to" and then in the input field select the custom dimension. Go into the game and make a custom structure of the portal. Now under the dimension element, add a procedure for the trigger "when player enters dimension" and make it spawn the structure of your portal (under world management).
Hope this helps :)