yozora_1202

Untitled

Jun 28th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.88 KB | None | 0 0
  1. on rightclick holding gold sword:
  2. name of player's tool is "&e&l雷剣"
  3. player is sneaking
  4. if level of player is more than 9:
  5. set {_cooldown} to difference between {AOELightning.%player%.lastused} and now
  6. wait 1 tick
  7. if {_cooldown} is less than 20 seconds:
  8. play "entity_ghast_shoot" to player at volume 10
  9. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  10. message "<pink>%difference between 20 seconds and {_cooldown}% <white>後に使用可能"
  11. wait 20 tick
  12. stop effect "Failed"
  13. stop
  14. reduce level progress
  15. reduce level progress of player by 10
  16. set {AOELightning.%player%.lastused} to now
  17. loop all entities in radius 50 around the player:
  18. loop-entity is not the player
  19. chance of 80%:
  20. strike lightning effect at the loop-entity
  21. damage loop-entity by 4 hearts
  22. wait 20 tick
  23. loop all entities in radius 30 around the player:
  24. loop-entity is not the player
  25. chance of 90%:
  26. strike lightning effect at the loop-entity
  27. damage loop-entity by 4 hearts
  28. wait 20 tick
  29. loop all entities in radius 10 around the player:
  30. loop-entity is not the player
  31. strike lightning effect at the loop-entity
  32. damage loop-entity by 5 hearts
  33. else:
  34. play "entity_ghast_shoot" to player at volume 10
  35. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  36. message "<pink>疾雷スキルには10Lv以上のXPが必要です!"
  37. damage the player by 2 hearts
  38. wait 20 tick
  39. stop effect "Failed"
  40.  
  41. on leftclick holding gold sword:
  42. player's tool is enchanted with fortune
  43. player is sneaking
  44. if level of player is more than 3:
  45. set {_cooldown} to difference between {LightningShot.%player%.lastused} and now
  46. if {_cooldown} is less than 5 seconds:
  47. stop
  48. reduce level progress of player by 4
  49. shoot a snowball at speed 5
  50. set {Lightning.%player%.lastused} to now
  51. else:
  52. play "entity_ghast_shoot" to player at volume 10
  53. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  54. message "<pink>雷鳴スキルには4Lv以上のXPが必要です!"
  55. wait 20 tick
  56. stop effect "Failed"
  57.  
  58. on damage:
  59. projectile is snowball
  60. attacker's tool is gold sword
  61. attacker's tool is enchanted with fortune
  62. strike lightning at the victim
  63. if victim is a player:
  64. apply speed 2 to the attacker for 10 seconds
  65. apply strength 5 to the attacker for 10 seconds
  66.  
  67. on rightclick holding diamond hoe:
  68. cancel the event
  69. player's tool is enchanted with PROTECTION 10
  70. player is sneaking
  71. if level of player is more than 5:
  72. set {_cooldown} to difference between {Heal.%player%.lastused} and now
  73. if {_cooldown} is less than 10 seconds:
  74. play "entity_ghast_shoot" to player at volume 10
  75. create a circle effect at player with id "HealFailed" with particles SMOKE NORMAL with radius 1
  76. message "<pink>%difference between 10 seconds and {_cooldown}% <white>後に使用可能"
  77. wait 20 tick
  78. stop effect "HealFailed"
  79. stop
  80. loop players in radius 5 around the player:
  81. play "entity_player_levelup" to loop-player at volume 10
  82. add 6 to loop-player's health
  83. reduce level progress of player by 6
  84. create a circle effect for loop-player with id "HEAL" with particles HEART with radius 1
  85. set {Heal.%player%.lastused} to now
  86. wait 60 tick
  87. stop effect "HEAL"
  88. else:
  89. play "entity_ghast_shoot" to player at volume 10
  90. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  91. message "<pink>回復スキルには6Lv以上のXPが必要です!"
  92. wait 20 tick
  93. stop effect "Failed"
  94.  
  95. #アイスショット
  96. on leftclick holding diamond hoe:
  97. player's tool is enchanted with PROTECTION 10
  98. if level of player is more than 0:
  99. set {_cooldown} to difference between {IceShot.%player%.lastused} and now
  100. if {_cooldown} is less than 0.5 seconds:
  101. stop
  102. play "block_glass_break" to player at volume 10
  103. reduce level progress of player by 1
  104. shoot a snowball at speed 2
  105. set {_num} to 0.5
  106. set {_Particle} to location of the block {_num} meter in front of player's head
  107. loop 30 times:
  108. show 10 water splash particles at {_Particle} offset by 0, 0, 0
  109. set {_num} to {_num} + 0.5
  110. set {_Particle} to location of the block {_num} meter infront of player's head
  111. if the block {_num} meter infront of player's head is not air:
  112. stop loop
  113. set {IceShot.%player%.lastused} to now
  114. else:
  115. play "entity_ghast_shoot" to player at volume 10
  116. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  117. message "<pink>アイスショットスキルには1Lv以上のXPが必要です!"
  118. wait 20 tick
  119. stop effect "Failed"
  120.  
  121. on damage:
  122. projectile is snowball
  123. attacker's tool is diamond hoe
  124. damage victim by 1 hearts
  125. apply slow 5 to the victim for 1 seconds
  126. create a circle effect at victim with id "Prison" with particles drip water with radius 1
  127. wait 30 tick
  128. stop effect "Prison"
  129.  
  130. every seconds:
  131. loop all players:
  132. level of loop-player is less than 20
  133. if loop-player is sneaking:
  134. the block below loop-player is not air
  135. add 0.5 to level progress of loop-player
  136. add 0.05 to level progress of loop-player
  137.  
  138. on respawn:
  139. level of player is less than 20
  140. wait 1 tick
  141. set level of player to 20
  142.  
  143. on sneak toggle:
  144. {jump.%player%.air} is not set
  145. player is not sneaking
  146. set {jump.%player%.air} to "1"
  147. the block below player is air
  148. push player upwards at speed 1
  149. push player in direction of player at speed 0.75
  150.  
  151. on sneak toggle:
  152. the block below player is not air
  153. delete {jump.%player%.air}
  154.  
  155. on tool change:
  156. if tool is enchanted with feather falling 1:
  157. set {RISE.%player%} to 0.1
  158. if tool is enchanted with feather falling 2:
  159. set {RISE.%player%} to 0.2
  160. if tool is enchanted with feather falling 3:
  161. set {RISE.%player%} to 0.3
  162. if tool is enchanted with protection 1:
  163. set {DRIVE.%player%} to 2
  164. if tool is enchanted with protection 2:
  165. set {DRIVE.%player%} to 1
  166. if tool is enchanted with protection 3:
  167. set {DRIVE.%player%} to 0.5
  168. if tool is enchanted with blast protection 1:
  169. set {MGCT.%player%} to 1 seconds
  170. if tool is enchanted with blast protection 2:
  171. set {MGCT.%player%} to 0.1 seconds
  172. if tool is enchanted with blast protection 3:
  173. set {MGCT.%player%} to 0 second
  174.  
  175. on rightclick:
  176. player is not sneaking
  177. player's tool is enchanted with fortune
  178. set {_cooldown} to difference between {MG.%player%.lastused} and now
  179. if {_cooldown} is less than {MGCT.%player%}:
  180. stop
  181. push player upwards at speed {RISE.%player%}
  182. push player in direction of player at speed {DRIVE.%player%}
  183. chance of 10%:
  184. reduce level progress of player by 0.1
  185. set {MG.%player%.lastused} to now
  186.  
  187.  
  188. on first join:
  189. clear player's inventory
  190. set slot 0 of player to diamond named "&d&l初回&b&lダイヤ"
Add Comment
Please, Sign In to add comment