Started by
GameCanenix
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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
the your trigger should be either Player Respawns
or Player Joins World
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?
be fine prob
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?
player dies trigger
set Event target entity spawn to x y z
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
its hard to explain here, but basically just make it so when the player enters the dimension, it sets its spawn point
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.