Started by
Bronze
on
Topic category: Help with Minecraft modding (Java Edition)
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?
Use three variables, x y and z and store current coordinates in them.
I need to create 3 Seperate Global Variables yes?
Yes, each for one coordinate
Okay thanks!
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?
Oh wait it's in minecraft components
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.
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.
Okay, thank you very much!
This is not possible, you can open a feature request for this.
Alright
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.