Portal with triggers

Started by francouo on Wed, 12/16/2020 - 20:51

Topic category: Help with modding (Java Edition)

Last seen on 20:50, 16. Dec 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Portal with triggers
Wed, 12/16/2020 - 20:51

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)

Last seen on 13:35, 21. May 2022
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 :)