naelsun Posted August 26, 2020 Posted August 26, 2020 (edited) 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, 2020 by naelsun Quote
ChampionAsh5357 Posted August 26, 2020 Posted August 26, 2020 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. Quote
naelsun Posted August 27, 2020 Author Posted August 27, 2020 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! Quote
Recommended Posts
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.