• check_circle Functions
  • 13,354 views, 18 today
  • 2,199 downloads, 1 today
  • 16
  • 17
  • 16
paul90317's Avatar paul90317
Level 66 : High Grandmaster Professor
108
I made a data pack that lets non-op players can teleport to other people on the server.
/trigger tpa set <PlayerID>

The above command makes you teleport to the player whose ID is <PlayerID>
You can press the TAB to see all players' IDs.
Players' ID
CompatibilityMinecraft 1.13
toMinecraft 1.20
Tags

4 Update Logs

TriggerTPA-v1 : by paul90317 09/22/2023 10:50:13 pmSep 22nd, 2023

simplify the usage

update to 1.20.2
work in 1.13 ~ 1.20.2

if you find bugs, please also give me (game version | is modded | client or server) so that I can help you
LOAD MORE LOGS

Create an account or sign in to comment.

1
12/08/2023 3:24 am
Level 1 : New Miner
Hepatightass
Hepatightass's Avatar
Hi, I'm on 1.20.4 and all the players in my realm have an ID of 0. when I type in the command /trigger tpa set 0, I get a message saying "You cannot trigger this objective yet"
1
02/13/2024 3:11 am
Level 66 : High Grandmaster Professor
paul90317
paul90317's Avatar
Its strange because the id starts from 1
1
07/21/2023 2:30 pm
Level 1 : New Miner
neve2017
neve2017's Avatar
is there anyway to stop the automatic accepting teleporting? like to reverse /trigger tpaccept set -1 ?
1
07/22/2023 9:01 pm
Level 66 : High Grandmaster Professor
paul90317
paul90317's Avatar
/trigger tpaccept set 0
1
11/23/2023 4:52 am
Level 1 : New Miner
n0b0mbs
n0b0mbs's Avatar
i tried this and it didnt work do you know why
1
07/17/2023 2:01 pm
Level 1 : New Miner
Dova
Dova's Avatar
Thanks genius!
Works perfectly ☺
1
05/12/2022 5:38 am
Level 17 : Journeyman Miner
darkluck
darkluck's Avatar
hi, how to use it? what does each of the command stands for?
1
05/12/2022 7:21 am
Level 66 : High Grandmaster Professor
paul90317
paul90317's Avatar
Just download it to datapacks folder, and it work.

For function of each command, You can see the description I updated currently
1
05/11/2022 6:05 am
Level 32 : Artisan Nerd
QuinnBitz
QuinnBitz's Avatar
Cool!, its a solution to make players able to teleport without any plugins.
Maybe you can add so you can set the cooldown in seconds so non-technical players will understand.

I haven't tested this but this would be a way to do it I think.
but the way you would go about doing this is so you enter it easily. and making the user experience better.
I will also suggest defining a /function with a tellraw command what loads the command you need to enter into the chat.
if you have difficulties with tellraw I suggest going to minecraft.tools to generate a command for you.

but how you would be able to enter the amount of seconds and it would convert into ticks is like this:
(I have not seen your datapack code so I dont really know how you did things exactly but I assume you have a countdown for every player until its 0)
You can define custom names for the player side of the scoreboards, I will just have "#", "#ticks" and "#seconds" as a placeholder.

scoreboard players set #20 tpp.cooldown 20

scoreboard players operation #ticks tpp.cooldown *= #20 tpp.cooldown

and the rest goes from there.
1
05/12/2022 7:28 am
Level 66 : High Grandmaster Professor
paul90317
paul90317's Avatar
thk for advice, I may change it currently
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome