Danielzinh

Untitled

Aug 5th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.77 KB | None | 0 0
  1. variables:
  2. {already::%player%::dungeon} = false
  3. on death:
  4. victim is not a player
  5. attacker is a player
  6. if {already::%attacker%::dungeon} is true:
  7. clear drops
  8. set {_x} to display name of victim
  9. replace "-", "Dungeon", "&e" and " " with "" in {_x}
  10. set {_y} to {dungeon::%{_x}%::nivel} * 16
  11. if "%{_x}%" is equal to "%{already::%attacker%::dungeon::name}%":
  12. add 1 to {dungeon::%{_x}%::kills}
  13. if {dungeon::%{_x}%::kills} is more than or equal to {_y}:
  14. broadcast "&f[&aDungeons&f] %attacker% completou a dungeon &a%{_x}%&f de nivel &a%{dungeon::%{_x}%::nivel}%&f."
  15. add "%attacker%" to {dungeon::%{_x}%::completaram::*}
  16. set {dungeon::%{_x}%::rodando} to false
  17. set {already::%attacker%::dungeon} to false
  18. loop all entities in radius 100 around {dungeon::%{_x}%::coords}:
  19. if loop-entity is not a player:
  20. if display name of loop-entity contains "&e%{_x}% - Dungeon":
  21. kill the loop-entity
  22. set {_ee} to a random integer between 0 and {dungeon::%{_x}%::nivel}
  23. if {_ee} is equal to 0:
  24. drop 1 diamond sword of sharpness 5, fire aspect 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  25. if {_ee} is equal to 1:
  26. drop 1 diamond sword of sharpness 4, fire aspect 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  27. if {_ee} is equal to 2:
  28. drop 1 diamond sword of sharpness 5, fire aspect 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  29. if {_ee} is equal to 3:
  30. drop 1 diamond sword of sharpness 6, fire aspect 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  31. if {_ee} is equal to 4:
  32. drop 1 diamond sword of sharpness 7, fire aspect 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  33. if {_ee} is equal to 5:
  34. drop 1 diamond sword of sharpness 8, fire aspect 5, unbreaking 3 at {dungeon::%{_x}%::coords}
  35. if {_ee} is equal to 6:
  36. drop 1 diamond pickaxe of efficiency 6, fortune 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  37. if {_ee} is equal to 7:
  38. drop 1 diamond pickaxe of efficiency 7, fortune 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  39. if {_ee} is equal to 8:
  40. drop 1 diamond pickaxe of efficiency 6, fortune 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  41. if {_ee} is equal to 9:
  42. drop 1 diamond pickaxe of efficiency 6, fortune 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  43. if {_ee} is equal to 10:
  44. drop 1 diamond pickaxe of efficiency 8, fortune 3, unbreaking 3 at {dungeon::%{_x}%::coords}
  45. if {_ee} is equal to 11:
  46. drop 1 diamond pickaxe of efficiency 6, fortune 4, unbreaking 3 at {dungeon::%{_x}%::coords}
  47. if {_ee} is equal to 12:
  48. drop 1 diamond helmet of protection 6, unbreaking 4 at {dungeon::%{_x}%::coords}
  49. wait 10 ticks
  50. drop 1 diamond chestplate of protection 6, unbreaking 4 at {dungeon::%{_x}%::coords}
  51. wait 10 ticks
  52. drop 1 diamond leggings of protection 6, unbreaking 4 at {dungeon::%{_x}%::coords}
  53. wait 10 ticks
  54. drop 1 diamond boots of protection 6, unbreaking 4 at {dungeon::%{_x}%::coords}
  55. if {_ee} is equal to 13:
  56. drop 1 diamond helmet of protection 5, unbreaking 4 at {dungeon::%{_x}%::coords}
  57. wait 10 ticks
  58. drop 1 diamond chestplate of protection 5, unbreaking 4 at {dungeon::%{_x}%::coords}
  59. wait 10 ticks
  60. drop 1 diamond leggings of protection 5, unbreaking 4 at {dungeon::%{_x}%::coords}
  61. wait 10 ticks
  62. drop 1 diamond boots of protection 5, unbreaking 4 at {dungeon::%{_x}%::coords}
  63. if {_ee} is equal to 14:
  64. drop 1 diamond helmet of protection 7, unbreaking 4 at {dungeon::%{_x}%::coords}
  65. wait 10 ticks
  66. drop 1 diamond chestplate of protection 7, unbreaking 4 at {dungeon::%{_x}%::coords}
  67. wait 10 ticks
  68. drop 1 diamond leggings of protection 7, unbreaking 4 at {dungeon::%{_x}%::coords}
  69. wait 10 ticks
  70. drop 1 diamond boots of protection 7, unbreaking 4 at {dungeon::%{_x}%::coords}
  71. if {_ee} is equal to 15:
  72. drop 1 diamond helmet of protection 8, unbreaking 4 at {dungeon::%{_x}%::coords}
  73. wait 10 ticks
  74. drop 1 diamond chestplate of protection 6, unbreaking 4 at {dungeon::%{_x}%::coords}
  75. wait 10 ticks
  76. drop 1 diamond leggings of protection 5, unbreaking 4 at {dungeon::%{_x}%::coords}
  77. wait 10 ticks
  78. drop 1 diamond boots of protection 9, unbreaking 4 at {dungeon::%{_x}%::coords}
  79. if {_ee} is more than or equal to 16:
  80. drop 1 diamond helmet of protection 10, unbreaking 4 at {dungeon::%{_x}%::coords}
  81. wait 10 ticks
  82. drop 1 diamond chestplate of protection 10, unbreaking 4 at {dungeon::%{_x}%::coords}
  83. wait 10 ticks
  84. drop 1 diamond leggings of protection 10, unbreaking 4 at {dungeon::%{_x}%::coords}
  85. wait 10 ticks
  86. drop 1 diamond boots of protection 10, unbreaking 4 at {dungeon::%{_x}%::coords}
  87. on damage:
  88. victim is not a player
  89. if attacker is a player:
  90. set {_x} to display name of victim
  91. replace "- Dungeon", "&e" and " " with "" in {_x}
  92. if "%{_x}%" is not equal to "%{already::%attacker%::dungeon::name}%":
  93. if "%display name of victim%" contains "<none>":
  94. stop
  95. else:
  96. send "&f[&aDungeons&f] &cVocê não pode atacar os mobs da dungeon de outro jogador." to attacker
  97. cancel event
  98. command /create-dungeon [<integer>] [<integer>]:
  99. trigger:
  100. if player is op:
  101. if arg 1 is set:
  102. if arg 2 is set:
  103. if {dungeon::%arg-1%} is not set:
  104. if arg 2 is less than or equal to 20:
  105. set {dungeon::%arg-1%::rodando} to false
  106. set {dungeon::%arg-1%} to arg-1
  107. set {dungeon::%arg-1%::coords} to player's location
  108. set {dungeon::%arg-1%::nivel} to arg-2
  109. set {dungeon::%arg-1%::kills} to 0
  110. set {dungeon::%arg-1%::completaram::*} to 0
  111. make player execute command "hd create %arg-1% &aDungeon &6%arg-1%&a Nivel &6%arg-2%&a."
  112. make player execute command "hd addline %arg-1% &aPara participar &6/dungeon %arg-1%&a para começar."
  113. set {battdungeon::%player%} to arg-1
  114. send "&aBata nos blocos de ferro para setar as 4 posições"
  115. send "&abotão direito para remover."
  116. else:
  117. send "&cO nivel máximo de uma dungeon é 20."
  118. else:
  119. send "&cJá existe uma dungeon com esse ID."
  120. else:
  121. send "&cUse /create-dungeon [ID] [Nivel]"
  122. else:
  123. send "&cUse /create-dungeon [ID] [Nivel]"
  124. else:
  125. send "&cSem permissão."
  126. command /delete-dungeon [<integer>]:
  127. trigger:
  128. if player is op:
  129. if arg 1 is set:
  130. if {dungeon::%arg-1%} is set:
  131. delete {dungeon::%arg-1%::rodando}
  132. delete {dungeon::%arg-1%}
  133. delete {dungeon::%arg-1%::coords}
  134. delete {dungeon::%arg-1%::nivel}
  135. delete {dungeon::%arg-1%::kills}
  136. delete {dungeon::%arg-1%::completaram::*}
  137. make player execute command "hd delete %arg-1%"
  138. delete {dungeon::%arg-1%::loc1}
  139. delete {dungeon::%arg-1%::loc2}
  140. delete {dungeon::%arg-1%::loc3}
  141. delete {dungeon::%arg-1%::loc4}
  142. send "&aDungeon removida com sucesso."
  143. else:
  144. send "&cNão existe uma dungeon com esse ID."
  145. else:
  146. send "&cUse /delete-dungeon (ID)"
  147. else:
  148. send "&cSem permissão."
  149. on inventory click:
  150. if name of player's current inventory contains "&eDungeons Completas/Perdidas" or "&eDungeons Não-iniciadas":
  151. cancel event
  152. else if name of player's current inventory contains "&eDungeons Selecione":
  153. cancel event
  154. clicked slot is 12:
  155. close player's inventory
  156. wait 1 tick
  157. open chest with 6 row named "&eDungeons Completas/Perdidas" to player
  158. wait 1 tick
  159. set {_setslot} to -1
  160. loop {dungeon::*}:
  161. if "%{dungeon::%loop-value%::completaram::*}%" contains "%player%":
  162. add 1 to {_setslot}
  163. set {_x} to x-coords of {dungeon::%loop-value%::coords}
  164. set slot {_setslot} of player's current inventory to book named "&eDungeon &6%loop-value%&e." with lore "&eRodando: &6%{dungeon::%loop-value%::rodando}%&e||&eCoordenadas: &6X: %{_x}%, Y: ???, Z: ???&e.||&eNivel: &6%{dungeon::%loop-value%::nivel}%&e."
  165. if {_setslot} is -1:
  166. set slot 0 of player's current inventory to paper named "&eNão há mais dungeons." with lore "&eVocê já completou todas as dungeons, Espere liberar mais."
  167. clicked slot is 14:
  168. close player's inventory
  169. wait 1 tick
  170. open chest with 6 row named "&eDungeons Não-iniciadas" to player
  171. wait 1 tick
  172. set {_setslot} to -1
  173. loop {dungeon::*}:
  174. if "%{dungeon::%loop-value%::completaram::*}%" contains "%player%":
  175. add 1 to {_ee}
  176. else:
  177. add 1 to {_setslot}
  178. set {_x} to x-coords of {dungeon::%loop-value%::coords}
  179. set slot {_setslot} of player's current inventory to book named "&eDungeon &6%loop-value%&e." with lore "&eRodando: &6%{dungeon::%loop-value%::rodando}%&e||&eCoordenadas: &6X: %{_x}%, Y: ???, Z: ???&e.||&eNivel: &6%{dungeon::%loop-value%::nivel}%&e."
  180. if {_setslot} is -1:
  181. set slot 0 of player's current inventory to paper named "&eNenhuma dungeon completa." with lore "&eVocê ainda não completou nenhuma dungeon."
  182. command /dungeons:
  183. trigger:
  184. open chest with 3 row named "&eDungeons Selecione" to player
  185. wait 1 tick
  186. set slot 12 of player's current inventory to book named "&eDungens Completas/Perdidas." with lore "&eDungeons que você perdeu ou conseguiu completar"
  187. set slot 14 of player's current inventory to book named "&eDungens Não-iniciadas." with lore "&eDungeons que você ainda &cNÃO&e achou/iniciou"
  188. on break:
  189. if {battdungeon::%player%} is set:
  190. cancel event
  191. if {dungeon::%{battdungeon::%player%}%::loc1} is not set:
  192. set {dungeon::%{battdungeon::%player%}%::loc1} to block above target block's location
  193. send "&aPosição 1 setada com sucesso." to player
  194. else if {dungeon::%{battdungeon::%player%}%::loc2} is not set:
  195. set {dungeon::%{battdungeon::%player%}%::loc2} to block above target block's location
  196. send "&aPosição 2 setada com sucesso." to player
  197. else if {dungeon::%{battdungeon::%player%}%::loc3} is not set:
  198. set {dungeon::%{battdungeon::%player%}%::loc3} to block above target block's location
  199. send "&aPosição 3 setada com sucesso." to player
  200. else if {dungeon::%{battdungeon::%player%}%::loc4} is not set:
  201. set {dungeon::%{battdungeon::%player%}%::loc4} to block above target block's location
  202. send "&aPosição 4 setada com sucesso." to player
  203. delete {battdungeon::%player%}
  204. send "&aCriação de dungeon concluida."
  205. else:
  206. delete {battdungeon::%player%}
  207. send "&aCriação de dungeon concluida."
  208. on rightclick:
  209. if {battdungeon::%player%} is set:
  210. if {dungeon::%{battdungeon::%player%}%::loc1} is set:
  211. delete {dungeon::%{battdungeon::%player%}%::loc1}
  212. send "&aPosição 1 deletada com sucesso." to player
  213. else if {dungeon::%{battdungeon::%player%}%::loc2} is set:
  214. delete {dungeon::%{battdungeon::%player%}%::loc2}
  215. send "&aPosição 2 deletada com sucesso." to player
  216. else if {dungeon::%{battdungeon::%player%}%::loc3} is set:
  217. delete {dungeon::%{battdungeon::%player%}%::loc3}
  218. send "&aPosição 3 deletada com sucesso." to player
  219. else if {dungeon::%{battdungeon::%player%}%::loc4} is set:
  220. delete {dungeon::%{battdungeon::%player%}%::loc4}
  221. send "&aPosição 4 deletada com sucesso." to player
  222. delete {battdungeon::%player%}
  223. send "&aCriação de dungeon concluida."
  224. else:
  225. delete {battdungeon::%player%}
  226. send "&aCriação de dungeon concluida."
  227. on quit:
  228. if {already::%player%::dungeon} is true:
  229. set {already::%player%::dungeon} to false
  230. set {dungeon::%{already::%player%::dungeon::name}%::rodando} to false
  231. broadcast "&f[&aDungeons&f] &c%player% &cdeslogou e perdeu uma dungeon de nivel &a%{dungeon::%{already::%player%::dungeon::name}%::nivel}%&c."
  232. delete {already::%player%::dungeon::name}
  233. add "%player%" to {dungeon::%{already::%player%::dungeon::name}%::completaram::*}
  234. set {dada::%player%} to true
  235. loop all entities in radius 100 around {dungeon::%{already::%player%::dungeon::name}%::coords}:
  236. if loop-entity is not a player:
  237. if display name of loop-entity contains "&e%{already::%player%::dungeon::name}% - Dungeon":
  238. kill the loop-entity
  239. delete {already::%player%::dungeon::name}
  240. every 5 seconds:
  241. loop all players:
  242. if {already::%loop-player%::dungeon} is true:
  243. if distance between loop-player and {dungeon::%{already::%loop-player%::dungeon::name}%::coords} is less than or equal to 25:
  244. stop
  245. else:
  246. set {already::%loop-player%::dungeon} to false
  247. set {dungeon::%{already::%loop-player%::dungeon::name}%::rodando} to false
  248. broadcast "&f[&aDungeons&f] &c%loop-player% &cse afastou demais e perdeu uma dungeon de nivel &a%{dungeon::%{already::%loop-player%::dungeon::name}%::nivel}%&c."
  249. add "%loop-player%" to {dungeon::%{already::%loop-player%::dungeon::name}%::completaram::*}
  250. loop all entities in radius 100 around {dungeon::%{already::%loop-player%::dungeon::name}%::coords}:
  251. if loop-entity-2 is not a player:
  252. if display name of loop-entity-2 contains "&e%{already::%loop-player%::dungeon::name}% - Dungeon":
  253. kill the loop-entity-2
  254. delete {already::%loop-player%::dungeon::name}
  255. on join:
  256. if {dada::%player%} is true:
  257. delete {dada::%player%}
  258. send "&f[&aDungeons&f] &cVocê deslogou em uma dungeon e perdeu." to player
  259. command /dungeon [<integer>]:
  260. trigger:
  261. if arg 1 is set:
  262. if {dungeon::%arg-1%} is set:
  263. if distance between player and {dungeon::%arg-1%::coords} is less than or equal to 20:
  264. if "%{dungeon::%arg-1%::completaram::*}%" contains "%player%":
  265. send "&cVocê já foi nessa dungeon."
  266. else:
  267. if {already::%player%::dungeon} is false:
  268. if {dungeon::%arg-1%::rodando} is false:
  269. set {_x} to {dungeon::%arg-1%::nivel} * 28
  270. set {already::%player%::dungeon} to true
  271. set {already::%player%::dungeon::name} to arg-1
  272. set {dungeon::%arg-1%::rodando} to true
  273. send "&aIniciando dungeon..."
  274. set {_y} to {_x} / 4
  275. set {dungeon::%arg-1%::kills} to 0
  276. loop {_y} times:
  277. set {_mob} to a random integer between 1 and 5
  278. if {_mob} is 1:
  279. spawn 1 zombie at {dungeon::%arg-1%::loc1}
  280. set name of last spawned entity to "&e%arg-1% - Dungeon"
  281. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  282. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  283. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  284. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  285. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  286. set the maximum health of the last spawned entity to 20
  287. heal the last spawned entity
  288. spawn 1 zombie at {dungeon::%arg-1%::loc2}
  289. set name of last spawned entity to "&e%arg-1% - Dungeon"
  290. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  291. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  292. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  293. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  294. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  295. set the maximum health of the last spawned entity to 20
  296. heal the last spawned entity
  297. spawn 1 zombie at {dungeon::%arg-1%::loc3}
  298. set name of last spawned entity to "&e%arg-1% - Dungeon"
  299. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  300. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  301. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  302. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  303. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  304. set the maximum health of the last spawned entity to 20
  305. heal the last spawned entity
  306. spawn 1 zombie at {dungeon::%arg-1%::loc4}
  307. set name of last spawned entity to "&e%arg-1% - Dungeon"
  308. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  309. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  310. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  311. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  312. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  313. set the maximum health of the last spawned entity to 20
  314. heal the last spawned entity
  315. else if {_mob} is 2:
  316. spawn 1 skeleton at {dungeon::%arg-1%::loc1}
  317. set name of last spawned entity to "&e%arg-1% - Dungeon"
  318. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  319. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  320. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  321. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  322. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  323. set the maximum health of the last spawned entity to 20
  324. heal the last spawned entity
  325. spawn 1 skeleton at {dungeon::%arg-1%::loc2}
  326. set name of last spawned entity to "&e%arg-1% - Dungeon"
  327. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  328. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  329. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  330. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  331. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  332. set the maximum health of the last spawned entity to 20
  333. heal the last spawned entity
  334. spawn 1 skeleton at {dungeon::%arg-1%::loc3}
  335. set name of last spawned entity to "&e%arg-1% - Dungeon"
  336. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  337. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  338. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  339. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  340. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  341. set the maximum health of the last spawned entity to 20
  342. heal the last spawned entity
  343. spawn 1 skeleton at {dungeon::%arg-1%::loc4}
  344. set name of last spawned entity to "&e%arg-1% - Dungeon"
  345. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  346. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  347. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  348. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  349. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  350. set the maximum health of the last spawned entity to 20
  351. heal the last spawned entity
  352. else if {_mob} is 3:
  353. spawn 1 blaze at {dungeon::%arg-1%::loc1}
  354. set name of last spawned entity to "&e%arg-1% - Dungeon"
  355. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  356. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  357. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  358. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  359. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  360. set the maximum health of the last spawned entity to 20
  361. heal the last spawned entity
  362. spawn 1 blaze at {dungeon::%arg-1%::loc2}
  363. set name of last spawned entity to "&e%arg-1% - Dungeon"
  364. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  365. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  366. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  367. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  368. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  369. set the maximum health of the last spawned entity to 20
  370. heal the last spawned entity
  371. spawn 1 blaze at {dungeon::%arg-1%::loc3}
  372. set name of last spawned entity to "&e%arg-1% - Dungeon"
  373. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  374. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  375. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  376. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  377. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  378. set the maximum health of the last spawned entity to 20
  379. heal the last spawned entity
  380. spawn 1 blaze at {dungeon::%arg-1%::loc4}
  381. set name of last spawned entity to "&e%arg-1% - Dungeon"
  382. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  383. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  384. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  385. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  386. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  387. set the maximum health of the last spawned entity to 20
  388. heal the last spawned entity
  389. else if {_mob} is 4:
  390. spawn 1 spider at {dungeon::%arg-1%::loc1}
  391. set name of last spawned entity to "&e%arg-1% - Dungeon"
  392. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  393. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  394. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  395. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  396. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  397. set the maximum health of the last spawned entity to 20
  398. heal the last spawned entity
  399. spawn 1 spider at {dungeon::%arg-1%::loc2}
  400. set name of last spawned entity to "&e%arg-1% - Dungeon"
  401. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  402. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  403. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  404. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  405. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  406. set the maximum health of the last spawned entity to 20
  407. heal the last spawned entity
  408. spawn 1 spider at {dungeon::%arg-1%::loc3}
  409. set name of last spawned entity to "&e%arg-1% - Dungeon"
  410. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  411. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  412. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  413. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  414. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  415. set the maximum health of the last spawned entity to 20
  416. heal the last spawned entity
  417. spawn 1 spider at {dungeon::%arg-1%::loc4}
  418. set name of last spawned entity to "&e%arg-1% - Dungeon"
  419. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  420. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  421. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  422. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  423. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  424. set the maximum health of the last spawned entity to 20
  425. heal the last spawned entity
  426. else:
  427. spawn 1 spider at {dungeon::%arg-1%::loc1}
  428. set name of last spawned entity to "&e%arg-1% - Dungeon"
  429. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  430. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  431. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  432. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  433. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  434. set the maximum health of the last spawned entity to 20
  435. heal the last spawned entity
  436. spawn 1 spider at {dungeon::%arg-1%::loc2}
  437. set name of last spawned entity to "&e%arg-1% - Dungeon"
  438. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  439. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  440. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  441. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  442. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  443. set the maximum health of the last spawned entity to 20
  444. heal the last spawned entity
  445. spawn 1 spider at {dungeon::%arg-1%::loc3}
  446. set name of last spawned entity to "&e%arg-1% - Dungeon"
  447. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  448. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  449. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  450. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  451. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  452. set the maximum health of the last spawned entity to 20
  453. heal the last spawned entity
  454. spawn 1 spider at {dungeon::%arg-1%::loc4}
  455. set name of last spawned entity to "&e%arg-1% - Dungeon"
  456. equip last spawned entity with diamond helmet of protection 7, unbreaking 7
  457. equip last spawned entity with diamond chestplate of protection 7, unbreaking 7
  458. equip last spawned entity with diamond leggings of protection 7, unbreaking 7
  459. equip last spawned entity with diamond boots of protection 7, unbreaking 7
  460. set tool of last spawned entity to diamond sword of sharpness 7, fire aspect 1000
  461. set the maximum health of the last spawned entity to 20
  462. heal the last spawned entity
  463. wait 1 seconds
  464. else:
  465. send "&cEssa dungeon já está rodando."
  466. else:
  467. send "&cVocê já está em uma dungeon."
  468. else:
  469. send "&cVocê precisa estar perto da dungeon."
  470. else:
  471. send "&cEssa dungeon não existe."
  472. else:
  473. open chest with 3 row named "&eDungeons Selecione" to player
  474. wait 1 tick
  475. set slot 12 of player's current inventory to book named "&eDungens Completas/Perdidas." with lore "&eDungeons que você perdeu ou conseguiu completar"
  476. set slot 14 of player's current inventory to book named "&eDungens Não-iniciadas." with lore "&eDungeons que você ainda &cNÃO&e achou/iniciou"
Advertisement
Add Comment
Please, Sign In to add comment