- Supported Skript Version
- 2.8
- 2.9
- 2.10
- 2.11
- 2.12
- 2.13
- 2.14
- 2.15
- Supported Minecraft Versions
- 1.18
- 1.19
- 1.20
- 1.21
- 26.1
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.
- NEW : Supports custom prefixes to isolate variables for different teleport systems.
Installation:
Place the script inside: Skript/scripts
Usage:
Examples:
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
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.
- 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.
- NEW : Supports custom prefixes to isolate variables for different teleport systems.
Installation:
Place the script inside: Skript/scripts
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")
# 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 — (New) Variable namespace used for cooldown and running-state tracking. If empty, the script automatically uses "TELEPORT_FUNC".
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.
Code:
TELEPORT_FUNC_tp(player, location(150, 70, -40, world("world")), "Mine", 0, 10, 5, true, "actionbar", "")
# 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.
Code:
TELEPORT_FUNC_tp(player, location(300, 80, 300, world("world")), "VIP Zone", 500, 20, 3, true, "title", "HOMES")
# 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.
Code:
TELEPORT_FUNC_tp(player, {homes::%uuid of player%}, "Home", 0, 5, 4, true, "chat", "ANYTHING")
# 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.
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