Enter XYZ Coordinates in gui to teleport entity to specific location

Started by Crimbo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Enter XYZ Coordinates in gui to teleport entity to specific location

so basically I'm trying make it so when you type coordinates in a gui, you press a button and the targeted mob gets teleported to those coordinates that you entered 

 

I've tried various attempts with little success so any help would be greatly appreciated

 

thanks Crimbo

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
first have 3 text inputs…
Wed, 01/24/2024 - 22:34

first have 3 text inputs coords x y z and a button in a gui, now create a block that will open that gui on right click, then create a procedure for the button that will get the text inside the text boxes (use "number from text" block), using the get text inside text field "name of field", then make those texts local variables xcoords ycoords zcoords, and teleport target to that location using those local variables as the coords. (make sure to not use x y z as names, they wont work) optionally you can skip using the variables and just have the number from text using the get text fields.