SHARE
TWEET

Untitled

a guest Jul 21st, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on rightclick:
  2.     clicked block is sign
  3.     line 1 of clicked block is "&6▶ &eCheckPoint &6◀"
  4.     line 3 of clicked block is "&8- Player -"
  5.     if player is on ground:
  6.         delete {checkpoint.%UUID of player%}
  7.         set {checkpoint.%UUID of player%} to location of player
  8.         message "&c▶ &7Checkpoint has been set."
  9.         command "/execute %player% ~ ~ ~ playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  10.     else:
  11.         message "&4✖ &cYou can set a checkpoint only on ground."
  12.  
  13. on rightclick:
  14.     clicked block is sign
  15.     line 1 of clicked block is "&6▶ &eCheckPoint &6◀"
  16.     line 3 of clicked block is "&8- Block -"
  17.     delete {checkpoint.%UUID of player%}
  18.     set {checkpoint.%UUID of player%} to location of clicked block
  19.     message "&c▶ &7Checkpoint has been set."
  20.     command "/execute %player% ~ ~ ~ playsound entity.experience_orb.pickup master %player% ~ ~ ~ 1 1 1"
  21.  
  22. on rightclick:
  23.     block is a sign
  24.     line 1 of clicked block is "=========="
  25.     line 2 of clicked block is "&4checkpoint"
  26.     line 3 of clicked block is "&a[rightclick]"
  27.     line 4 of clicked block is "=========="
  28.     set {checkpoint.%player%.%world%} to location of player
  29.     message "&6チェックポイントを設定しました!"
  30.     play "NOTE_PLING" specifically to player with pitch 2 and volume 1
  31.     log "%player% clicked checkpoint sign at %location of player% in %world%" to "ckeckpoint/checkpoint.log"
  32.     if player has permission "skript.admin":
  33.         message "&7Location of player"
  34.  
  35. on rightclick with fire charge:
  36.     cancel event
  37.     if clicked block is sign:
  38.         stop
  39.     if {checkpoint.%UUID of player%} is set:
  40.         teleport player to {checkpoint.%UUID of player%}
  41.     else:
  42.         message "&4✖ &cThere is no checkpoint."
  43.  
  44. on sign change:
  45.     line 1 is "-" or "ー"
  46.     set line 1 to "&6▶ &eCheckPoint &6◀"
  47.     set line 3 to "&8- Player -"
  48.  
  49. on sign change:
  50.     line 1 is "--" or "ーー"
  51.     set line 1 to "&6▶ &eCheckPoint &6◀"
  52.     set line 3 to "&8- Block -"
  53.  
  54. on sign change:
  55.     line 1 is "^" or "^"
  56.     set line 2 to "&4checkpoint"
  57.     set line 3 to "&a[rightclick]"
  58.     set line 4 to "=========="
  59.     set line 1 to "=========="
  60.  
  61. command /cpd:
  62.     description: Delete <player>'s checkpoint
  63.     executable by: players
  64.     trigger:
  65.         delete {checkpoint.%player%.%world%}
  66.         message "&a✔ &cCheckpoint has been deleted."
  67.  
  68. command /cpa:
  69.     description: Set player's ckeckpoint
  70.     executable by: players
  71.     trigger:
  72.         player has permission "skript.admin"
  73.         set {checkpoint.%player%} to location of player
  74.         message "&a✔ Checkpoint has been set."
  75.         play raw sound "note.pling" at player with pitch 2 volume 1
  76.  
  77. command /item:
  78.     trigger:
  79.         if player do not have fire charge named "&r&6☾ &echeckpoint &6☽":
  80.             give fire charge named "&r&a checkpoint " to player
  81.  
  82. command /cp:
  83.     aliases: checkpoint
  84.     trigger:
  85.         if {checkpoint.%player%} is not set:
  86.             message "&4✖ &cThere is no checkpoint."
  87.         else:
  88.             teleport player to {checkpoint.%player%}
  89.  
  90. on damage:
  91.     y-coordinate of victim is less than 0
  92.     cancel event
  93.     if {checkpoint.%victim%.%world%} is not set:
  94.         teleport victim to block at world's spawn point
  95.     else:
  96.         teleport victim to {checkpoint.%victim%.%world%}
  97.  
  98. command /cptp <text> [<world>]:
  99.     permission: skript.admin
  100.     trigger:
  101.         if arg 2 is not set:
  102.             if {checkpoint.%arg 1%.%world%} is not set:
  103.                 message "checkpoint is not set"
  104.             else:
  105.                 teleport player to {checkpoint.%arg 1%.%world%}
  106.         else:
  107.             if {checkpoint.%arg 1%.%arg 2%} is not set:
  108.                 message "checkpoint is not set"
  109.             else:
  110.                 teleport player to {checkpoint.%arg 1%.%arg 2%}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top