maozou

Untitled

Jan 4th, 2019
867
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.50 KB | None | 0 0
  1. options:
  2. #CONFIG
  3. #---------------------------------------------------------------------------
  4. #-----------------------------------Logo------------------------------------
  5. logo: &a[&f&lYGS&a]
  6. #---------------------------------------------------------------------------
  7.  
  8. #---------------------------------------------------------------------------
  9. #-----------------------------------Types-----------------------------------
  10. playerleveling: true
  11. #---------------------------------------------------------------------------
  12.  
  13. #---------------------------------------------------------------------------
  14. #---------------------------------PLeveling---------------------------------
  15. #PlayerLeveling (Reward uses vault!)
  16. xpforlvlup: 500
  17. #---------------------------------------------------------------------------
  18.  
  19. #---------------------------------------------------------------------------
  20. #----------------------------------MaxLvL-----------------------------------
  21. maxlvl: 999999 #MaxXp is used to mark max level of player (eg. 100 Bob[Lv100])
  22. #---------------------------------------------------------------------------
  23.  
  24. #---------------------------------------------------------------------------
  25. #----------------------------------Suffix-----------------------------------
  26. suffix: true
  27. setsuffix: &8[&7Lv%{lvl.%player%}%&8] #Do NOT touch %{lvl.%player%}%
  28. vipprefix: &a[VIP] &b
  29. #---------------------------------------------------------------------------
  30.  
  31. #------------------------------------------------------------------------------------------------------
  32.  
  33. variables:
  34. {mining.%player%} = 0
  35. {min.%player%} = 0
  36. {xp.%player%} = 0
  37. {lvl.%player%} = 0
  38. {nextlv.%player%} = 500
  39.  
  40.  
  41. on any movement:
  42. set tab header to "&e--------&f&lSnow Wars&e-------" and footer to "&eplayerrealms.com &a%number of all players%&7/25" for player
  43. if name of player is "syu_cat":
  44. add {lvl.%player%} to {xp.%player%}
  45. if {xp.%player%} is greater or equal to {nextlv.%player%}:
  46. if {lvl.%player%} is greater or equal to {@maxlvl}:
  47. stop
  48. else:
  49. remove {nextlv.%player%} from {xp.%player%}
  50. add 1 to {lvl.%player%}
  51. send "{@logo} &7レベルアップ!現在のLV: &a%{lvl.%player%}%" to player
  52. add 1 to {pp.%player%}
  53. add round({lvl.%player%}*15*({lvl.%player%}*0.02+1.03)) to {nextlv.%player%}
  54. loop all players:
  55. player is not "syu_cat"
  56. message "{@logo} &b&l%player%さんがレベルアップ!現在のレべル:&7%{lvl.%player%}%" to loop-player
  57. stop
  58. if {xp.%player%} is greater or equal to {@xpforlvlup}:
  59. if {lvl.%player%} is greater or equal to {@maxlvl}:
  60. stop
  61. else:
  62. remove {nextlv.%player%} from {xp.%player%}
  63. add 1 to {lvl.%player%}
  64. send "{@logo} &7レベルアップ!現在のLV: &a%{lvl.%player%}%" to player
  65. add 1 to {pp.%player%}
  66. set {nextlv} to round({nextlv} * 1.1)
  67. stop
  68. command /yukigassen [<text>]:
  69. aliases:ygs
  70. permission:sk.admin
  71. trigger:
  72. if arg-1 is "start" or "stop" or "team" or "help" or "check":
  73. if arg-1 is "start":
  74. if {ygs.game} is "false":
  75. set {ygs.game} to "true"
  76. set {time.game} to "600"
  77. loop all players:
  78. set {hplv.%loop-player%} to {health.%loop-player%}
  79.  
  80. broadcast "&a[&f&lYGS&a] &eゲーム開始まで..."
  81. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
  82. wait 1 second
  83. broadcast "&a[&f&lYGS&a] &610"
  84. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
  85. wait 5 seconds
  86. broadcast "&a[&f&lYGS&a] &65"
  87. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
  88. wait 1 second
  89. broadcast "&a[&f&lYGS&a] &64"
  90. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
  91. wait 1 second
  92. broadcast "&a[&f&lYGS&a] &63"
  93. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
  94. wait 1 second
  95. broadcast "&a[&f&lYGS&a] &62"
  96. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
  97. wait 1 second
  98. broadcast "&a[&f&lYGS&a] &61"
  99. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 0.9 "
  100. wait 1 second
  101. broadcast "&a[&f&lYGS&a] &e&lSTART!"
  102. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 2 1 "
  103. wait 1 second
  104. broadcast "&a[&f&lYGS&a] &aチームを決めました!"
  105. broadcast "&a[&f&lYGS&a] &c赤チームは &e%{teamred::*}%さん"
  106. broadcast "&a[&f&lYGS&a] &1青チームは &e%{teamblue::*}%さん"
  107. else:
  108. send "&a[&f&lYGS&a] &cゲームが既に開始されているため、開始できません。"
  109. execute console command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.dispense master %player% ~ ~ ~ 2"
  110. if arg-1 is "team":
  111. set {_randint} to random integer between 0 and 1
  112. if {_randint} is 0:
  113. loop ceil(size of all players/2) times:
  114. addredmember()
  115. loop all players:
  116. {teamred::*} do not contain loop-player
  117. add loop-player to {teamblue::*}
  118. if {_randint} is 1:
  119. loop floor(size of all players)/2 times:
  120. addredmember()
  121. loop all players:
  122. {teamred::*} do not contain loop-player
  123. add loop-player to {teamblue::*}
  124. stop loop
  125. broadcast "&a[&f&lYGS&a] &aチームを決めました!"
  126. broadcast "&a[&f&lYGS&a] &c赤チームは &e%{teamred::*}%さん"
  127. broadcast "&a[&f&lYGS&a] &1青チームは &e%{teamblue::*}%さん"
  128. if arg-1 is "stop":
  129. set {ygs.game} to "false"
  130. delete {teamred::*}
  131. delete {teamblue::*}
  132. broadcast "&a[&f&lYGS&a] &cゲームが終了しました。"
  133. loop all players:
  134. if {lvl.%loop-player%} is "1":
  135. set {health.%loop-player%} to "1000"
  136. else:
  137. set {health.%loop-player%} to "%1000+{addhealth.%loop-player%}%"
  138. if arg-1 is "check":
  139. loop {teamred::*}:
  140. broadcast "&a[&f&lYGS&a] &c赤チームは &e%loop-value%さん"
  141. loop {teamblue::*}:
  142. broadcast "&a[&f&lYGS&a] &1青チームは &e%loop-value%さん"
  143. every 1 second:
  144. loop all players:
  145. wipe loop-player's sidebar
  146. if {ygs.game} is "true":
  147. set name of sidebar of loop-player to "&f&lSnow Wars"
  148. set score "&a残り時間: &e%{time.game}%" in sidebar of loop-player to 9
  149. set score "&cRed Team: %{red}%" in sidebar of loop-player to 8
  150. set score "&9Blue Team: %{blue}%" in sidebar of loop-player to 7
  151. set score "&a" in sidebar of loop-player to 6
  152. set score "&7Your Health: &c%{health.%loop-player%}%" in sidebar of loop-player to 5
  153. set score "&a" in sidebar of loop-player to 4
  154.  
  155. function addredmember():
  156. set {_p} to random element out of all players
  157. if {teamred::*} contain {_p}:
  158. addredmember()
  159. else if {teamred::*} do not contain {_p}:
  160. add {_p} to {teamred::*}
  161.  
  162. on damage:
  163. remove 10 from {health.%victim%}
Advertisement
Add Comment
Please, Sign In to add comment