Started by
FanelLore
on
Topic category: Help with Minecraft 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 ;)
Edited by FanelLore on Mon, 07/13/2020 - 20:14
Maybe North West Trees Gaming’s video can help with that?
I will check it out for sure! thanks for the suggestion
You could maybe try running the minecraft command: /execute in minecraft:surface run tp @p x y z
The "x y z" would be your spawn coordinates.
Yes, it is possible.
why would you do a command? Inside procedure it's complicated and there's already a procedure block to do that. It's "Move event/target entity to x y z"
Because OP needs to be in the right dimension. You could do it with procedures if you'd like of course, but I've had troubles with switching dimensions using procedures and I know using an "execute in run" command works exactly how OP needed.
I might be late to this, but you could technically make an item that sets a waypoint with a click, then with a another click it teleports you to it, I made something like this in a TNT mod, like a remote detonator