Shears 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!

MentalCode

Member
May 30, 2017
10
0
0
34
Suggested name: Shears Teleport

Spigot/Skript Version: 1.7.10 / 2.1.2

What I want:
I want that when a player hits you, the location where you hit is saved and for 10 seconds if you right-click a scissors or any other item, transport you to the location where he hit you (not the player)

Ideas for commands:
none
Ideas for permissions:
none
When I'd like it by: 2 weeks
 
Code:
on damage:
  set {loc.%victim%} to location of victim
  wait 10 seconds
  delete {loc.%victim%}

on right click:
  if player's tool is shears:
    teleport player to {loc.%player%}