Teleport System (Beta)

Script Teleport System (Beta) 0.7

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

Supported Skript Version
  1. 2.8
  2. 2.9
  3. 2.10
  4. 2.11
  5. 2.12
  6. 2.13
  7. 2.14
  8. 2.15
Supported Minecraft Versions
  1. 1.18
  2. 1.19
  3. 1.20
  4. 1.21
  5. 26.1
Important Note – Version 0.6 only:
There is an issue on line 106 because I forgot to add a ":" at the end of the condition. So if you are using version 0.6, you must add it at the end of that condition for it to work. Thank you

Requirements :
Skript, Vault

About the Script:
This function handles a fully protected teleportation system with multiple safety checks.
It prevents unsafe teleports, movement exploits, combat escapes, and invalid locations.

⭐ Features:
- Blocks teleporting to unsafe Y levels (too low or too high).
- Prevents teleporting into lava or inside solid blocks.
- Ensures the ground below the destination is safe (not air).
- Cancels teleport if the player is riding a vehicle.
- Cancels teleport if the player moves during the countdown.
- Cancels teleport if the player takes damage.
- Prevents multiple teleports running at the same time.
- Applies cooldown after successful teleport.
- Deducts money only after the teleport succeeds.
- Aternos support.
- Supports custom prefixes to isolate variables for different teleport systems. (+0.6v)
- Includes a built‑in confirmation UI for unsafe teleport locations. (NEW | 0.7v)

Installation:
Place the script inside: Skript/scripts

Unsafe Teleport Confirmation Command:
Code:
/unsafeconfirm
# New (0.7v)

Usage:
Code:
TELEPORT_FUNC_tp(p: player, loc: location, locName: string, price: number, cooldown: number, tpTime: number, CancelOnMove: boolean, msgType: string, prefix: string = "TELEPORT_FUNC", isSafe: boolean = true)
# p: The player who will be teleported.
# loc: The target location.
# locName: Display name of the teleport destination.
# price: Money required to teleport (0 = free).
# cooldown: Time before the player can teleport again.
# tpTime: Countdown duration before teleporting.
# CancelOnMove: If true, teleport cancels when the player moves.
# msgType: Message type ("chat", "actionbar", or "title").
# prefix (+0.6v):  Variable namespace used for cooldown and running-state tracking. If empty, the script automatically uses "TELEPORT_FUNC".
# isSafe (0.7v): (New) tells the system whether to perform safety checks (true) or bypass them and teleport immediately (false)

Examples:
Code:
TELEPORT_FUNC_tp(player, location(0, 65, 0, world("world")), "Spawn", 0, 0, 0, false, "chat")
# Teleports the player instantly to 0, 65, 0.
# No price, no cooldown, no countdown.
# Movement does NOT cancel the teleport.
# Messages are shown in chat.
# Uses the default prefix.
# Safety check is enabled here.
Code:
TELEPORT_FUNC_tp(player, location(150, 70, -40, world("world")), "Mine", 0, 10, 5, true, "actionbar", "", false)
# Teleports the player to the Mine after a 5-second countdown.
# Cooldown is 10 seconds after teleport.
# Movement cancels the teleport during countdown.
# Messages appear in the actionbar.
# Uses the default prefix.
# Safety check is disabled here.
Code:
TELEPORT_FUNC_tp(player, location(300, 80, 300, world("world")), "VIP Zone", 500, 20, 3, true, "title", "HOMES", true)
# Teleports the player to the VIP Zone for $500.
# Money is deducted ONLY after a successful teleport.
# 3-second countdown before teleport.
# Movement cancels the teleport.
# Cooldown is 20 seconds.
# Messages appear as a title/subtitle.
# Uses the "HOMES" prefix.
# Safety check is enabled here.
Code:
TELEPORT_FUNC_tp(player, {homes::%uuid of player%}, "Home", 0, 5, 4, true, "chat", "ANYTHING", false)
# Teleports the player to their saved home location.
# Free teleport with a 4-second countdown.
# Movement cancels the teleport.
# Cooldown is 5 seconds.
# Messages appear in chat.
# Uses the "ANYTHING" prefix.
# Safety check is disabled here.

Compatibility:
The script supports both Java and Bedrock players.

If you have any feedback or suggestions, I’d love to hear them so I can make it even better
Author
kouro
Downloads
138
Views
464
First release
Last update
Rating
0.00 star(s) 0 ratings

Latest updates

  1. Teleport System (Beta) 0.7

    Update Log: 1. Added Unsafe Teleport Confirmation System - Unsafe teleports no longer...
  2. Teleport System - (Beta) 0.6

    Update Log: - Added Prefix Support The new version introduces a prefix argument in the teleport...