GIToez

Sword

Dec 1st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###############
  2. # cool swords #
  3. ###############
  4.  
  5. # THIS GOES IN ITEMS
  6. lensword:
  7. Id: diamond_sword
  8. Display: "&9Len &6Sword"
  9. Lore:
  10. - "&bLen<&sq>s personal sword!"
  11. Skills:
  12. - skill{s=greatSwing} ~onSwing @self
  13. - skill{s=changeMode} ~onUse @self
  14. Attributes:
  15. MainHand:
  16. AttackSpeed: 1
  17. Damage: 20
  18. Options:
  19. Unbreakable: true
  20. Model: 3
  21. Hide:
  22. - ATTRIBUTES
  23. - UNBREAKABLE
  24. soulBlade:
  25. Id: diamond_sword
  26. Display: "&dSoul &5Blade"
  27. Lore:
  28. - "&5A sword that gets stronger as you gather souls."
  29. - "&dRight-click to check soul count"
  30. - "&dShift-left-click to unleash souls gathered"
  31. - "&f- Requires 1+ souls"
  32. - "&dShift-right-click to buff yourself"
  33. - "&f- Requires 3+ souls"
  34. - "&5IMPORTANT: If soul count = null,"
  35. - "&5shift-left-click once."
  36. Skills:
  37. - skill{s=soulRelease} ~onSwing @self
  38. - skill{s=soulGather} ~onKill @self
  39. - skill{s=soulCheck} ~onUse @target
  40. Options:
  41. Unbreakable: true
  42. Model: 8
  43. Hide:
  44. - UNBREAKABLE
  45.  
  46. # THIS GOES INTO SKILLS
  47. # len sword
  48. changeMode:
  49. Cooldown: 1
  50. Conditions:
  51. - hastag{tag=laserMode} castinstead changeMode2
  52. Skills:
  53. - addtag{tag=laserMode} @self
  54. - removetag{tag=swordMode} @self
  55. - effect:particlesphere{particle=reddust;color=#42BFF5;amount=200;radius=1} @origin
  56. - setmodel{model=3}
  57. - sound{s=block.anvil.place} @self
  58. - jsonmessage{m="[{"text":"MODE SHIFTED","color":"blue","italic":true}]"} @self
  59. changeMode2:
  60. Cooldown: 1
  61. Skills:
  62. - removetag{tag=laserMode} @self
  63. - addtag{tag=swordMode} @self
  64. - effect:particlesphere{particle=reddust;color=#42BFF5;amount=200;radius=1} @origin
  65. - setmodel{model=4}
  66. - sound{s=block.anvil.place} @self
  67. - jsonmessage{m="[{"text":"MODE SHIFTED","color":"blue","italic":true}]"} @self
  68. greatLeap:
  69. Skills:
  70. - jump{velocity=1}
  71. - sound{s=entity.firework_rocket.launch} @self
  72. - delay 5
  73. - skill{s=greatLeap1}
  74. greatLeap1:
  75. Conditions:
  76. - hastag{tag=ground} false
  77. Skills:
  78. - skill{s=greatLeap2}
  79. - delay 1
  80. - skill{s=greatLeap1}
  81. greatLeap2:
  82. Conditions:
  83. - hastag{tag=ground} false
  84. - onground
  85. Skills:
  86. - addtag{tag=ground} @self
  87. - effect:particlering{particle=blockcrack;radius=3;points=32;amount=32;hS=1;vS=1} @self
  88. - sound{s=entity.firework_rocket.blast} @self
  89. - damage{amount=20} @EIR{r=3}
  90. - heal{amount=3} @self
  91. - delay 5
  92. - removetag{tag=ground} @self
  93. greatSwing:
  94. Conditions:
  95. - hastag{tag=laserMode} castinstead chargeLaser
  96. - crouching castinstead greatLeap
  97. Skills:
  98. - effect:spin{duration=17;velocity=-20} @self
  99. - sound{s=entity.ender_dragon.flap} @self
  100. - delay 5
  101. - sound{s=entity.ender_dragon.flap} @self
  102. - delay 5
  103. - sound{s=entity.ender_dragon.flap} @self
  104. - delay 5
  105. - sound{s=entity.ender_dragon.flap} @self
  106. - effect:particlering{particle=cloud;radius=2;points=8;amount=32;hS=1;vS=0} @self
  107. - damage{amount=15} @EntitiesInRadius{r=3}
  108. shootLaser:
  109. Conditions:
  110. - crouching castinstead surroundLaser
  111. Skills:
  112. - setVariable{var=lenSwordLaser;scope=CASTER;value=0;type=INTEGER;save=true}
  113. - projectile{hitnonplayers=true;onTick=shootLaser-Tick;onHit=shootLaser-Hit;v=20;i=1;hR=1;vR=1} @targetlocation
  114. - sound{s=entity.ender_dragon.shoot} @self
  115. shootLaser-Tick:
  116. Skills:
  117. - effect:particles{p=reddust;color=#42BFF5;amount=15;speed=4;hS=0.2;vS=0.2} @origin
  118. shootLaser-Hit:
  119. Skills:
  120. - damage{amount=20}
  121. chargeLaser:
  122. Conditions:
  123. - variableEquals{var=caster.lenSwordLaser;value=1} castinstead shootLaser
  124. Skills:
  125. - setVariable{var=lenSwordLaser;scope=CASTER;value=1;type=INTEGER;save=true}
  126. - effect:particles{p=spell;amount=30;speed=6;hS=0.2;vS=0.5} @origin
  127. surroundLaser:
  128. Skills:
  129. - setVariable{var=lenSwordLaser;scope=CASTER;value=0;type=INTEGER;save=true}
  130. - projectile{hitnonplayers=true;onTick=surroundLaser-Tick;onHit=surroundLaser-Hit;v=20;i=1;hR=1;vR=1} @Ring{radius=2;points=8}
  131. - sound{s=entity.ender_dragon.shoot} @self
  132. surroundLaser-Tick:
  133. Skills:
  134. - effect:particles{p=reddust;color=#42BFF5;amount=15;speed=4;hS=0.2;vS=0.2} @origin
  135. surroundLaser-Hit:
  136. Skills:
  137. - damage{amount=10}
  138. # Soul blade
  139. soulRelease:
  140. Cooldown: 1
  141. Conditions:
  142. - crouching true
  143. - variableEquals{var=caster.souls;val=0;scope=CASTER} castinstead noSouls
  144. Skills:
  145. - effect:particlering{particle=dragon_breath;radius=2;points=8;amount=32;hS=1;vS=0} @self
  146. - damage{a=<caster.var.souls> * 4} @EIR{r=3}
  147. - setvariable{var=caster.souls;value=0;type=INTEGER;scope=CASTER;save=true} @self
  148. - message{m="You have unleashed your captured souls, and now have <caster.var.souls> souls."} @self
  149. noSouls:
  150. Skills:
  151. - message{m="You don't have enough souls to do this."} @self
  152. noSouls2:
  153. Conditions:
  154. - variableInRange{var=caster.souls;val=0to2}
  155. Skills:
  156. - message{m="You don't have enough souls to do this."} @self
  157. soulGather:
  158. Skills:
  159. - effect:particles{p=dragon_breath;amount=15;speed=0.1;hS=0.1;vS=0.1} @self
  160. - variableadd{var=caster.souls;amount=1;type=INTEGER} @self
  161. soulCheck:
  162. Cooldown: 1
  163. Conditions:
  164. - crouching castinstead soulBuffStart
  165. Skills:
  166. - message{m="You have <caster.var.souls> souls."} @self
  167. soulBuff:
  168. Conditions:
  169. - variableInRange{var=caster.souls;val=3to99999}
  170. Skills:
  171. - variablesubtract{var=caster.souls;amount=3;type=INTEGER} @self
  172. - potion{type=INCREASE_DAMAGE;duration=100;level=2} @self
  173. - message{m="You have unleashed your captured souls, and now have <caster.var.souls> souls."} @self
  174. soulBuffStart:
  175. Cooldown: 1
  176. Skills:
  177. - skill{s=noSouls2} @self
  178. - skill{s=soulBuff} @self
Add Comment
Please, Sign In to add comment