Zeldaboy111

Skript Tutorial #61

Dec 13th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.48 KB | None | 0 0
  1. #Als je de coding in je video gebruikt, zet dan het volgende in je beschrijving (kopieer en plak):
  2. # Gemaakt door: Zeldaboy111/Tom Pampiermole
  3. # YouTube kanaal van de maker: https://www.youtube.com/channel/UClmeX0PpxrQd9q-4kRaBefg?view_as=subscriber
  4.  
  5. options:
  6. {spells::wands::lightningwand::%player%} = {spells::wands::lightningwand::%loop-player%}
  7. {spells::wands::lightningspark::%player%} = {spells::wands::lightningspark::%loop-player%}
  8. {spells::wands::lightning::%player%} = {spells::wands::lightning::%loop-player%}
  9. {spellpoints::wands::lightningspark::%player%} = {spellpoints::wands::lightningspark::%loop-player%}
  10. {spells::wands::lightningspark::%player%} = {spells::wands::lightningspark::%arg 2%}
  11. {spells::wands::lightning::%player%} = {spells::wands::lightning::%arg 2%}
  12.  
  13. on enable:
  14. set {text::wands::title} to "&3[&bWands&3]"
  15. set {text::wands::helpemessage} to "%{text::wands::title}% &4Doe &c/wand help &4om de help pagina te krijgen."
  16. set {text::wands::nep} to "%{text::wands::title}% &4Je hebt &convoldoende permissies &4om deze command uit te voeren."
  17. set {text::wands::gbw} to "%{text::wands::title}% &4Deze wand bestaat niet, doe &c/wand get list &4om de wandlist te krijgen."
  18.  
  19. on join:
  20. if {spellpoints::wands::lightningspark::%player%} is not set:
  21. set {spellpoints::wands::lightningspark::%player%} to 0
  22.  
  23. command /wand [<text>] [<text>] [<text>] [<number>]:
  24. trigger:
  25. if player has permission "wand.get" OR "wand.*":
  26.  
  27. if arg 1 is "help":
  28. send "&b============%{text::wands::title}%&b============"
  29. send "&b/wand help &7&k::&f &3Krijg een help bericht in de chat."
  30. send "&b/wand get list &7&k::&f &3Krijg een lijst met alle wands."
  31. send "&b/wand get [wandnaam] &7&k::&f &3Krijg een wand."
  32. send "&b/wand set [speler] [spell] [aantal spellpoints] &7&k::&f &3Zet de spellpoints van een speler naar het aantal opgegeven spellpoints."
  33. send "&b/wand reset [speler] [all/spell] &7&k::&f &3Reset de spellpoints van de opgegeven speler."
  34. send "&b============%{text::wands::title}%&b============"
  35. stop
  36.  
  37. if arg 1 is "set":
  38. if arg 2 is set:
  39. if arg 3 is set:
  40. if "%{spells::wands::list::*}%" contains arg 3:
  41. if arg 4 is set:
  42. send "%{text::wands::title}% &3Succesvol toegepast:"
  43. send "&3Spellpoints van: &b%arg 2%"
  44. send "&3Voor de spell: &b%arg 3%"
  45. send "&3Gezet naar: &b%arg 4%"
  46. stop
  47. else:
  48. send "%{text::wands::title}% &4Je moet nog een &caantal spellpoints &4invullen."
  49. stop
  50.  
  51. else:
  52. send "%{text::wands::title}% &4Dit is geen bestaande spell."
  53. stop
  54.  
  55. else:
  56. send "%{text::wands::title}% &4Je moet nog een &cspell &4opgeven."
  57. stop
  58.  
  59. else:
  60. send "%{text::wands::title}% &4Doe &c/wand set [speler] [spell] [aantal spellpoints]&4."
  61. stop
  62.  
  63. if arg 1 is "reset":
  64. if arg 2 is set:
  65. if arg 3 is set:
  66. if arg 3 is "all":
  67. send "%{text::wands::title}% &3Alle spells zijn gereset van &b%arg 2%"
  68. set {spellpoints::wands::lightningspark::%arg 2%} to 0
  69. set {spellpoints::wands::lightning::%arg 2%} to 0
  70. stop
  71.  
  72. if {spells::wands::list::*} contains arg 3:
  73. send "%{text::wands::title}% &3Alle spells zijn gereset van &b%arg 2%"
  74. set {spellpoints::wands::%arg 3%::%arg 2%} to 0
  75. stop
  76.  
  77. else:
  78. send "%{text::wands::title}% &4Dit is geen bestaande spell."
  79. stop
  80.  
  81.  
  82. if arg 1 is "get":
  83.  
  84. if arg 2 is "list":
  85. send "%{text::wands::title}% &3Dit is de lijst met alle wands:"
  86. send "%{text::wands::title}% &bLightning"
  87. stop
  88.  
  89. if arg 2 is "Lightning":
  90. send "%{text::wands::title}% &3Veel plezier met je &b&lLightning Wand&3."
  91. give player a blaze rod named "&b&lLightning Wand" with lore "&5&kl"
  92. stop
  93.  
  94. else:
  95. send "%{text::wands::gbw}%"
  96. stop
  97.  
  98. else:
  99. send "%{text::wands::helpemessage}%"
  100. stop
  101.  
  102. else:
  103. send "%{text::wands::nep}%"
  104. stop
  105.  
  106.  
  107. on leftclick:
  108. if player is in world "Kingdom":
  109. if player is holding a blaze rod named "&b&lLightning Wand" with lore "&5&kl":
  110. if {spells::wands::lightningwand::%player%} is 1:
  111. if {spellpoints::wands::lightningspark::%player%} is not 10:
  112. chance of 10%:
  113. create an explosion of force 2 at the targeted block
  114. create an explosion of force 1 at the player
  115. chance of 5%:
  116. spawn 1 zombie at location of player
  117. chance of 25%:
  118. add 1 to {spellpoints::wands::lightningspark::%player%}
  119. send "&b[&3Spells&b] &3Je hebt &b&l1 spellpoint &3gekregen."
  120.  
  121.  
  122.  
  123. on leftclick:
  124. if player is in world "Kingdom":
  125. if player is holding a blaze rod named "&b&lLightning Wand" with lore "&5&kl":
  126. if {spells::wands::lightningwand::%player%} is 1:
  127. if {spellpoints::wands::lightningspark::%player%} is 10:
  128. if {spells::wands::lightningspark::%player%} is 0:
  129. show 50 "magical_crit" particles at location of targeted block for player offset by 0.5, 0.5, 0.5
  130. damage targeted entity by 2 hearts
  131. set {spells::wands::lightningspark::%player%} to 5
  132. stop
  133.  
  134. else:
  135. send "&b[&3Spells&b] &3Je hebt nog een cooldown van &b&l%{spells::wands::lightningspark::%player%}%"
  136. stop
  137.  
  138.  
  139. if {spells::wands::lightningwand::%player%} is 0:
  140. if {spellpoints::wands::lightning::%player%} is 20:
  141. if {spells::wands::lightning::%player%} is 0:
  142. strike lightning at the targeted block
  143. set {spells::wands::lightning::%player%} to 10
  144. stop
  145.  
  146. else:
  147. send "&b[&3Spells&b] &3Je hebt nog een cooldown van &b&l%{spells::wands::lightning::%player%}%"
  148. stop
  149.  
  150. on rightclick:
  151. if player is in world "Kingdom":
  152. if player is holding a blaze rod named "&b&lLightning Wand" with lore "&5&kl":
  153. if {spells::wands::lightningwand::%player%} is not set:
  154. set {spells::wands::lightningwand::%player%} to 1
  155. send "&b[&3Spells&b] &b&lLightning Spark"
  156. stop
  157.  
  158. if {spells::wands::lightningwand::%player%} is 0:
  159. set {spells::wands::lightningwand::%player%} to 1
  160. send "&b[&3Spells&b] &b&lLightning Spark"
  161. stop
  162.  
  163. if {spells::wands::lightningwand::%player%} is 1:
  164. set {spells::wands::lightningwand::%player%} to 0
  165. send "&b[&3Spells&b] &b&lLightning"
  166. stop
  167.  
  168. every 1 second:
  169. loop all players in world "Kingdom":
  170.  
  171. if {spells::wands::lightningspark::%loop-player%} is not set:
  172. set {spells::wands::lightningspark::%loop-player%} to 0
  173.  
  174. if {spells::wands::lightning::%loop-player%} is not set:
  175. set {spells::wands::lightning::%loop-player%} to 0
  176.  
  177. if {spells::wands::lightningspark::%loop-player%} is more than 0:
  178. remove 1 from {spells::wands::lightningspark::%loop-player%}
  179. if {spells::wands::lightning::%loop-player%} is more than 0:
  180.  
  181. remove 1 from {spells::wands::lightning::%loop-player%}
  182.  
  183.  
  184. every 1 tick:
  185. loop all players in world "Kingdom":
  186. if loop-player is holding a blaze rod named "&b&lLightning Wand" with lore "&5&kl":
  187. if {spells::wands::lightningwand::%loop-player%} is 1:
  188. if {spellpoints::wands::lightningspark::%loop-player%} is 0:
  189. show actionbar from "&c::::::::::::::::::::" to loop-player
  190. if {spellpoints::wands::lightningspark::%loop-player%} is 1:
  191. show actionbar from "&a::&c::::::::::::::::::" to loop-player
  192. if {spellpoints::wands::lightningspark::%loop-player%} is 2:
  193. show actionbar from "&a:::&c:::::::::::::::::" to loop-player
  194. if {spellpoints::wands::lightningspark::%loop-player%} is 3:
  195. show actionbar from "&a::::::&c::::::::::::::" to loop-player
  196. if {spellpoints::wands::lightningspark::%loop-player%} is 4:
  197. show actionbar from "&a::::::::&c::::::::::::" to loop-player
  198. if {spellpoints::wands::lightningspark::%loop-player%} is 5:
  199. show actionbar from "&a::::::::::&c::::::::::" to loop-player
  200. if {spellpoints::wands::lightningspark::%loop-player%} is 6:
  201. show actionbar from "&a::::::::::::&c::::::::" to loop-player
  202. if {spellpoints::wands::lightningspark::%loop-player%} is 7:
  203. show actionbar from "&a::::::::::::::&c::::::" to loop-player
  204. if {spellpoints::wands::lightningspark::%loop-player%} is 8:
  205. show actionbar from "&a::::::::::::::::&c::::" to loop-player
  206. if {spellpoints::wands::lightningspark::%loop-player%} is 9:
  207. show actionbar from "&a::::::::::::::::::&c::" to loop-player
  208. if {spellpoints::wands::lightningspark::%loop-player%} is 10:
  209. show actionbar from "&b&lLightning Spark" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment