Void Teleport

  • 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 comminuty!

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

tcrnado

Member
Jan 6, 2021
1
0
1
19
Category: Teleport

Suggested name: Void Teleport

Spigot/Skript Version: Latest

What I want:
I have a parkour server and falling in the void is annoying. To counter void damage, I want a skript for when someone falls into the void they get sent to their checkpoint instead of dying to the void. When they get teleported they will use /checkpointtp to get back to their checkpoint. This command already exists in my parkour skript, so if someone could include
Code:
player command "checkpointtp"
that would be great.


Ideas for commands: None

Ideas for permissions: None

When I'd like it by: Any time
 
on damage of a player:
if damage cause is void:
Make player execute command “/checkpointtp”

I believe that ought to work
 
on damage of a player:
if damage cause is void:
Make player execute command “/checkpointtp”

I believe that ought to work
Maybe cancel the damage event as said in the request "To counter void damage"
 
Category: Teleport

Suggested name: Void Teleport

Spigot/Skript Version: Latest

What I want:
I have a parkour server and falling in the void is annoying. To counter void damage, I want a skript for when someone falls into the void they get sent to their checkpoint instead of dying to the void. When they get teleported they will use /checkpointtp to get back to their checkpoint. This command already exists in my parkour skript, so if someone could include
Code:
player command "checkpointtp"
that would be great.


Ideas for commands: None

Ideas for permissions: None

When I'd like it by: Any time

i believe you can make the spawn really tall and then make a region like 8 blocks under spawn and then do this script

Code:
on region enter:
  "%region%" contains "nonovoid"
  execute player command "/checkpointtp"

P.S call the region nonovoid
 
Category: Teleport

Suggested name: Void Teleport

Spigot/Skript Version: Latest

What I want:
I have a parkour server and falling in the void is annoying. To counter void damage, I want a skript for when someone falls into the void they get sent to their checkpoint instead of dying to the void. When they get teleported they will use /checkpointtp to get back to their checkpoint. This command already exists in my parkour skript, so if someone could include
Code:
player command "checkpointtp"
that would be great.


Ideas for commands: None

Ideas for permissions: None

When I'd like it by: Any time

this prob works

Code:
on join:
  while {%player%parkour} is true:
    altitude of player is below 10:
      if {lastcheckpoint%player%} exists:
        teleport player to {lastcheckpoint%player%}
      if {lastcheckpoint%player%} does not exist:
        teleport player to {parkourtp}


command /parkoursetspawn:
  permission: parkouret.spawn
  trigger:
    set {parkourtp} to location of player
    send "&cSet Spawn point for parkour to your location!" to player

command /parkour:
  permission: sk.parkour
  trigger:
    if {parkourtp} exists:
      teleport player to {parkourtp}
      set {%player%parkour} to true
      send "&8Teleported you to the parkour" to player


on walk on stone:
  if {%player%parkour} is true:
    set {lastcheckpoint%player%} to location of player
 
i believe you can make the spawn really tall and then make a region like 8 blocks under spawn and then do this script

Code:
on region enter:
  "%region%" contains "nonovoid"
  execute player command "/checkpointtp"

P.S call the region nonovoid

It'd be preferred to be:
Code:
on region exit:
    if "%region at player%" does not contain "nonovoid":
        make player execute command "/checkpointtp"


this prob works

Code:
on join:
  while {%player%parkour} is true:
    altitude of player is below 10:
      if {lastcheckpoint%player%} exists:
        teleport player to {lastcheckpoint%player%}
      if {lastcheckpoint%player%} does not exist:
        teleport player to {parkourtp}


command /parkoursetspawn:
  permission: parkouret.spawn
  trigger:
    set {parkourtp} to location of player
    send "&cSet Spawn point for parkour to your location!" to player

command /parkour:
  permission: sk.parkour
  trigger:
    if {parkourtp} exists:
      teleport player to {parkourtp}
      set {%player%parkour} to true
      send "&8Teleported you to the parkour" to player


on walk on stone:
  if {%player%parkour} is true:
    set {lastcheckpoint%player%} to location of player

Furthermore, he said that a command is already made (/checkpointtp)