SHARE
TWEET

Untitled

CREAMPAN0408 Apr 21st, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on right click on a sign:
  2.     line 1 of the clicked block is "&f============"
  3.     line 2 of the clicked block is "&e<<CheckPoint>>"
  4.     line 3 of the clicked block is "&b<<Rightclick>>"
  5.     line 4 of the clicked block is "&f============":
  6.         player is on ground
  7.         set {checkpoint.%player%.%world%} to location of player
  8.         message "&eCPを設定しました!"
  9.    
  10. on right click on a sign:
  11.     line 1 of the clicked block is "&f============"
  12.     line 2 of the clicked block is "&e<<CheckPoint>>"
  13.     line 3 of the clicked block is "&b<<Rightclick>>"
  14.     line 4 of the clicked block is "&f============":
  15.         set {checkpoint.%player%.%world%} to location of clicked block
  16.         message "&eCPを設定しました!"
  17.  
  18. on sign change:
  19.     line 1 is "cp"
  20.     set line 4 to "&f============"
  21.     set line 1 to "&f============"
  22.     set line 3 to "&b<<Rightclick>>"
  23.     set line 2 to "&e<<CheckPoint>>"
  24.  
  25. on sign change:
  26.     line 1 is "air"
  27.     set line 4 to "&f============"
  28.     set line 1 to "&f============"
  29.     set line 3 to "&e<<Rightclick>>"
  30.     set line 2 to "&b<<CheckPoint>>"
  31.  
  32. command /adcp:
  33.     description: Set player's ckeckpoint
  34.     executable by: players
  35.     trigger:
  36.         player has permission "skript.admin"
  37.         set {checkpoint.%player%.%world%} to location of player
  38.         message "&eCPを設定しました。"
  39.  
  40. command /cpd:
  41.     description: Delete <player>'s checkpoint
  42.     executable by: players
  43.     trigger:
  44.         delete {checkpoint.%player%.%world%}
  45.         message "&cCPが削除されました。"
  46.  
  47. command /cpitem:
  48.     trigger:
  49.         if player do not have clock named "&e&l<<Checkpoint>>":
  50.             give clock named "&e&l<<Checkpoint>>" to player
  51.  
  52. on rightclick with clock:
  53.     if clicked block is sign:
  54.         stop
  55.     if {checkpoint.%player%.%world%} is set:
  56.         teleport player to {checkpoint.%player%.%world%}
  57.     if {checkpoint.%player%.%world%} is not set:
  58.         message "&cCPが設定されていません!"
  59.  
  60. on walking on block of coal:
  61.     player's gamemode is adventure or survival
  62.     delete {checkpoint.%player%.%world%}
  63.     message "&cCPを削除しました。"
  64.  
  65. on walking on quartz ore:
  66.     player's gamemode is adventure or survival
  67.     if {checkpoint.%player%.%world%} is not set:
  68.         teleport player to block at world's spawn point
  69.         message "&cCPが設定されていません、SpawnへTPされました。"
  70.     else:
  71.         teleport player to {checkpoint.%player%.%world%}
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