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

Started by ImNotFun on Sun, 10/04/2020 - 03:41

Topic category: Help with MCreator software

Last seen on 09:30, 24. Nov 2020
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can you save a block's xyz coordinate to a variable?
Sun, 10/04/2020 - 03:41

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
User points:

User statistics:

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

User statistics:

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

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

Last seen on 09:20, 24. Nov 2020
Joined Apr 2010
User points:

User statistics:

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