daily pastebin goal
20%
SHARE
TWEET

Untitled

tanuki0204 Aug 16th, 2018 62 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. #表示
  2. options:
  3.     LEVEL: &4&lLEVEL
  4.     EXP: &6&lEXP
  5.     MANA: &1&lMANA
  6.     HP: &0&lHP
  7.  
  8. every ticks:
  9.     loop all players in "world":
  10.         if loop-player's max health is not {levelhp.%{level::%loop-player%}%}:
  11.             set the loop-player's max health to {levelhp.%{level::%loop-player%}%}
  12.         set loop-player's scaled health to 10
  13.         if {exp::%loop-player%} is set:
  14.             if {mana::%loop-player%} is set:
  15.                 show action bar from "{@LEVEL}: %{level::%loop-player%}%  {@EXP}: %{exp::%loop-player%}%/%{exp.max.%{level::%loop-player%}%}%  {@MANA}: %{mana::%loop-player%}%/%{mana.max.%{level::%loop-player%}%}%  {@HP}: %loop-player's health%/%{levelhp.%{level::%loop-player%}%}%" to loop-player
  16.             else:
  17.                 show action bar from "{@LEVEL}: %{level::%loop-player%}%  {@EXP}: %{exp::%loop-player%}%/%{exp.max.%{level::%loop-player%}%}%  {@MANA}: 0/%{mana.max.%{level::%loop-player%}%}%  {@HP}: %loop-player's health%/%{levelhp.%{level::%loop-player%}%}%" to loop-player
  18.         else:
  19.             if {mana::%loop-player%} is set:
  20.                 show action bar from "{@LEVEL}: %{level::%loop-player%}%  {@EXP}: 0/%{exp.max.%{level::%loop-player%}%}%  {@MANA}: %{mana::%loop-player%}%/%{mana.max.%{level::%loop-player%}%}%  {@HP}: %loop-player's health%/%{levelhp.%{level::%loop-player%}%}%" to loop-player
  21.             else:
  22.                 show action bar from "{@LEVEL}: %{level::%loop-player%}%  {@EXP}: 0/%{exp.max.%{level::%loop-player%}%}%  {@MANA}: 0/%{mana.max.%{level::%loop-player%}%}%  {@HP}: %loop-player's health%/%{levelhp.%{level::%loop-player%}%}%" to loop-player
  23.  
  24. #レベルアップ
  25. every ticks:
  26.     loop all players in "world":
  27.         if {level::%loop-player%} is set:
  28.             set loop-player's tablist name to "%display name of loop-player% &e%{level::%loop-player%}%"
  29.         if {exp.max.%{level::%loop-player%}%} is set:
  30.             set {_exp} to {exp.max.%{level::%loop-player%}%}
  31.             remove 1 from {_exp}
  32.             if {exp::%loop-player%} is more than {_exp}:
  33.                 remove {exp.max.%{level::%loop-player%}%} from {exp::%loop-player%}
  34.                 add 1 to {level::%loop-player%}
  35.  
  36. #MANA回復
  37. every 2 seconds:
  38.     loop all players in "world":
  39.         if {mana::%loop-player%} is set:
  40.             if {mana::%loop-player%} is less than {mana.max.%{level::%loop-player%}%}:
  41.                 add 1 to {mana::%loop-player%}
  42.         else:
  43.             set {mana::%loop-player%} to 1
  44.  
  45. every seconds:
  46.     loop all players in "world":
  47.         if {level::%loop-player%} is set:
  48.             set {level::%loop-player%} to 1
  49.  
  50. #コマンド
  51. command /setexp <number> <number>:
  52.     usage: /setexp <レベル> <最大値>
  53.     permission: level.command.exp
  54.     trigger:
  55.         set {exp.max.%arg 1%} to arg 2
  56.  
  57. command /setmana <number> <number>:
  58.     usage: /setmana <レベル> <最大値>
  59.     permission: level.command.mana
  60.     trigger:
  61.         set {mana.max.%arg 1%} to arg 2
  62.  
  63. command /levelup <player> <number>:
  64.     permission: level.command.levelup
  65.     trigger:
  66.         add arg 2 to {level::%arg 1%}
  67.  
  68. command /expup <player> <number>:
  69.     permission: level.command.expup
  70.     trigger:
  71.         add arg 2 to {exp::%arg 1%}
  72.  
  73. command /manaup <player> <number>:
  74.     permission: level.command.manaup
  75.     trigger:
  76.         add arg 2 to {mana::%arg 1%}
  77.  
  78. command /manaheal <player>:
  79.     permission: level.command.manaheal
  80.     trigger:
  81.         set {mana::%arg 1%} to {mana.max.%{level::%arg 1%}%}
  82.  
  83. command /mobexp <text> <number>:
  84.     usage: /mobexp <MOBの名前> <獲得EXP>
  85.     permission: level.command.mobexp
  86.     trigger:
  87.         set {mobexp::%coloured arg 1%} to arg 2
  88.  
  89. command /levelset <player> <number>:
  90.     permission: level.command.levelset
  91.     trigger:
  92.         set {level::%arg 1%} to arg 2
  93.  
  94. command /levelHP <number> <number>:
  95.     usage: /levelhp <レベル> <最大値>
  96.     permission: level.command.levelhp
  97.     trigger:
  98.         set {levelhp.%arg 1%} to arg 2
  99.  
  100. #レベル武器
  101. command /bukilevel <text> <number>:
  102.     usage: /bukilevel <アイテム名> <必要レベル>
  103.     permission: level.command.bukilevel
  104.     trigger:
  105.         set {level.item::%coloured arg 1%} to arg 2
  106.  
  107. on damage:
  108.     victim is not player
  109.     if {level.item::%Name of attacker's tool%} is set:
  110.         if {level::%attacker%} is less than {level.item::%Name of attacker's tool%}:
  111.             cancel event
  112.             send "&c&lレベルが足りません" to attacker
  113.  
  114. #レベル防具
  115. command /bougulevel <text> <number>:
  116.     usage: /bougulevel <防具名> <必要レベル>
  117.     permission: level.command.bukilevel
  118.     trigger:
  119.         set {level.armor::%coloured arg 1%} to arg 2
  120.  
  121. every seconds:
  122.     loop all players in "world":
  123.         if {level.armor::%Name of loop-player's helmet%} is set:
  124.             if {level::%loop-player%} is less than {level.armor::%Name of loop-player's helmet%}:
  125.                 set {armorerror::%loop-player%} to true
  126.         if {level.armor::%Name of loop-player's chestplate%} is set:
  127.             if {level::%loop-player%} is less than {level.armor::%Name of loop-player's chestplate%}:
  128.                 set {armorerror::%loop-player%} to true
  129.         if {level.armor::%Name of loop-player's leggings%} is set:
  130.             if {level::%loop-player%} is less than {level.armor::%Name of loop-player's leggings%}:
  131.                 set {armorerror::%loop-player%} to true
  132.         if {level.armor::%Name of loop-player's boots%} is set:
  133.             if {level::%loop-player%} is less than {level.armor::%Name of loop-player's boots%}:
  134.                 set {armorerror::%loop-player%} to true
  135.         wait a tick
  136.         if {armorerror::%loop-player%} is set:
  137.             apply potion of jump boost -30 to the loop-player for 1 seconds
  138.             apply potion of Slowness 30 to the loop-player for 1 seconds
  139.             apply potion of weakness 30 to the loop-player for 1 seconds
  140.             apply potion of mining fatigue 30 to the loop-player for 1 seconds
  141.             send loop-player title " " with subtitle "&c&l防具装備に必要なレベルが足りません" for 1 seconds
  142.             clear {armorerror::%loop-player%}
  143.  
  144. #MOB討伐時のEXP獲得
  145. on death:
  146.     if {mobexp::%victim's name%} is set:
  147.         add {mobexp::%victim's name%} to {exp::%attacker%}
  148.  
  149.  
  150. #JOB
  151. command /jobadd <text> <text>:
  152.     usage: /jobadd <職業名> <タグ>   タグ例: &7[剣士]
  153.     permission: job.command
  154.     trigger:
  155.         set {joblist::%arg 1%} to arg 1
  156.         set {jobtag::%arg 1%} to "%coloured arg 2%"
  157.         send "職業: %{joblist::%arg 1%}% &fを追加しました"
  158.  
  159. command /jobset <player> <text>:
  160.     usage: /jobset <player> <職業名>
  161.     permission: job.command
  162.     trigger:
  163.         set display name of arg 1 to "%{jobtag::%arg 2%}% %arg 1%"
  164.         set {job::%arg 1%} to arg 2
  165.         send "&d%arg 1% さんは &b%{joblist::%arg 2%}% &dになりました"
  166.  
  167. on join:
  168.     if {job::%player%} is set:
  169.         set player's display name to "%{jobtag::%{job::%player%}%}% %player%"
  170.         set join message to "&e%player's display name% &ejoined the game"
  171.  
  172. on quit:
  173.     if {job::%player%} is set:
  174.         set quit message to "&e%player's display name% &eleft the game"
  175.  
  176. on damage:
  177.     victim is not player
  178.     Lore of attacker's tool contains "職業"
  179.     if Lore of attacker's tool contains "%{job::%attacker%}%":
  180.         execute console command "/cancelevent"
  181.     else:
  182.         cancel event
  183.         send attacker title " " with subtitle "&c&l職業が適していません" for 1 seconds
  184.  
  185. on command "/cancelevent":
  186.     cancel event
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