Advertisement
kama6012

Park

Aug 14th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.38 KB | None | 0 0
  1. command /start:
  2. trigger:
  3. loop all players:
  4. remove health boost from loop-player
  5. loop {parkact::%loop-player%::*}:
  6. delete {parkact::%loop-player%::%loop-index%}
  7. chestplate slot of loop-player isn't air
  8. set {_lp} to loop-player
  9. set {_item} to chestplate slot of loop-player
  10. enchant {_item} with curse of binding
  11. set chestplate slot of loop-player to {_item}
  12. set {_1} to 1st line of chestplate slot of loop-player 's lore
  13. set {_2} to 2nd line of chestplate slot of loop-player 's lore
  14. set {_3} to 3rd line of chestplate slot of loop-player 's lore
  15. set {_loop} to 1
  16. loop 3 times:
  17. if subtext of {_%{_loop}%} from characters 3 to 4 is "00":
  18. give 10 emerald to loop-player
  19. if subtext of {_%{_loop}%} from characters 3 to 4 is "01":
  20. give iron sword to loop-player
  21. if subtext of {_%{_loop}%} from characters 3 to 4 is "02":
  22. give totem of undying to loop-player
  23. if subtext of {_%{_loop}%} from characters 3 to 4 is "03":
  24. set {parkact::%loop-player%::03} to true
  25. if subtext of {_%{_loop}%} from characters 3 to 4 is "04":
  26. set {parkact::%loop-player%::04} to true
  27. if subtext of {_%{_loop}%} from characters 3 to 4 is "05":
  28. set {parkact::%loop-player%::05} to true
  29. if subtext of {_%{_loop}%} from characters 3 to 4 is "06":
  30. set {parkact::%loop-player%::06} to true
  31. if subtext of {_%{_loop}%} from characters 3 to 4 is "06":
  32. set {parkact::%loop-player%::06} to true
  33. if subtext of {_%{_loop}%} from characters 3 to 4 is "07":
  34. give shield to loop-player
  35. if subtext of {_%{_loop}%} from characters 3 to 4 is "08":
  36. set {parkact::%loop-player%::08} to true
  37. if subtext of {_%{_loop}%} from characters 3 to 4 is "09":
  38. execute console command "shot give TOASTER %loop-player%"
  39. if subtext of {_%{_loop}%} from characters 3 to 4 is "10":
  40. set {parkact::%loop-player%::10} to true
  41. if subtext of {_%{_loop}%} from characters 3 to 4 is "11":
  42. spawn 1 wolf at loop-player
  43. tame the last spawned entity to loop-player
  44. if subtext of {_%{_loop}%} from characters 3 to 4 is "12":
  45. apply health boost of tier 5 to loop-player for 999 days
  46. if subtext of {_%{_loop}%} from characters 3 to 4 is "13":
  47. give strong splash potion of instant damage to loop-player
  48. if subtext of {_%{_loop}%} from characters 3 to 4 is "14":
  49. set {parkact::%loop-player%::14} to true
  50. set {_loop} to {_loop} + 1
  51.  
  52. command /editpark [<number>]:
  53. trigger:
  54. set {_pl} to player
  55. if arg is 2:
  56. open chest with 3 row named "&aパークエディット:パーク2" to player
  57. wait 1 tick
  58. format slot 0 of player with emerald named "&aパーク:エメラルド" with lore "&r初期エメラルド所持(重複可能)" to run "park 2 0 %{_pl}%"
  59. format slot 1 of player with wooden sword named "&cパーク:ウェポン" with lore "&r初期武器所持(重複可能)" to run "park 2 1 %{_pl}%"
  60. format slot 2 of player with totem of undying named "&cパーク:復活" with lore "&r不死のトーテム所持(重複可能)" to run "park 2 2 %{_pl}%"
  61. format slot 3 of player with white banner item named "&cパーク:透明化" with lore "&rシフトで半透明化(重複不可能)" to run "park 2 3 %{_pl}%"
  62. format slot 4 of player with feather named "&cパーク:走行速度" with lore "&r走行速度上昇、ただし一定時間で元に戻る 時間経過で復活(重複不可能)" to run "park 2 4 %{_pl}%"
  63. format slot 5 of player with TNT named "&cパーク:ペイバック" with lore "&r死亡時大爆発" to run "park 2 5 %{_pl}%"
  64. format slot 6 of player with iron axe named "&cパーク:攻撃上昇" with lore "&r常時攻撃力上昇" to run "park 2 6 %{_pl}%"
  65. format slot 7 of player with obsidian named "&cパーク:ガーディアン" with lore "&r盾所持" to run "park 2 7 %{_pl}%"
  66. format slot 8 of player with dispenser named "&cパーク:叫び" with lore "&r攻撃されると発光" to run "park 2 8 %{_pl}%"
  67. format slot 9 of player with tripwire hook named "&cパーク:罠" with lore "&rトースター所持" to run "park 2 9 %{_pl}%"
  68. format slot 10 of player with diamond named "&cパーク:幸運" with lore "&r常時幸運" to run "park 2 10 %{_pl}%"
  69. format slot 11 of player with bone named "&cパーク:猛獣使い" with lore "&r初期狼所持" to run "park 2 11 %{_pl}%"
  70. format slot 12 of player with diamond chestplate named "&cパーク:体力高め" with lore "&r最大体力上昇" to run "park 2 12 %{_pl}%"
  71. format slot 13 of player with bottle named "&cパーク:薬剤師" with lore "&rデバフポーション所持" to run "park 2 13 %{_pl}%"
  72. format slot 14 of player with diamond boots named "&cパーク:受け身" with lore "&r落下ダメージ無効" to run "park 2 14 %{_pl}%"
  73. else if arg is 3:
  74. open chest with 3 row named "&aパークエディット:パーク3" to player
  75. wait 1 tick
  76. format slot 0 of player with emerald named "&aパーク:エメラルド" with lore "&r初期エメラルド所持(重複可能)" to close then run "park 3 0 %{_pl}%"
  77. format slot 1 of player with wooden sword named "&cパーク:ウェポン" with lore "&r初期武器所持(重複可能)" to close then run "park 3 1 %{_pl}%"
  78. format slot 2 of player with totem of undying named "&cパーク:復活" with lore "&r不死のトーテム所持(重複可能)" to close then run "park 3 2 %{_pl}%"
  79. format slot 3 of player with white banner item named "&cパーク:透明化" with lore "&rシフトで半透明化(重複不可能)" to close then run "park 3 3 %{_pl}%"
  80. format slot 4 of player with feather named "&cパーク:走行速度" with lore "&r走行速度上昇、ただし一定時間で元に戻る 時間経過で復活(重複不可能)" to close then run "park 3 4 %{_pl}%"
  81. format slot 5 of player with TNT named "&cパーク:ペイバック" with lore "&r死亡時大爆発" to close then run "park 3 5 %{_pl}%"
  82. format slot 6 of player with iron axe named "&cパーク:攻撃上昇" with lore "&r常時攻撃力上昇" to close then run "park 3 6 %{_pl}%"
  83. format slot 7 of player with obsidian named "&cパーク:ガーディアン" with lore "&r盾所持" to close then run "park 3 7 %{_pl}%"
  84. format slot 8 of player with dispenser named "&cパーク:叫び" with lore "&r攻撃されると発光" to close then run "park 3 8 %{_pl}%"
  85. format slot 9 of player with tripwire hook named "&cパーク:罠" with lore "&rトースター所持" to close then run "park 3 9 %{_pl}%"
  86. format slot 10 of player with diamond named "&cパーク:幸運" with lore "&r常時幸運" to close then run "park 3 10 %{_pl}%"
  87. format slot 11 of player with bone named "&cパーク:猛獣使い" with lore "&r初期狼所持" to close then run "park 3 11 %{_pl}%"
  88. format slot 12 of player with diamond chestplate named "&cパーク:体力高め" with lore "&r最大体力上昇" to close then run "park 3 12 %{_pl}%"
  89. format slot 13 of player with bottle named "&cパーク:薬剤師" with lore "&rデバフポーション所持" to close then run "park 3 13 %{_pl}%"
  90. format slot 14 of player with diamond boots named "&cパーク:受け身" with lore "&r落下ダメージ無効" to close then run "park 3 14 %{_pl}%"
  91. else:
  92. open chest with 3 row named "&aパークエディット:パーク1" to player
  93. wait 1 tick
  94. format slot 0 of player with emerald named "&aパーク:エメラルド" with lore "&r初期エメラルド所持(重複可能)" to run "park 1 0 %{_pl}%"
  95. format slot 1 of player with wooden sword named "&cパーク:ウェポン" with lore "&r初期武器所持(重複可能)" to run "park 1 1 %{_pl}%"
  96. format slot 2 of player with totem of undying named "&cパーク:復活" with lore "&r不死のトーテム所持(重複可能)" to run "park 1 2 %{_pl}%"
  97. format slot 3 of player with white banner item named "&cパーク:透明化" with lore "&rシフトで半透明化(重複不可能)" to run "park 1 3 %{_pl}%"
  98. format slot 4 of player with feather named "&cパーク:走行速度" with lore "&r走行速度上昇、ただし一定時間で元に戻る 時間経過で復活(重複不可能)" to run "park 1 4 %{_pl}%"
  99. format slot 5 of player with TNT named "&cパーク:ペイバック" with lore "&r死亡時大爆発" to run "park 1 5 %{_pl}%"
  100. format slot 6 of player with iron axe named "&cパーク:攻撃上昇" with lore "&r常時攻撃力上昇" to run "park 1 6 %{_pl}%"
  101. format slot 7 of player with obsidian named "&cパーク:ガーディアン" with lore "&r盾所持" to run "park 1 7 %{_pl}%"
  102. format slot 8 of player with dispenser named "&cパーク:叫び" with lore "&r攻撃されると発光" to run "park 1 8 %{_pl}%"
  103. format slot 9 of player with tripwire hook named "&cパーク:罠" with lore "&rトースター所持" to run "park 1 9 %{_pl}%"
  104. format slot 10 of player with diamond named "&cパーク:幸運" with lore "&r常時幸運" to run "park 1 10 %{_pl}%"
  105. format slot 11 of player with bone named "&cパーク:猛獣使い" with lore "&r初期狼所持" to run "park 1 11 %{_pl}%"
  106. format slot 12 of player with diamond chestplate named "&cパーク:体力高め" with lore "&r最大体力上昇" to run "park 1 12 %{_pl}%"
  107. format slot 13 of player with bottle named "&cパーク:薬剤師" with lore "&rデバフポーション所持" to run "park 1 13 %{_pl}%"
  108. format slot 14 of player with diamond boots named "&cパーク:受け身" with lore "&r落下ダメージ無効" to run "park 1 14 %{_pl}%"
  109.  
  110. command /park <number> <number> [<player>]:
  111. trigger:
  112. arg 1 is 1 or 2 or 3
  113. if arg 2 is 0:
  114. set {park::%arg 3%::%arg 1%} to "&r00 初期エメ"
  115. if arg 2 is 1:
  116. set {park::%arg 3%::%arg 1%} to "&r01 初期武器"
  117. if arg 2 is 2:
  118. set {park::%arg 3%::%arg 1%} to "&r02 トーテム"
  119. if arg 2 is 3:
  120. set {park::%arg 3%::%arg 1%} to "&r03 半透明化"
  121. if arg 2 is 4:
  122. set {park::%arg 3%::%arg 1%} to "&r04 走り上昇"
  123. if arg 2 is 5:
  124. set {park::%arg 3%::%arg 1%} to "&r05 死亡爆発"
  125. if arg 2 is 6:
  126. set {park::%arg 3%::%arg 1%} to "&r06 攻撃上昇"
  127. if arg 2 is 7:
  128. set {park::%arg 3%::%arg 1%} to "&r07 初期大盾"
  129. if arg 2 is 8:
  130. set {park::%arg 3%::%arg 1%} to "&r08 超痛がり"
  131. if arg 2 is 9:
  132. set {park::%arg 3%::%arg 1%} to "&r09 職業罠師"
  133. if arg 2 is 10:
  134. set {park::%arg 3%::%arg 1%} to "&r10 金に縁有"
  135. if arg 2 is 11:
  136. set {park::%arg 3%::%arg 1%} to "&r11 狼が懐く"
  137. if arg 2 is 12:
  138. set {park::%arg 3%::%arg 1%} to "&r12 体力強化"
  139. if arg 2 is 13:
  140. set {park::%arg 3%::%arg 1%} to "&r13 毒薬使い"
  141. if arg 2 is 14:
  142. set {park::%arg 3%::%arg 1%} to "&r14 受身強化"
  143. if arg 1 is 1:
  144. execute arg 3 command "editpark 2"
  145. else if arg 1 is 2:
  146. wait 5 tick
  147. execute arg 3 command "editpark 3"
  148. else if arg 1 is 3:
  149. set {_item} to leather chestplate named "&rパーク"
  150. set 1st line of {_item}'s lore to {park::%arg 3%::1}
  151. set 2nd line of {_item}'s lore to {park::%arg 3%::2}
  152. set 3rd line of {_item}'s lore to {park::%arg 3%::3}
  153. give {_item} to arg 3
  154. arg 2 is -1
  155. delete {park::%arg 3%::1}
  156. delete {park::%arg 3%::2}
  157. delete {park::%arg 3%::3}
  158.  
  159. on sneak toggle:
  160. {parkact::%player%::03} is true
  161. if player isn't sneaking:
  162. apply invisibility to player for 60 seconds
  163. else:
  164. remove invisibility from player
  165.  
  166.  
  167. every tick:
  168. loop all players:
  169. {parkact::%loop-player%::04} is true
  170. if {parkact04::%loop-player%} is less than 999:
  171. set {parkact04::%loop-player%} to {parkact04::%loop-player%} + 1
  172. set loop-player's level progress to {parkact04::%loop-player%} / 1000
  173. if loop-player is sprinting:
  174. if {parkact04::%loop-player%} is bigger than 6:
  175. set the loop-player's walk speed to 0.5
  176. set {parkact04::%loop-player%} to {parkact04::%loop-player%} - 5
  177. else:
  178. set the loop-player's walk speed to 0.2
  179. else:
  180. set the loop-player's walk speed to 0.2
  181.  
  182. on death:
  183. {parkact::%victim%::05} is true
  184. create a safe explosion with force 8 at {parkact05::%player%}
  185.  
  186. on damage:
  187. if damage cause is fall:
  188. {parkact::%victim%::14} is true
  189. cancel event
  190. if {parkact::%victim%::08} is true:
  191. apply glowing to victim for 5 seconds
  192. if {parkact::%victim%::05} is true:
  193. set {parkact05::%victim%} to location of victim
  194. attacker is player
  195. if {parkact::%attacker%::10} is true:
  196. apply luck of tier 5 to attacker for 10 second
  197. {parkact::%attacker%::06} is true
  198. set damage to damage + 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement