#per player teleporter

1 messages · Page 1 of 1 (latest)

idle minnow
#

so im trying to make a tool for players to save their position and then teleport to that position later on but i don't know how to make the teleports tie to the player that spawned them?
sorry if this is a silly question and it probably has a super easy solution but im genuinely stuck
it just spawns an invisible armor stand with the tag "position" in the place the player clicked in and teleports the player to any entity with the tag "position", in a limit of only 1 and to the nearest
the problem with this is that i ASSUME if 2 or more players use it in the same server, they might accidentally mix up in the armor stands and end up teleporting to the wrong one

btw the scoreboard in the side is my pitiful attempt at making sort of a identifier but i really didnt know what i was doing lol

(not a datapack yet atleast, its a command block string mostly because i have no idea how to make a dp yet)

amber oceanBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1745966338:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

deep runeBOT
idle minnow
#

ah

#

how would i give the id to an armor stand

pallid scaffold
#

summon the armor stand with some tag that marks it as new, then use scoreboard players operation <new armor stand> <id> = <player> <id> and remove the tag

#

(this is easier in a datapack, as having this all in one function will guarantee everything happens in the right order with no chance of conflicts)

idle minnow
#

ok im gonna try to apply this

#

ig im looking up a tutorial on datapacks

#

ty

amber oceanBOT
#
Question Closed

Your question, #1366899083519725652 (per player teleporter), was resolved!

Original Message

#1366899083519725652 message

Duration open

17m

idle minnow
#

ik this is resolved but how would i go about teleporting the player to the armor stand with the same id

elfin vesselBOT
#

As Id is a score in this command you can use something like ```ansi
execute as @e[type=armor_stand,tag=teleporable] if score @p[tag=teleportme] id = @s id run tp @p[tag=teleportme] @s

dense venture
#

And also use markers not armorstands

idle minnow
#

alrite

idle minnow
#

ok so it works amazingly when theres only 1 person but my friend figured out that if he puts a marker closer to me than it is to him and he right clicks it, it teleports me to the marker instead of him

#

this is quite jank and spaghetti but its what i did
execute as @a[scores={position=3..}] run execute as @e[type=armor_stand,tag=position] if score @p[tag=teleporter] id = @s id run tp @p[tag=teleporter] @s

nvm figured out a solution, kinda jank but works
execute as @a[scores={position=3..}] run execute as @e[type=armor_stand,tag=position] if score @p[tag=teleporter,scores={position=3..}] id = @s id run execute at @s run tp @p[scores={position=3..},tag=teleporter] @s

elfin vesselBOT
#

Point 1 use this ```ansi
execute as @a[scores={position=3..}] as @e[type=armor_stand,tag=position] if score @p[tag=teleporter] id = @s id run tp @p[tag=teleporter] @s

#

So it would be

execute as @a[scores={position=3..}] as @e[type=armor_stand,tag=position] if score @p[tag=teleporter,scores={position=3..}] id = @s id at @s run tp @p[scores={position=3..},tag=teleporter] @s
idle minnow
#

ill try this after i get home, but the functionality of it already works and i was only really planning on making the teleporter due to friend's requests, is there a better way to make durability? right know im only checking if position is 3 or more, then it adds "1" to a durability score, and when it reaches 5, durability resets and it clears 1 of the recallers from the persons inventory

#

(im pretty much using the "position" scoreboard as a sort of "usage" counter)

cedar roost
#

Membership: https://www.youtube.com/channel/UCBZiIsIp_k6s1_rQoM5jEAw/join
Ep065: Using Personal player storage to make multiplayer homes.

00:00 Intro
01:05 Create folders and files
03:20 Function load
04:20 Function tick
04:40 Predicate trigger_home
05:55 Function player_tick
07:30 Function trigger_home
12:05 Advancement first_join
13:00 Functi...

▶ Play video
amber oceanBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.

amber oceanBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.