SHARE
TWEET

Untitled

Kusa_Haenai_wWW May 22nd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /dataset:
  2.     trigger:
  3.         if {money::%player%} is not set:
  4.             set {money::%player%} to 0
  5.         if {level::%player%} is not set:
  6.             set {level::%player%} to 1
  7.         if {exp::%player%} is not set:
  8.             set {exp::%player%} to 0
  9.         if {needexp::%player%} is not set:
  10.             set {needexp::%player%} to 100
  11.         if {hakaisuu::%player%} is not set:
  12.             set {hakaisuu::%player%} to 0
  13.         if {rank::%player%} is not set:
  14.             set {rank::%player%} to 1
  15.             message "&aデータのセットが完了しました!!"
  16.         else:
  17.             message "&c既にデータのセットが完了しています!!"
  18.  
  19. on break:
  20.     add round({level::%player%} * 1 * {rank::%player%}) to {money::%player%}
  21.     add round({level::%player%} * 1.2 + 1 * {rank::%player%}) to {exp::%player%}
  22.     add 1 to {hakaisuu::%player%}
  23.     if {exp::%player%} >= {needexp::%player%}:
  24.         add 1 to {level::%player%}
  25.         add 15 to {needexp::%player%}
  26.         set {needexp::%player%} to round({needexp::%player%} * 1.1)
  27.         message "&e========================="
  28.         message "&a&lLevel Up!!"
  29.         message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  30.         message "&e========================="
  31.     if event-block is coal ore:
  32.         add round({level::%player%} * 3 * {rank::%player%}) to {money::%player%}
  33.         add round({level::%player%} * 1.2 + 3 * {rank::%player%}) to {exp::%player%}
  34.         add 1 to {hakaisuu::%player%}
  35.         if {exp::%player%} >= {needexp::%player%}:
  36.             add 1 to {level::%player%}
  37.             add 15 to {needexp::%player%}
  38.             set {needexp::%player%} to round({needexp::%player%} * 1.1)
  39.             message "&e========================="
  40.             message "&a&lLevel Up!!"
  41.             message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  42.             message "&e========================="
  43.     if event-block is iron ore:
  44.         add round({level::%player%} * 5 * {rank::%player%}) to {money::%player%}
  45.         add round({level::%player%} * 1.2 + 5 * {rank::%player%}) to {exp::%player%}
  46.         add 1 to {hakaisuu::%player%}
  47.         if {exp::%player%} >= {needexp::%player%}:
  48.             add 1 to {level::%player%}
  49.             add 15 to {needexp::%player%}
  50.             set {needexp::%player%} to round({needexp::%player%} * 1.1)
  51.             message "&e========================="
  52.             message "&a&lLevel Up!!"
  53.             message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  54.             message "&e========================="
  55.     if event-block is gold ore:
  56.         add round({level::%player%} * 10 * {rank::%player%}) to {money::%player%}
  57.         add round({level::%player%} * 1.2 + 10 * {rank::%player%}) to {exp::%player%}
  58.         add 1 to {hakaisuu::%player%}
  59.         if {exp::%player%} >= {needexp::%player%}:
  60.             add 1 to {level::%player%}
  61.             add 15 to {needexp::%player%}
  62.             set {needexp::%player%} to round({needexp::%player%} * 1.1)
  63.             message "&e========================="
  64.             message "&a&lLevel Up!!"
  65.             message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  66.             message "&e========================="
  67.     if event-block is diamond ore:
  68.         add round({level::%player%} * 20 * {rank::%player%}) to {money::%player%}
  69.         add round({level::%player%} * 1.2 + 20 * {rank::%player%}) to {exp::%player%}
  70.         add 1 to {hakaisuu::%player%}
  71.         if {exp::%player%} >= {needexp::%player%}:
  72.             add 1 to {level::%player%}
  73.             add 15 to {needexp::%player%}
  74.             set {needexp::%player%} to round({needexp::%player%} * 1.1)
  75.             message "&e========================="
  76.             message "&a&lLevel Up!!"
  77.             message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  78.             message "&e========================="
  79.     if event-block is redstone ore:
  80.         add round({level::%player%} * 5 * {rank::%player%}) to {money::%player%}
  81.         add round({level::%player%} * 1.2 + 5 * {rank::%player%}) to {exp::%player%}
  82.         add 1 to {hakaisuu::%player%}
  83.         if {exp::%player%} >= {needexp::%player%}:
  84.             add 1 to {level::%player%}
  85.             add 15 to {needexp::%player%}
  86.             set {needexp::%player%} to round({needexp::%player%} * 1.1)
  87.             message "&e========================="
  88.             message "&a&lLevel Up!!"
  89.             message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  90.             message "&e========================="
  91.     if event-block is lapis ore:
  92.         add round({level::%player%} * 5 * {rank::%player%}) to {money::%player%}
  93.         add round({level::%player%} * 1.2 + 5 * {rank::%player%}) to {exp::%player%}
  94.         add 1 to {hakaisuu::%player%}
  95.         if {exp::%player%} >= {needexp::%player%}:
  96.             add 1 to {level::%player%}
  97.             add 15 to {needexp::%player%}
  98.             set {needexp::%player%} to round({needexp::%player%} * 1.1)
  99.             message "&e========================="
  100.             message "&a&lLevel Up!!"
  101.             message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  102.             message "&e========================="
  103.     if event-block is quartz block:
  104.         add round({level::%player%} * 10 * {rank::%player%}) to {money::%player%}
  105.         add round({level::%player%} * 1.2 + 10 * {rank::%player%}) to {exp::%player%}
  106.         add 1 to {hakaisuu::%player%}
  107.         if {exp::%player%} >= {needexp::%player%}:
  108.             add 1 to {level::%player%}
  109.             add 15 to {needexp::%player%}
  110.             set {needexp::%player%} to round({needexp::%player%} * 1.1)
  111.             message "&e========================="
  112.             message "&a&lLevel Up!!"
  113.             message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  114.             message "&e========================="
  115.  
  116. command /giverank [<text>] [<offline player>]:
  117.     permission: sk.admin
  118.     trigger:
  119.         if arg-1 or arg-2 is not set:
  120.             message "&c/giverank <ランク名> <プレイヤー名>"
  121.         if arg-1 is "GOD":
  122.             set {rank::%arg-2%} to 5
  123.             message "&d&lGOD&aランクにセットしました!!"
  124.             message "&d&lGOD&aランクにセットされました!!" to arg-2
  125.         if arg-1 is "PRO":
  126.             set {rank::%arg-2%} to 4
  127.             message "&4&lPRO&aランクにセットしました!!"
  128.             message "&4&lPRO&aランクにセットされました!!" to arg-2
  129.         if arg-1 is "MVP":
  130.             set {rank::%arg-2%} to 3
  131.             message "&b&lMVP&aランクにセットしました!!"
  132.             message "&b&lMVP&aランクにセットされました!!" to arg-2
  133.         if arg-1 is "VIP":
  134.             set {rank::%arg-2%} to 2
  135.             message "&e&lVIP&aランクにセットしました!!"
  136.             message "&e&lVIP&aランクにセットされました!!" to arg-2
  137.         if arg-1 is "NORMAL":
  138.             set {rank::%arg-2%} to 1
  139.             message "&eランク&aを標準にセットしました!!"
  140.             message "&eランク&aを標準にセットされました!!" to arg-2
  141.  
  142. command /rank [<text>]:
  143.     permission: sk.admin
  144.     trigger:
  145.         if arg-1 is not set:
  146.             message "&c/rank <ランク名>"
  147.         if arg-1 is "GOD":
  148.             set {rank::%player%} to 5
  149.             message "&d&lGOD&aランクにセットしました!!"
  150.         if arg-1 is "PRO":
  151.             set {rank::%player%} to 4
  152.             message "&4&lPRO&aランクにセットしました!!"
  153.         if arg-1 is "MVP":
  154.             set {rank::%player%} to 3
  155.             message "&b&lMVP&aランクにセットしました!!"
  156.         if arg-1 is "VIP":
  157.             set {rank::%player%} to 2
  158.             message "&e&lVIP&aランクにセットしました!!"
  159.         if arg-1 is "NORMAL":
  160.             set {rank::%player%} to 1
  161.             message "&eランク&aを標準にセットしました"
  162.  
  163. command /status [<offline player>]:
  164.     trigger:
  165.         if arg-1 is not set:
  166.             message "&e========================="
  167.             message "&a現在の&eレベル&8: &c&l%{level::%player%}%"
  168.             message "&a必要&eExp&8: &c&l%{exp::%player%}%&e/%{needexp::%player%}%"
  169.             message "&e========================="
  170.         else:
  171.             message "&e========================="
  172.             message "&d%arg-1% さんのデータ"
  173.             message "&a現在の&eレベル&8: &c&l%{level::%arg-1%}%"
  174.             message "&a必要&eExp&8: &c&l%{exp::%arg-1%}%&e/%{needexp::%arg-1%}%"
  175.             message "&e========================="
  176.  
  177. every 1 seconds:
  178.     loop all players:
  179.         set action bar of loop-player to "&b%loop-player% &8[&c&lLv.%{level::%loop-player%}%&8] &8[&d%{exp::%loop-player%}%&e/&8%{needexp::%loop-player%}%&8] &8[&a&l破壊数.%{hakaisuu::%player%}%&8]"
  180.  
  181. command /spawnset:
  182.     permission:sk
  183.     trigger:
  184.         set {spawn} to location of player
  185.  
  186. on respawn:
  187.     teleport the player to {spawn}
  188.  
  189. on spawn:
  190.     teleport the player to {spawn}
  191.  
  192. on join:
  193.     teleport the player to {spawn}
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