Advertisement
Builder4Life

boss skript | need help

May 23rd, 2022
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.73 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 /resetcountboss [<text>]:
  60. permission: reset.bosses
  61. trigger:
  62. if arg-1 is not set:
  63. send "{@prefix} &8» &7You used the command wrong type /bosshelp for info."
  64. else:
  65. if arg 1 is "shark":
  66. send "{@prefix} &8» &7You reseted the spawning of &bshark"
  67. set {maxspawnshark} to 0
  68. else:
  69. if arg 1 is "devil":
  70. send "{@prefix} &8» &7You reseted the spawning of &bdevil"
  71. set {maxspawndevil} to 0
  72. else:
  73. if arg 1 is "darkknight":
  74. send "{@prefix} &8» &7You reseted the spawning of &bdarkknight"
  75. set {maxspawndarkknight} to 0
  76. else:
  77. if arg 1 is "sandstormer":
  78. send "{@prefix} &8» &7You reseted the spawning of &bsandstormer"
  79. set {maxspawnsandstormer} to 0
  80.  
  81. command /setbosslocation [<text>]:
  82. permission: setlocation.bosses
  83. permission message: {@prefix} &8» &7You do not have permission to do that.
  84. trigger:
  85. if arg-1 is not set:
  86. send "{@prefix} &8» &7You used the command wrong type /bosshelp for info."
  87. else:
  88. if arg 1 is "shark":
  89. set {boss.shark.location} to player's position
  90. send "{@prefix} &8» &7The location for the {@shark} &7has been set."
  91. else:
  92. if arg 1 is "devil":
  93. set {boss.devil.location} to player's position
  94. send "{@prefix} &8» &7The location for the {@devil} &7has been set."
  95. else:
  96. if arg 1 is "darkknight":
  97. set {boss.darkknight.location} to player's position
  98. send "{@prefix} &8» &7The location for the {@darkknight} &7has been set."
  99. else:
  100. if arg 1 is "sandstormer":
  101. set {boss.sandstormer.location} to player's position
  102. send "{@prefix} &8» &7The location for the {@sandstormer} &7has been set."
  103.  
  104. command /enableboss [<text>]:
  105. permission: enable.bosses
  106. permission message: {@prefix} &8» &7You do not have permission to do that.
  107. trigger:
  108. if arg-1 is not set:
  109. send "{@prefix} &8» &7You used the command wrong type /bosshelp for info."
  110. else:
  111. if arg 1 is "shark":
  112. send "{@prefix} &8» &7The boss {@shark}&7 is &benabled &7and now spawns every 10 Min."
  113. set {spawn.shark} to true
  114. else:
  115. if arg 1 is "devil":
  116. send "{@prefix} &8» &7The boss {@devil} &7is &benabled &7and now spawns every 10 Min."
  117. set {spawn.devil} to true
  118. else:
  119. if arg 1 is "darkknight":
  120. send "{@prefix} &8» &7The boss {@darkknight}&7 is &benabled &7and now spawns every 10 Min."
  121. set {spawn.darkknight} to true
  122. else:
  123. if arg 1 is "sandstormer":
  124. send "{@prefix} &8» &7The boss {@sandstormer} is &benabled &7and now spawns every 10 Min."
  125. set {spawn.sandstormer} to true
  126.  
  127. command /disableboss [<text>]:
  128. permission: enable.bosses
  129. permission message: {@prefix} &8» &7You do not have permission to do that.
  130. trigger:
  131. if arg-1 is not set:
  132. send "{@prefix} &8» &7You used the command wrong type /bosshelp for info."
  133. else:
  134. if arg 1 is "shark":
  135. send "{@prefix} &8» &7The {@shark}&7 is now &bdisabled."
  136. set {spawn.shark} to false
  137. else:
  138. if arg 1 is "devil":
  139. send "{@prefix} &8» &7The {@devil}&7 is now &bdisabled."
  140. set {spawn.devil} to false
  141. else:
  142. if arg 1 is "darkknight":
  143. send "{@prefix} &8» &7The {@darkknight}&7 is now &bdisabled."
  144. set {spawn.darkknight} to false
  145. else:
  146. if arg 1 is "sandstormer":
  147. send "{@prefix} &8» &7The {@sandstormer}&7 is now &bdisabled."
  148. set {spawn.sandstormer} to false
  149.  
  150. every {@sharktimer} minutes in "world":
  151. if {spawn.shark} is true:
  152. if {sharkspawn} <= {maxspawnshark}:
  153. spawn zombie at {boss.shark.location}
  154. # helmet
  155. set last spawned zombie's helmet to skull of ("builder4live" parsed as offline player)
  156. # chestplate
  157. set {_chestplate} to leather chestplate
  158. dye {_chestplate} blue
  159. set chestplate of last spawned zombie to {_chestplate}
  160. # leggings
  161. set {_leggings} to leather leggings
  162. dye {_leggings} blue
  163. set leggings of last spawned zombie to {_leggings}
  164. # boots
  165. set {_boots} to leather boots
  166. dye {_boots} blue
  167. set boots of last spawned zombie to {_boots}
  168. set tool of last spawned zombie to diamond axe of sharpness 10
  169. set max health of last spawned zombie to 40
  170. set health of last spawned zombie to 40
  171. set displayname of last spawned zombie to "{@shark}"
  172. apply strength 4 to the last spawned zombie for 9999 minutes
  173. add 1 to {sharkspawn}
  174. stop
  175.  
  176. every {@deviltimer} minutes in "world":
  177. if {spawn.devil} is true:
  178. if {devilspawn} <= {maxspawndevil}:
  179. spawn zombie at {boss.devil.location}
  180. # helmet
  181. set last spawned zombie's helmet to skull of ("builder4live" parsed as offline player)
  182. # chestplate
  183. set {_chestplate} to leather chestplate
  184. dye {_chestplate} red
  185. set chestplate of last spawned zombie to {_chestplate}
  186. # leggings
  187. set {_leggings} to leather leggings
  188. dye {_leggings} red
  189. set leggings of last spawned zombie to {_leggings}
  190. # boots
  191. set {_boots} to leather boots
  192. dye {_boots} red
  193. set boots of last spawned zombie to {_boots}
  194. set tool of last spawned zombie to diamond axe of sharpness 10
  195. set max health of last spawned zombie to 40
  196. set health of last spawned zombie to 40
  197. set displayname of last spawned zombie to "{@devil}"
  198. apply strength 4 to the last spawned zombie for 9999 minutes
  199. add 1 to {devilspawn}
  200. stop
  201.  
  202. every {@darkknighttimer} minutes in "world":
  203. if {spawn.darkknight} is true:
  204. if {darkknightspawn} <= {maxspawndarkknight}:
  205. spawn zombie at {boss.darkknight.location}
  206. # helmet
  207. set last spawned zombie's helmet to skull of ("builder4live" parsed as offline player)
  208. # chestplate
  209. set {_chestplate} to leather chestplate
  210. dye {_chestplate} black
  211. set chestplate of last spawned zombie to {_chestplate}
  212. # leggings
  213. set {_leggings} to leather leggings
  214. dye {_leggings} black
  215. set leggings of last spawned zombie to {_leggings}
  216. # boots
  217. set {_boots} to leather boots
  218. dye {_boots} black
  219. set boots of last spawned zombie to {_boots}
  220. set tool of last spawned zombie to diamond axe of sharpness 10
  221. set max health of last spawned zombie to 40
  222. set health of last spawned zombie to 40
  223. set displayname of last spawned zombie to "{@darkknight}"
  224. apply strength 4 to the last spawned zombie for 9999 minutes
  225. add 1 to {darkknightspawn}
  226. stop
  227.  
  228. every {@sandstormertimer} minutes in "world":
  229. if {spawn.sandstormer} is true:
  230. if {sandstormerspawn} <= {maxspawnsandstormer}:
  231. spawn zombie at {boss.sandstormer.location}
  232. # helmet
  233. set last spawned zombie's helmet to skull of ("builder4live" parsed as offline player)
  234. # chestplate
  235. set {_chestplate} to leather chestplate
  236. dye {_chestplate} yellow
  237. set chestplate of last spawned zombie to {_chestplate}
  238. # leggings
  239. set {_leggings} to leather leggings
  240. dye {_leggings} yellow
  241. set leggings of last spawned zombie to {_leggings}
  242. # boots
  243. set {_boots} to leather boots
  244. dye {_boots} yellow
  245. set boots of last spawned zombie to {_boots}
  246. set tool of last spawned zombie to diamond axe of sharpness 10
  247. set max health of last spawned zombie to 40
  248. set health of last spawned zombie to 40
  249. set displayname of last spawned zombie to "{@sandstormer}"
  250. apply strength 4 to the last spawned zombie for 9999 minutes
  251. add 1 to {sandstormerspawn}
  252. stop
  253.  
  254. on death:
  255. if name of victim is "{@shark}":
  256. clear the drops
  257. set {_drop} to glowing {@sharkdrop}
  258. drop {_drop} at victim's location
  259. set {sharkspawn} to 0
  260.  
  261. on death:
  262. if name of victim is "{@devil}":
  263. clear the drops
  264. set {_drop} to glowing {@devildrop}
  265. drop {_drop} at victim's location
  266. set {devilspawn} to 0
  267.  
  268. on death:
  269. if name of victim is "{@darkknight}":
  270. clear the drops
  271. set {_drop} to glowing {@darkknightdrop}
  272. drop {_drop} at victim's location
  273. set {darkknightspawn} to 0
  274.  
  275. on death:
  276. if name of victim is "{@sandstormer":
  277. clear the drops
  278. set {_drop} to glowing {@sandstormerdrop}
  279. drop {_drop} at victim's location
  280. set {sandstormerspawn} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement