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

Started by Bronze on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i save position of block in a global variable?

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?

Joined Mar 2018
Points:

User statistics:

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

I need to create 3 Seperate Global Variables yes?

Joined Mar 2018
Points:

User statistics:

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

Okay thanks!

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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?

Joined Mar 2018
Points:

User statistics:

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

Oh wait it's in minecraft components

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.

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Mar 2018
Points:

User statistics:

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

Okay, thank you very much!

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.

Joined Mar 2018
Points:

User statistics:

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

Alright

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.