- check_circle Functions
- 15,146 views, 6 today
- 2,471 downloads, 0 today
108
I made a data pack that lets non-op players can teleport to other people on the server.
The above command makes you teleport to the player whose ID is <PlayerID>
You can press the TAB to see all players' IDs.
/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.
Compatibility | Minecraft 1.13 |
to | Minecraft 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
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
5521066
119
Create an account or sign in to comment.
Works perfectly ☺
For function of each command, You can see the description I updated currently
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.