Can you save a block's xyz coordinate to a variable?

Started by ImNotFun on

Topic category: Help with MCreator software

Last seen on 07:27, 21. Jun 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you save a block's xyz coordinate to a variable?

Is there a way to get a block's XYZ location and save that into a global variable so you can teleport things to it?

Last seen on 16:17, 10. Oct 2020
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make 3 global…
Sun, 10/04/2020 - 18:47

You can make 3 global variables that is "x, y, z"

Last seen on 16:17, 10. Oct 2020
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And then you can use "/tp …
Sun, 10/04/2020 - 18:58

And then you can use "/tp (variable1) (variable2) (variable3)"

I suggest you check our…
Mon, 10/05/2020 - 09:39

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei