[TUTO 2023.1] How to create a right clickable block to teleport in a custom dimension

Started by Darrow1302 on

Topic category: User side tutorials

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[TUTO 2023.1] How to create a right clickable block to teleport in a custom dimension
Mon, 04/24/2023 - 07:38 (edited)

First, you will have to create a dimension, while making sure to uncheck "Enable portal"

https://imgur.com/oAxqIdg

Then save

 

Secondly, you must create your block which will be used to teleport you in your dimension, on the second image it is the "HellPortal"

https://imgur.com/MX0qNuO

Then save

 

Third, go to trigger and create a new procedure in "On block right click", then copy the script of the fourth image

https://imgur.com/tM6Ip4y

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.

https://imgur.com/H6IY9Lk

Then save

 

Fourth, go back to your dimension, trigger and create a new procedure "When player enters dimension".

https://imgur.com/iI0fMLH

See the procedure to add below

https://imgur.com/fC28rIR

 

Now you can compile and test all this in game!

Hoping that it will be useful for you :)

Edited by Darrow1302 on Mon, 04/24/2023 - 07:38
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 hi. sorry for the stupid…
Thu, 10/26/2023 - 15:31

 hi. sorry for the stupid question, but I can't find this puzzle - https://imgur.com/8dGlAUr 

there is only a version of it with 2 "locks", but not with 3

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
where is the and block?
Sun, 11/05/2023 - 16:36

where is the and block?