Portal with triggers

Started by francouo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Portal with triggers

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)

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
    To enter the dimension,…
Thu, 12/17/2020 - 01:15

    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 :)