Posted August 26, 20205 yr I wanted to check if a player is in the overworld, in the nether or in the end, and if his spawnpoint is in another dimension, cause an explosion, is it possible? Edited August 26, 20205 yr by naelsun
August 26, 20205 yr I'm pretty sure you cannot set your spawnpoint by default in the nether or end. Regardless, you would use the world instance in the entity and either check World#func_230315_m_ for the DimensionType or World#getDimensionKey for the specific world registry key.
August 27, 20205 yr Author 1 hour ago, diesieben07 said: https://minecraft.gamepedia.com/Respawn_Anchor ServerPlayerEntity#func_241141_L_ for the dimension and ServerPlayerEntity#func_241140_K_ for the position. Thank you!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.