Topic category: Help with modding (Java Edition)
So for my mod I'm working on (Or mods, for that matter) I'm trying to make an item that upon right click teleports the player to their spawn point (Where they respawn, not the actual original spawn point). I tried making it so that upon right click, provided that the player has the teleportation item & the item that it consumes, then it will switch the dimension to surface. This doesn't work quite right because that won't allow it to teleport the player to a custom dimension where you can set your spawn point.
Does anyone know how to make it so that it literally just teleports the player directly to their spawn point, regardless which dimension? Thanks in advance ;)