Advertisement
Builder4Life

BossSystem | Skript

May 23rd, 2022
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.50 KB | None | 0 0
  1. #This skript is made by MightyTiger
  2.  
  3. variables:
  4. #maxspawn
  5. {maxspawnshark} = 1
  6. {maxspawndevil} = 1
  7. {maxspawndarkknight} = 1
  8. {maxspawnsandstormer} = 1
  9.  
  10. options:
  11. #names
  12. prefix: &9&lAppolloboxx
  13. shark: &9&lShark &bBoss
  14. devil: &4&lDevil &cBoss
  15. darkknight: &5&lDarkKnight &dboss
  16. sandstormer: &6SandStormer &eBoss
  17.  
  18. #item drops
  19. sharkdrop: prismarine crystals named "&b&lShark Fragment"
  20. sharkdropname: &b&lShark Fragment
  21. devildrop: prismarine crystals named "&c&lA piece of the devil"
  22. devildropname: &c&lA piece of the devil
  23. darkknightdrop: prismarine crystals named "&d&lMagic bone"
  24. darkknightdropname: &d&lMagic bone
  25. sandstormerdrop: prismarine crystals named "&e&lA piece of sand"
  26. sandstormerdropname: &e&lA piece of sand
  27.  
  28. #timers
  29. sharktimer: 10
  30. deviltimer: 10
  31. darkknighttimer: 10
  32. sandstormertimer: 10
  33.  
  34. command /bosshelp:
  35. permission: help.bosses
  36. permission message: {@prefix} &8» &7You do not have permission to do that.
  37. trigger:
  38. set {global.event.spawn} to player's position
  39. send "{@prefix} &8» &7BossHelp."
  40. send "&bhelp &8» &7/bosshelp"
  41. send "&bbosslist &8» &7/bosslist"
  42. send "&blocation bosses &8» &7/setbosslocation <bossname>"
  43. send "&bset max bosses &8» &7/setmaxspawn <bossname> <amount>"
  44. send "&benable a boss &8» &7/enableboss <bossname>"
  45. send "&bdisable a boss &8» &7/disableboss <bossname>"
  46.  
  47. command /bosslist:
  48. permission: moblist.bosses
  49. permission message: {@prefix} &8» &7You do not have permission to do that.
  50. trigger:
  51. set {global.event.spawn} to player's position
  52. send "{@prefix} &8» &7BossList."
  53. send "&bBosslist"
  54. send "&8- &7Shark"
  55. send "&8- &7Devil"
  56. send "&8- &7DarkKnight"
  57. send "&8- &7Sandstormer"
  58.  
  59. command /setmaxspawn [<text>] [<text>]:
  60. permission: setmaxspawn.bosses
  61. permission message: {@prefix} &8» &7You do not have permission to do that.
  62. trigger:
  63. if arg-1 is not set:
  64. send "{@prefix} &8» &7You used the command wrong type /bosshelp for info."
  65. else:
  66. if arg 1 is "shark":
  67. set {maxspawnshark} to arg-2
  68. else:
  69. if arg 1 is "devil":
  70. set {maxspawndevil} to arg-2
  71. else:
  72. if arg 1 is "darkknight":
  73. set {maxspawndarkknight} to arg-2
  74. else:
  75. if arg 1 is "sandstormer":
  76. set {maxspawnsandstormer} to arg-2
  77.  
  78. command /setbosslocation [<text>]:
  79. permission: setlocation.bosses
  80. permission message: {@prefix} &8» &7You do not have permission to do that.
  81. trigger:
  82. if arg-1 is not set:
  83. send "{@prefix} &8» &7You used the command wrong type /bosshelp for info."
  84. else:
  85. if arg 1 is "shark":
  86. set {boss.shark.location} to player's position
  87. send "{@prefix} &8» &7The location for the {@shark} &7has been set."
  88. else:
  89. if arg 1 is "devil":
  90. set {boss.devil.location} to player's position
  91. send "{@prefix} &8» &7The location for the {@devil} &7has been set."
  92. else:
  93. if arg 1 is "darkknight":
  94. set {boss.darkknight.location} to player's position
  95. send "{@prefix} &8» &7The location for the {@darkknight} &7has been set."
  96. else:
  97. if arg 1 is "sandstormer":
  98. set {boss.sandstormer.location} to player's position
  99. send "{@prefix} &8» &7The location for the {@sandstormer} &7has been set."
  100.  
  101. command /enableboss [<text>]:
  102. permission: enable.bosses
  103. permission message: {@prefix} &8» &7You do not have permission to do that.
  104. trigger:
  105. if arg-1 is not set:
  106. send "{@prefix} &8» &7You used the command wrong type /bosshelp for info."
  107. else:
  108. if arg 1 is "shark":
  109. send "{@prefix} &8» &7The boss {@shark}&7 is &benabled &7and now spawns every 10 Min."
  110. set {spawn.shark} to true
  111. else:
  112. if arg 1 is "devil":
  113. send "{@prefix} &8» &7The boss {@devil} &7is &benabled &7and now spawns every 10 Min."
  114. set {spawn.devil} to true
  115. else:
  116. if arg 1 is "darkknight":
  117. send "{@prefix} &8» &7The boss {@darkknight}&7 is &benabled &7and now spawns every 10 Min."
  118. set {spawn.darkknight} to true
  119. else:
  120. if arg 1 is "sandstormer":
  121. send "{@prefix} &8» &7The boss {@sandstormer} is &benabled &7and now spawns every 10 Min."
  122. set {spawn.sandstormer} to true
  123.  
  124. command /disableboss [<text>]:
  125. permission: enable.bosses
  126. permission message: {@prefix} &8» &7You do not have permission to do that.
  127. trigger:
  128. if arg-1 is not set:
  129. send "{@prefix} &8» &7You used the command wrong type /bosshelp for info."
  130. else:
  131. if arg 1 is "shark":
  132. send "{@prefix} &8» &7The {@shark}&7 is now &bdisabled."
  133. set {spawn.shark} to false
  134. else:
  135. if arg 1 is "devil":
  136. send "{@prefix} &8» &7The {@devil}&7 is now &bdisabled."
  137. set {spawn.devil} to false
  138. else:
  139. if arg 1 is "darkknight":
  140. send "{@prefix} &8» &7The {@darkknight}&7 is now &bdisabled."
  141. set {spawn.darkknight} to false
  142. else:
  143. if arg 1 is "sandstormer":
  144. send "{@prefix} &8» &7The {@sandstormer}&7 is now &bdisabled."
  145. set {spawn.sandstormer} to false
  146.  
  147. every {@sharktimer} minutes in "world":
  148. if {spawn.shark} is true:
  149. if {sharkspawn} <= {maxspawnshark}:
  150. spawn zombie at {boss.shark.location}
  151. # helmet
  152. set last spawned zombie's helmet to skull of ("builder4live" parsed as offline player)
  153. # chestplate
  154. set {_chestplate} to leather chestplate
  155. dye {_chestplate} blue
  156. set chestplate of last spawned zombie to {_chestplate}
  157. # leggings
  158. set {_leggings} to leather leggings
  159. dye {_leggings} blue
  160. set leggings of last spawned zombie to {_leggings}
  161. # boots
  162. set {_boots} to leather boots
  163. dye {_boots} blue
  164. set boots of last spawned zombie to {_boots}
  165. set tool of last spawned zombie to diamond axe of sharpness 10
  166. set max health of last spawned zombie to 40
  167. set health of last spawned zombie to 40
  168. set displayname of last spawned zombie to "{@shark}"
  169. apply strength 4 to the last spawned zombie for 9999 minutes
  170. add 1 to {sharkspawn}
  171. stop
  172.  
  173. every {@deviltimer} minutes in "world":
  174. if {spawn.devil} is true:
  175. if {devilspawn} <= {maxspawndevil}:
  176. spawn zombie at {boss.devil.location}
  177. # helmet
  178. set last spawned zombie's helmet to skull of ("builder4live" parsed as offline player)
  179. # chestplate
  180. set {_chestplate} to leather chestplate
  181. dye {_chestplate} red
  182. set chestplate of last spawned zombie to {_chestplate}
  183. # leggings
  184. set {_leggings} to leather leggings
  185. dye {_leggings} red
  186. set leggings of last spawned zombie to {_leggings}
  187. # boots
  188. set {_boots} to leather boots
  189. dye {_boots} red
  190. set boots of last spawned zombie to {_boots}
  191. set tool of last spawned zombie to diamond axe of sharpness 10
  192. set max health of last spawned zombie to 40
  193. set health of last spawned zombie to 40
  194. set displayname of last spawned zombie to "{@devil}"
  195. apply strength 4 to the last spawned zombie for 9999 minutes
  196. add 1 to {devilspawn}
  197. stop
  198.  
  199. every {@darkknighttimer} minutes in "world":
  200. if {spawn.darkknight} is true:
  201. if {darkknightspawn} <= {maxspawndarkknight}:
  202. spawn zombie at {boss.darkknight.location}
  203. # helmet
  204. set last spawned zombie's helmet to skull of ("builder4live" parsed as offline player)
  205. # chestplate
  206. set {_chestplate} to leather chestplate
  207. dye {_chestplate} black
  208. set chestplate of last spawned zombie to {_chestplate}
  209. # leggings
  210. set {_leggings} to leather leggings
  211. dye {_leggings} black
  212. set leggings of last spawned zombie to {_leggings}
  213. # boots
  214. set {_boots} to leather boots
  215. dye {_boots} black
  216. set boots of last spawned zombie to {_boots}
  217. set tool of last spawned zombie to diamond axe of sharpness 10
  218. set max health of last spawned zombie to 40
  219. set health of last spawned zombie to 40
  220. set displayname of last spawned zombie to "{@darkknight}"
  221. apply strength 4 to the last spawned zombie for 9999 minutes
  222. add 1 to {darkknightspawn}
  223. stop
  224.  
  225. every {@sandstormertimer} minutes in "world":
  226. if {spawn.sandstormer} is true:
  227. if {sandstormerspawn} <= {maxspawnsandstormer}:
  228. spawn zombie at {boss.sandstormer.location}
  229. # helmet
  230. set last spawned zombie's helmet to skull of ("builder4live" parsed as offline player)
  231. # chestplate
  232. set {_chestplate} to leather chestplate
  233. dye {_chestplate} yellow
  234. set chestplate of last spawned zombie to {_chestplate}
  235. # leggings
  236. set {_leggings} to leather leggings
  237. dye {_leggings} yellow
  238. set leggings of last spawned zombie to {_leggings}
  239. # boots
  240. set {_boots} to leather boots
  241. dye {_boots} yellow
  242. set boots of last spawned zombie to {_boots}
  243. set tool of last spawned zombie to diamond axe of sharpness 10
  244. set max health of last spawned zombie to 40
  245. set health of last spawned zombie to 40
  246. set displayname of last spawned zombie to "{@sandstormer}"
  247. apply strength 4 to the last spawned zombie for 9999 minutes
  248. add 1 to {sandstormerspawn}
  249. stop
  250.  
  251. on death:
  252. if name of victim is "{@shark}":
  253. clear the drops
  254. set {_drop} to glowing {@sharkdrop}
  255. drop {_drop} at victim's location
  256. set {sharkspawn} to 0
  257.  
  258. on death:
  259. if name of victim is "{@devil}":
  260. clear the drops
  261. set {_drop} to glowing {@devildrop}
  262. drop {_drop} at victim's location
  263. set {devilspawn} to 0
  264.  
  265. on death:
  266. if name of victim is "{@darkknight}":
  267. clear the drops
  268. set {_drop} to glowing {@darkknightdrop}
  269. drop {_drop} at victim's location
  270. set {darkknightspawn} to 0
  271.  
  272. on death:
  273. if name of victim is "{@sandstormer":
  274. clear the drops
  275. set {_drop} to glowing {@sandstormerdrop}
  276. drop {_drop} at victim's location
  277. set {sandstormerspawn} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement