Telepot the player to a specific block (SOLVED)

Started by davtov on

Topic category: Help with MCreator software

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Telepot the player to a specific block (SOLVED)
Mon, 01/06/2020 - 21:36 (edited)

So, I want to make it so that if I press a button in a GUI, the player who clicked it, will be teleported to that specific block. Here is my procedure so far and it doesn't work, any suggestions? 

My procedure (It is activated when the GUI button is pressed)

 

Edited by davtov on Mon, 01/06/2020 - 21:36
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Solution is that you make a…
Mon, 01/06/2020 - 21:41

Solution is that you make a variable, so, for example, let's refer to the block you want to TP to, as "Dest_block". You need to make a variable called something like, "Dest_block_X", and then two more, "Dest_block_Y", "Dest_block_Z". Then, you have to select, for the Dest_block, with a procedure that when it is placed, it sets the variables to it's own "X", "Y", and "Z" coordinates. And for the final step, you have to make it so that the "Move entity to x: y: z: " procedure, for all those coordanates, you'll have to set "get varaible Dest_block_X" and, do this for all 3 coordinate variables and you'll be set.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello could you post a…
Mon, 01/09/2023 - 12:20

Hello could you post a screen shot of the procedure you made as the solution? i know you explained it but a pic would really be useful!

 

thanks