How do i save position of block in a global variable?

Started by Bronze on Wed, 05/06/2020 - 14:28

Topic category: Help with modding (Java Edition)

Last seen on 14:50, 24. Sep 2020
Joined Mar 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do i save position of block in a global variable?
Wed, 05/06/2020 - 14:28

Title says it all, I want to do a Respawn Point that let's you respawn in nether and other dimensions like that but I need to save coordinates of the block in global variables for that, how do I do that?

Last seen on 10:16, 31. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use three variables, x y and…
Wed, 05/06/2020 - 17:51

Use three variables, x y and z and store current coordinates in them.

Last seen on 14:50, 24. Sep 2020
Joined Mar 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I need to create 3 Seperate…
Wed, 05/06/2020 - 21:06

I need to create 3 Seperate Global Variables yes?

Last seen on 14:50, 24. Sep 2020
Joined Mar 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay thanks!
Thu, 05/07/2020 - 08:51

Okay thanks!

Last seen on 14:50, 24. Sep 2020
Joined Mar 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I save coordinates…
Thu, 05/07/2020 - 09:19

How do I save coordinates though, I have only option to save world spawn x, y or z coordinates, how to save the coordinates of the block?

Last seen on 14:50, 24. Sep 2020
Joined Mar 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Oh wait it's in minecraft…
Thu, 05/07/2020 - 09:47

Oh wait it's in minecraft components

Last seen on 10:16, 31. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I suggest you check our…
Thu, 05/07/2020 - 09:53

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

The tutorials don't directly address your issue but will give you insight into many features of MCreator, if you have time to check it.

Last seen on 14:50, 24. Sep 2020
Joined Mar 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to teleport player to a…
Thu, 05/07/2020 - 10:07

How to teleport player to a dimension that numerical variable has been saved? I can't find any version of teleport player to dimension with numbers.

Last seen on 14:50, 24. Sep 2020
Joined Mar 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay, thank you very much!
Thu, 05/07/2020 - 10:10

Okay, thank you very much!

Last seen on 10:16, 31. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to teleport player to a…
Thu, 05/07/2020 - 10:25

How to teleport player to a dimension that numerical variable has been saved? I can't find any version of teleport player to dimension with numbers.

This is not possible, you can open a feature request for this.

Last seen on 14:50, 24. Sep 2020
Joined Mar 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Alright
Thu, 05/07/2020 - 10:33

Alright

Last seen on 20:53, 26. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I've already done this, just…
Thu, 09/24/2020 - 14:03

I've already done this, just make a condition for when to save the position of the player and store in variables x, y and z. Put in the procedure that teleports you to the coordinates saved in the variables when you enter the other dimension.