(Solved)How Can i make the player respawn in custom dimension?

Started by GameCanenix on

Topic category: Help with modding (Java Edition)

Last seen on 02:23, 27. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Solved)How Can i make the player respawn in custom dimension?
Mon, 10/25/2021 - 20:29 (edited)

I'm currently working on an adventuring mod. So far I have a procedure so that when they join the game, it sends them to the custom dimension. I created a basic procedure that just makes where when they join the dimension it makes that their spawn. However during testing when I would /kill to see if it worked the game crashed.

 

Procedure for Respawn in Dimension

Mccreator Console Error

 

Is there any way I can fix the error? Or how could I change the procedure for this to work? Thank you in advance.

Edited by GameCanenix on Mon, 10/25/2021 - 20:29
Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the  your trigger should be…
Mon, 10/25/2021 - 01:29

the  your trigger should be either Player Respawns

or Player Joins World

Last seen on 02:23, 27. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If that's the case then how…
Mon, 10/25/2021 - 01:34

If that's the case then how would I get the location where they spawned...or do i just add that to the trigger and it would be fine?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
be fine prob
Mon, 10/25/2021 - 01:40

be fine prob

Last seen on 02:23, 27. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried the trigger Player…
Mon, 10/25/2021 - 17:45

I tried the trigger Player Joins World but it sends the player back to the overworld. Is there a way I can make him respawn where he spawned in the dimension?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
player dies trigger set…
Mon, 10/25/2021 - 17:56

player dies trigger

set Event target entity spawn  to x y z

Last seen on 02:23, 27. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried that as well and I'm…
Mon, 10/25/2021 - 18:14

I tried that as well and I'm still spawning in the overworld. Is there a way i can use global variables or something to keep the values of where the player spawned in the dimension to then use them to use it in a function when player respawned? If so how could I do it..or if there is another way i could

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its hard to explain here,…
Mon, 10/25/2021 - 18:25

its hard to explain here, but basically just make it so when the player enters the dimension, it sets its spawn point

Last seen on 02:23, 27. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, thanks for the help…
Mon, 10/25/2021 - 20:33

Alright, thanks for the help I was able to solve it, I just created an advancement that worked when you went to that dimension. Afterward, I just used a Player completes advancement trigger.

 

Solution