akon1248

Untitled

Aug 10th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.76 KB | None | 0 0
  1. options:
  2. enableinfernalzombie: true
  3. enableinfernalzombielootitem: true
  4. enableinfernalskeleton: true
  5. enableinfernalcreeper: true
  6. enableinfernalspider: true
  7. enableinfernalblaze: true
  8. enableinfernalenderman: true
  9. enableinfernalenderdragon: true
  10. variables:
  11. {nextinfernaldragonchance} = 30
  12. every tick:
  13. loop all entities:
  14. if {infernal.%UUID of loop-entity%} is 1:
  15. health of loop-entity > 0
  16. if loop-entity is not a creeper:
  17. {bossbar.%UUID of loop-entity%} is not set
  18. set {bossbar.%UUID of loop-entity%} to new bossbar
  19. set name of bar {bossbar.%UUID of loop-entity%} to name of loop-entity
  20. set color of bar {bossbar.%UUID of loop-entity%} to RED
  21. if loop-entity is a creeper:
  22. {bossbar.%{infernalcreeperid.%UUID of loop-entity%}%} is not set
  23. set {bossbar.%{infernalcreeperid.%UUID of loop-entity%}%} to new bossbar
  24. set name of bar {bossbar.%{infernalcreeperid.%UUID of loop-entity%}%} to name of loop-entity
  25. set color of bar {bossbar.%{infernalcreeperid.%UUID of loop-entity%}%} to RED
  26. if loop-entity is a enderman:
  27. {infernalenderman::%UUID of loop-entity%} is not set
  28. set {infernalenderman::%UUID of loop-entity%} to loop-entity
  29. every tick:
  30. loop all entities:
  31. if {infernal.%UUID of loop-entity%} is 1:
  32. execute console command "execute %UUID of loop-entity% ~ ~ ~ particle reddust ~ ~1 ~ 0.5 0.5 0.5 1 2 force"
  33. if loop-entity is not a creeper:
  34. set progress of bar {bossbar.%UUID of loop-entity%} to health of loop-entity/max health of loop-entity
  35. loop all players:
  36. if distance between loop-entity-1 and loop-player-1 < 31:
  37. add loop-player-1 to bar {bossbar.%UUID of loop-entity-1%}
  38. if distance between loop-entity-1 and loop-player-1 > 30:
  39. remove loop-player-1 from bar {bossbar.%UUID of loop-entity-1%}
  40. if loop-entity is a creeper:
  41. set progress of bar {bossbar.%{infernalcreeperid.%UUID of loop-entity%}%} to health of loop-entity/max health of loop-entity
  42. loop all players:
  43. if distance between loop-entity-1 and loop-player-1 < 31:
  44. add loop-player-1 to bar {bossbar.%{infernalcreeperid.%UUID of loop-entity-1%}%}
  45. if distance between loop-entity-1 and loop-player-1 > 30:
  46. remove loop-player-1 from bar {bossbar.%{infernalcreeperid.%UUID of loop-entity-1%}%}
  47. if "%world of loop-entity-1%" is not "%loop-player-1's world%":
  48. remove loop-player-1 from bar {bossbar.%{infernalcreeperid.%UUID of loop-entity-1%}%}
  49. on spawn:
  50. if event-entity is a zombie:
  51. {@enableinfernalzombie} is true
  52. chance of 10%:
  53. wait 1 tick
  54. {infernal.%UUID of event-entity%} is not set
  55. {summonedzombie.%UUID of event-entity%} is not set
  56. {zombieinventory.%UUID of event-entity%::*} is not set
  57. set {infernal.%UUID of event-entity%} to 1
  58. strike fake fake lightning at event-entity
  59. add "{CustomName:""Infernal Zombie"",PersistenceRequired:1b,Health:50f,Attributes:[{Name:""generic.maxHealth"",Base:50d},{Name:""generic.movementSpeed"",Base:0.3d},{Name:""generic.attackDamage"",Base:10d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d},{Name:""zombie.spawnReinforcements"",Base:1d}]}" to nbt of event-entity
  60. if event-entity is a skeleton:
  61. {@enableinfernalskeleton} is true
  62. chance of 10%:
  63. wait 1 tick
  64. {infernal.%UUID of event-entity%} is not set
  65. set {infernal.%UUID of event-entity%} to 1
  66. strike fake fake lightning at event-entity
  67. add "{CustomName:""Infernal Skeleton"",PersistenceRequired:1b,Health:50f,Attributes:[{Name:""generic.maxHealth"",Base:50d},{Name:""generic.movementSpeed"",Base:0.3d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d}],HandItems:[{tag:{ench:[{id:49s,lvl:5s}]},id:""minecraft:bow"",Count:1b,Damage:0s},{}],HandDropChances:[-0.1f,0f]}" to nbt of event-entity
  68. if event-entity is a enderman:
  69. {@enableinfernalenderman} is true
  70. chance of 10%:
  71. wait 1 tick
  72. {infernal.%UUID of event-entity%} is not set
  73. set {infernal.%UUID of event-entity%} to 1
  74. strike fake fake lightning at event-entity
  75. add "{CustomName:""Infernal Enderman"",PersistenceRequired:1b,Health:100f,Attributes:[{Name:""generic.maxHealth"",Base:100d},{Name:""generic.movementSpeed"",Base:0.4d},{Name:""generic.attackDamage"",Base:15d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d}]}" to nbt of event-entity
  76. if event-entity is a creeper:
  77. {@enableinfernalcreeper} is true
  78. chance of 10%:
  79. wait 1 tick
  80. {infernal.%UUID of event-entity%} is not set
  81. set {infernal.%UUID of event-entity%} to 1
  82. set {infernalcreeperid.%UUID of event-entity%} to "%UUID of event-entity%"
  83. strike fake fake lightning at event-entity
  84. add "{CustomName:""Infernal Creeper"",PersistenceRequired:1b,Health:50f,Attributes:[{Name:""generic.maxHealth"",Base:50d},{Name:""generic.movementSpeed"",Base:0.3d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d}],powered:1b,ExplosionRadius:5b,Fuse:30s}" to nbt of event-entity
  85. if event-entity is a spider:
  86. {@enableinfernalspider} is true
  87. chance of 10%:
  88. wait 1 tick
  89. {infernal.%UUID of event-entity%} is not set
  90. set {infernal.%UUID of event-entity%} to 1
  91. strike fake fake lightning at event-entity
  92. add "{CustomName:""Infernal Spider"",PersistenceRequired:1b,Health:50f,Attributes:[{Name:""generic.maxHealth"",Base:50d},{Name:""generic.movementSpeed"",Base:0.4d},{Name:""generic.attackDamage"",Base:5d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d}]}" to nbt of event-entity
  93. if event-entity is a blaze:
  94. {@enableinfernalblaze} is true
  95. chance of 10%:
  96. wait 1 tick
  97. {infernal.%UUID of event-entity%} is not set
  98. set {infernal.%UUID of event-entity%} to 1
  99. strike fake fake lightning at event-entity
  100. add "{CustomName:""Infernal Blaze"",PersistenceRequired:1b,Health:80f,Attributes:[{Name:""generic.maxHealth"",Base:80d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:100d}]}" to nbt of event-entity
  101. if event-entity is a ender dragon:
  102. {@enableinfernalenderdragon} is true
  103. set {_spawnchance} to random integer between 1 and 100
  104. if {_spawnchance} is between 1 and {nextinfernaldragonchance}:
  105. wait 1 tick
  106. {infernal.%UUID of event-entity%} is not set
  107. set {infernaldragon::%UUID of event-entity%} to 1
  108. strike lightning effect at event-entity
  109. add "{CustomName:""&5&lInfernal Ender Dragon"",Health:2500f,Attributes:[{Name:""generic.maxHealth"",Base:2500d}]}" to nbt of event-entity
  110. set {infernaldragonattackcooltime.%UUID of event-entity%} to 0
  111. broadcast "&5&lInfernal Ender Dragon&e was spawned!"
  112. else:
  113. add "{CustomName:""Ender Dragon""}" to nbt of event-entity
  114. set {nextinfernaldragonchance} to 30
  115. on death of player:
  116. loop {infernaldragon::*}:
  117. if {dragontarget.%loop-index%} is victim:
  118. delete {dragontarget.%loop-index%}
  119. on damage:
  120. attacker is an ender dragon
  121. {infernaldragon::%UUID of attacker%} is 1
  122. damage was caused by projectile
  123. projectile is a small fireball
  124. set damage to 10
  125. every tick:
  126. loop {infernaldragon::*}:
  127. if getEntityFromUUID(loop-index) is set:
  128. set {_infernaldragon} to getEntityFromUUID(loop-index)
  129. loop all players:
  130. if "%loop-player's world%" is "%{_infernaldragon}'s world%":
  131. set {_playerinend} to loop-player
  132. stop loop
  133. if tag "DragonPhase" of nbt of {_infernaldragon} is 9:
  134. strike fake fake lightning at {_infernaldragon}
  135. if tag "DragonPhase" of nbt of {_infernaldragon} is 2:
  136. add "{DragonPhase:0}" to nbt of {_infernaldragon}
  137. if tag "DragonPhase" of nbt of {_infernaldragon} is 3:
  138. add "{DragonPhase:0}" to nbt of {_infernaldragon}
  139. else if tag "DragonPhase" of nbt of {_infernaldragon} is not 9:
  140. if getEntityFromUUID(UUID of {dragontarget.%loop-index%}) is not set:
  141. delete {dragontarget.%loop-index%}
  142. if distance between {_infernaldragon} and {dragontarget.%loop-index%} > 200:
  143. delete {dragontarget.%loop-index%}
  144. if {dragontarget.%loop-index%}'s gamemode is creative or spectator:
  145. delete {dragontarget.%loop-index%}
  146. if "%{_infernaldragon}'s world%" is not "%{dragontarget.%loop-index%}'s world%":
  147. delete {dragontarget.%loop-index%}
  148. if {dragontarget.%loop-index%} is not set:
  149. set {dragontarget.%loop-index%} to dragonTargetSearch(location of {_infernaldragon})
  150. {_playerinend} is set
  151. {dragontarget.%loop-index%} is set
  152. add 1 to {infernaldragonattackcooltime.%loop-index%}
  153. if {infernaldragonattackcooltime.%loop-index%} is 60:
  154. set {_rand} to random integer between 1 and 3
  155. if {_rand} is 1:
  156. fireballRush({_infernaldragon}, location of {dragontarget.%loop-index%}, 5, 30, 3)
  157. if {_rand} is 2:
  158. set {_idleast} to random number between -2147483648 and 2147483647
  159. set {_idmost} to random number between -32147483648 and 2147483647
  160. set {homingbreath::%{_idleast}%-%{_idmost}%} to location of {_infernaldragon}
  161. set {homingbreathowneruuid::%{_idleast}%-%{_idmost}%} to UUID of {_infernaldragon}
  162. set {homingbreathage::%{_idleast}%-%{_idmost}%} to 0
  163. execute console command "execute %UUID of {_infernaldragon}% ~ ~ ~ playsound minecraft:entity.enderdragon.shoot master @a ~ ~ ~ 5"
  164. if {_rand} is 3:
  165. set {_shootloc} to location of {_infernaldragon}
  166. set yaw of {_shootloc} to yawAtan2({_infernaldragon}, {dragontarget.%loop-index%})
  167. set pitch of {_shootloc} to pitchAtan2({_infernaldragon}, {dragontarget.%loop-index%})
  168. shoot a fireball from {_shootloc} with speed 0.5
  169. set shooter of shot projectile to {_infernaldragon}
  170. add "{ExplosionPower:5}" to nbt of shot projectile
  171. execute console command "execute %UUID of {_infernaldragon}% ~ ~ ~ playsound minecraft:entity.enderdragon.shoot master @a ~ ~ ~ 5"
  172. set {homingdragonfireball::%UUID of shot projectile%} to 1
  173. set {homingdragonfireballowneruuid.%UUID of shot projectile%} to UUID of {_infernaldragon}
  174. if {infernaldragonattackcooltime.%loop-index%} >= 61:
  175. set {infernaldragonattackcooltime.%loop-index%} to 0
  176. if health of getLivingEntityFromUUID(loop-index) is 0:
  177. wait 180 tick
  178. delete {infernaldragon::%loop-index%}
  179. delete {infernaldragonattackcooltime.%loop-index%}
  180. delete {dragontarget.%loop-index%}
  181. delete {dragonprojectile.%loop-index%::*}
  182. loop {homingbreath::*}:
  183. if getEntityFromUUID({homingbreathowneruuid::%loop-index%}) is set:
  184. set {_owner} to getEntityFromUUID({homingbreathowneruuid::%loop-index%})
  185. add 1 to {homingbreathage::%loop-index%}
  186. execute console command "execute %UUID of {_owner}% ~ ~ ~ particle dragonbreath %x-coordinate of loop-value% %y-coordinate of loop-value% %z-coordinate of loop-value% 0.3 0.3 0.3 0.005 30 force"
  187. set yaw of {homingbreath::%loop-index%} to yawAtan2(loop-value, {dragontarget.%{homingbreathowneruuid::%loop-index%}%})
  188. set pitch of {homingbreath::%loop-index%} to pitchAtan2(loop-value, {dragontarget.%{homingbreathowneruuid::%loop-index%}%})
  189. set {homingbreath::%loop-index%} to location 0.75 meter forwards loop-value
  190. loop entities in radius 0.5 around loop-value:
  191. loop-entity is {dragontarget.%{homingbreathowneruuid::%loop-index%}%}
  192. create safe explosion with power 3 at loop-value-1
  193. loop entities in radius 2 around loop-value-1:
  194. execute console command "execute %UUID of loop-entity-2% ~ ~ ~ effect @s 20 30 2"
  195. execute console command "execute %UUID of loop-entity-2% ~ ~ ~ effect @s 9 10 0"
  196. execute console command "execute %UUID of loop-entity-2% ~ ~ ~ effect @s 15 10 0"
  197. delete {homingbreath::%loop-index%}
  198. delete {homingbreathowneruuid::%loop-index%}
  199. delete {homingbreathage::%loop-index%}
  200. if {homingbreathage::%loop-index%} >= 2400:
  201. create safe explosion with power 3 at loop-value
  202. loop entities in radius 2 around loop-value:
  203. execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 20 30 2"
  204. execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 9 10 0"
  205. execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 15 10 0"
  206. delete {homingbreath::%loop-index%}
  207. delete {homingbreathowneruuid::%loop-index%}
  208. delete {homingbreathage::%loop-index%}
  209. else if getEntityFromUUID({homingbreathowneruuid::%loop-index%}) is not set:
  210. delete {homingbreath::%loop-index%}
  211. delete {homingbreathowneruuid::%loop-index%}
  212. delete {homingbreathage::%loop-index%}
  213. loop {homingdragonfireball::*}:
  214. if getEntityFromUUID(loop-index) is set:
  215. set {_homingdragonfireball} to getEntityFromUUID(loop-index)
  216. execute console command "execute %UUID of {_homingdragonfireball}% ~ ~ ~ particle flame ~ ~0.5 ~ 0.5 0.5 0.5 0.1 100 force"
  217. set shooter of {_homingdragonfireball} to getEntityFromUUID({homingdragonfireballowneruuid.%loop-index%})
  218. if {dragontarget.%{homingdragonfireballowneruuid.%loop-index%}%} is set:
  219. add "{power:[0.0d,0.0d,0.0d]}" to nbt of {_homingdragonfireball}
  220. push {_homingdragonfireball} direction from {_homingdragonfireball} to {dragontarget.%{homingdragonfireballowneruuid.%loop-index%}%} at speed 0.2
  221. else if getEntityFromUUID(loop-index) is not set:
  222. delete {homingdragonfireball::%loop-index%}
  223. delete {homingdragonfireballowneruuid.%loop-index%}
  224. on projectile hit:
  225. projectile is a small fireball
  226. {infernaldragon::%UUID of shooter%} is 1
  227. create safe explosion with power 1 at projectile
  228. function fireballRush(shooter: entity, loc: location, accuracy: number, num1: integer, num2: integer):
  229. loop {_num1} times:
  230. loop {_num2} times:
  231. set {_shootloc} to location of {_shooter}
  232. set {_targetloc} to location random number between 0-{_accuracy} and {_accuracy} meter east location random number between 0-{_accuracy} and {_accuracy} meter south location random number between 0-{_accuracy} and {_accuracy} meter above {_loc}
  233. set yaw of {_shootloc} to yawAtan2({_shootloc}, {_targetloc})
  234. set pitch of {_shootloc} to pitchAtan2({_shootloc}, {_targetloc})
  235. shoot a small fireball from {_shootloc} with speed 2
  236. execute console command "execute %UUID of {_shooter}% ~ ~ ~ playsound minecraft:entity.enderdragon.shoot master @a ~ ~ ~ 5"
  237. set shooter of shot projectile to {_shooter}
  238. wait 1 tick
  239. function pitchAtan2(loc1: location, loc2: location) :: number:
  240. set {_dx} to x-coordinate of {_loc2} - x-coordinate of {_loc1}
  241. set {_dy} to y-coordinate of {_loc2} - y-coordinate of {_loc1}
  242. set {_dz} to z-coordinate of {_loc2} - z-coordinate of {_loc1}
  243. set {_pitch} to 0-atan2(sqrt({_dx}^2+{_dz}^2), {_dy})
  244. return {_pitch}
  245. function yawAtan2(loc1: location, loc2: location) :: number:
  246. set {_dx} to x-coordinate of {_loc2} - x-coordinate of {_loc1}
  247. set {_dz} to z-coordinate of {_loc2} - z-coordinate of {_loc1}
  248. set {_yaw} to atan2({_dx}, {_dz})-90
  249. return {_yaw}
  250. function getEntityFromUUID(uuid: text) :: entity:
  251. loop all entities:
  252. if UUID of loop-entity is "%{_uuid}%":
  253. return loop-entity
  254. stop loop
  255. function getLivingEntityFromUUID(uuid: text) :: living entity:
  256. loop all entities:
  257. if UUID of loop-entity is "%{_uuid}%":
  258. return loop-entity
  259. stop loop
  260. function dragonTargetSearch(loc: location) :: entity:
  261. set {_shortdistance} to 201
  262. loop all entities in radius 200 around {_loc}:
  263. loop-entity is not ender dragon
  264. loop-entity is not armor stand
  265. loop-entity is a living entity
  266. if loop-entity is a player:
  267. loop-entity's gamemode is survival or adventure
  268. if {_target} is not set:
  269. set {_target} to loop-entity
  270. set {_shortdistance} to distance between {_loc} and loop-entity
  271. else if {_target} is set:
  272. if {_target} is not a player:
  273. set {_target} to loop-entity
  274. set {_shortdistance} to distance between {_loc} and loop-entity
  275. else if {_target} is a player:
  276. distance between {_loc} and loop-entity < {_shortdistance}
  277. set {_target} to loop-entity
  278. set {_shortdistance} to distance between {_loc} and loop-entity
  279. if loop-entity is not a player:
  280. if {_target} is not set:
  281. set {_target} to loop-entity
  282. set {_shortdistance} to distance between {_loc} and loop-entity
  283. else if {_target} is set:
  284. {_target} is not a player
  285. distance between {_loc} and loop-entity < {_shortdistance}
  286. set {_target} to loop-entity
  287. set {_shortdistance} to distance between {_loc} and loop-entity
  288. return {_target}
  289. on death:
  290. if {infernal.%UUID of victim%} is 1:
  291. if victim is not a creeper:
  292. wait 10 tick
  293. remove all players from bar {bossbar.%UUID of victim%}
  294. delete {bossbar.%UUID of victim%}
  295. if victim is a creeper:
  296. wait 10 tick
  297. remove all players from bar {bossbar.%{infernalcreeperid.%UUID of victim%}%}
  298. delete {bossbar.%{infernalcreeperid.%UUID of victim%}%}
  299. on damage:
  300. attacker is a zombie
  301. {infernal.%UUID of attacker%} is 1
  302. execute console command "execute %UUID of attacker% ~ ~ ~ effect %UUID of victim% 9 10 0"
  303. execute console command "execute %UUID of attacker% ~ ~ ~ effect %UUID of victim% 17 10 127"
  304. every tick:
  305. loop all zombies:
  306. {infernal.%UUID of loop-entity%} is 1
  307. ignite loop-entity for 0 tick
  308. on death of player:
  309. attacker is a zombie
  310. {infernal.%UUID of attacker%} is 1
  311. spawn an adult zombie at victim
  312. add "{PersistenceRequired:1b,IsBaby:0b,ArmorItems:[{},{},{},{id:""minecraft:skull"",tag:{SkullOwner:%victim%},Count:1b,Damage:3s}]}" to nbt of last spawned zombie
  313. set tool of last spawned zombie to air
  314. set chestplate of last spawned zombie to air
  315. set leggings of last spawned zombie to air
  316. set boots of last spawned zombie to air
  317. set name of last spawned zombie to "%player%"
  318. {@enableinfernalzombielootitem} is true
  319. set tool of last spawned zombie to victim's tool
  320. set offhand tool of last spawned zombie to victim's offhand tool
  321. set chestplate of last spawned zombie to chestplate of victim
  322. set leggings of last spawned zombie to leggings of victim
  323. set boots of last spawned zombie to boots of victim
  324. set {_slot} to 0
  325. loop 41 times:
  326. set {zombieinventory.%UUID of last spawned zombie%::%{_slot}%} to slot {_slot} of victim's inventory
  327. add 1 to {_slot}
  328. wait 1 tick
  329. clear victim's inventory
  330. on death of zombie:
  331. if {zombieinventory.%UUID of victim%::*} is set:
  332. clear drops
  333. loop {zombieinventory.%UUID of victim%::*}:
  334. drop {zombieinventory.%UUID of victim%::%loop-index%} at victim
  335. delete {zombieinventory.%UUID of victim%::%loop-index%}
  336. on shoot:
  337. shooter is a skeleton
  338. projectile is an arrow
  339. {infernal.%UUID of shooter%} is 1
  340. add "{crit:1b,Potion:""minecraft:long_poison""}" to nbt of projectile
  341. push projectile in direction of shooter at speed 4
  342. set {_shootloc} to location 1.5 meter right location 1 meter forwards location 1.5 meter above location of shooter
  343. add 10 to yaw of {_shootloc}
  344. remove 10 from pitch of {_shootloc}
  345. shoot an arrow from {_shootloc} at speed 2
  346. set shooter of shot projectile to shooter
  347. add "{crit:1b,Potion:""minecraft:long_poison""}" to nbt of shot projectile
  348. set {_shootloc} to location 1.5 meter left location 1 meter forwards location 1.5 meter above location of shooter
  349. remove 10 from yaw of {_shootloc}
  350. remove 10 from pitch of {_shootloc}
  351. shoot an arrow from {_shootloc} at speed 2
  352. set shooter of shot projectile to shooter
  353. add "{crit:1b,Potion:""minecraft:long_poison""}" to nbt of shot projectile
  354. every tick:
  355. loop all living entities:
  356. if loop-entity is a enderman:
  357. if {infernal.%UUID of loop-entity%} is 1:
  358. if target of loop-entity is not set:
  359. set {_shortdistance} to 51
  360. loop all players in radius 50 around loop-entity:
  361. loop-player's gamemode is survival or adventure
  362. if distance between loop-entity-1 and loop-player-1 < {_shortdistance}:
  363. set target of loop-entity-1 to loop-player-1
  364. set {_shortdistance} to distance between loop-entity-1 and loop-player-1
  365. if {teleport.cooltime.%UUID of loop-entity%} is not set:
  366. if target of loop-entity is set:
  367. health of target of loop-entity > 0
  368. set {_teleportloc} to location random number between -2 and 2 meter east location random number between -2 and 2 meter north location of target of loop-entity
  369. block at {_teleportloc} is air
  370. block at location 1 meter above {_teleportloc} is air
  371. block at location 2 meter above {_teleportloc} is air
  372. teleport loop-entity to {_teleportloc}
  373. play sound "entity.endermen.teleport" to all players at location of loop-entity with volume 1 pitch 1
  374. set {teleport.cooltime.%UUID of loop-entity%} to random integer between 40 and 100
  375. if {teleport.cooltime.%UUID of loop-entity%} >= 1:
  376. remove 1 from {teleport.cooltime.%UUID of loop-entity%}
  377. if {teleport.cooltime.%UUID of loop-entity%} is 0:
  378. delete {teleport.cooltime.%UUID of loop-entity%}
  379. loop {infernalenderman::*}:
  380. if {having.%loop-index%} is 1:
  381. make {armstand.%loop-index%} ride {armstand2.%loop-index%}
  382. teleport {armstand2.%loop-index%} to location 1 meter above location 0.7 meter horizontally forwards location of loop-value
  383. if target of loop-value is set:
  384. set {_target} to target of loop-value
  385. if vehicle of {_target} is not set:
  386. make {_target} ride {armstand.%loop-index%}
  387. if vehicle of {_target} is set:
  388. if vehicle of {_target} is not {armstand.%loop-index%}:
  389. make {_target} ride {armstand.%loop-index%}
  390. if {havingtime.%loop-index%} >= 1:
  391. remove 1 from {havingtime.%loop-index%}
  392. if {havingtime.%loop-index%} is 0:
  393. kill {armstand.%loop-index%}
  394. kill {armstand2.%loop-index%}
  395. delete {havingtime.%loop-index%}
  396. delete {armstand.%loop-index%}
  397. delete {armstand2.%loop-index%}
  398. add "{NoAI:0b,carried:0s,carriedData:0s}" to nbt of loop-value
  399. wait 1 tick
  400. execute console command "execute %UUID of loop-value% ~ ~ ~ playsound entity.endermen.teleport master @a ~ ~ ~ 2"
  401. execute console command "execute %UUID of loop-value% ~ ~ ~ playsound entity.irongolem.attack master @a ~ ~ ~ 2"
  402. make loop-value damage {_target} by 30
  403. push {_target} upwards at speed 2
  404. push {_target} in horizontal direction of loop-value at speed 0.5
  405. delete {having.%loop-index%}
  406. loop 40 times:
  407. execute console command "execute %UUID of {_target}% ~ ~ ~ particle portal ~ ~ ~ 0.5 0.5 0.5 0.1 20"
  408. wait 1 tick
  409. on enderman pickup:
  410. if {infernal.%UUID of event-entity%} is 1:
  411. cancel event
  412. on damage:
  413. attacker is a enderman
  414. {infernal.%UUID of attacker%} is 1
  415. {having.%UUID of attacker%} is not set
  416. chance of 50%:
  417. set {having.%UUID of attacker%} to 1
  418. set {havingtime.%UUID of attacker%} to 10
  419. add "{NoAI:1b,carried:209s,carriedData:0s}" to nbt of attacker
  420. spawn a armor stand at location 1 meter above location 0.7 meter horizontally forwards location of attacker
  421. add "{NoGravity:1b,Invisible:1b,Marker:1b,Small:1b,NoBasePlate:1b,Health:0.001f,Attributes:[{Name:""generic.maxHealth"",Base:0.01f}]}" to nbt of last spawned armor stand
  422. set {armstand.%UUID of attacker%} to last spawned armor stand
  423. spawn a armor stand at location 1 meter above location 0.7 meter horizontally forwards location of attacker
  424. add "{NoGravity:1b,Invisible:1b,Marker:1b,Small:1b,NoBasePlate:1b,Health:0.001f,Attributes:[{Name:""generic.maxHealth"",Base:0.01f}]}" to nbt of last spawned armor stand
  425. set {armstand2.%UUID of attacker%} to last spawned armor stand
  426. on death of enderman:
  427. if {infernal.%UUID of victim%} is 1:
  428. kill {armstand.%UUID of victim%}
  429. kill {armstand2.%UUID of victim%}
  430. delete {having.%UUID of victim%}
  431. delete {havingtime.%UUID of victim%}
  432. delete {armstand.%UUID of victim%}
  433. delete {armstand2.%UUID of victim%}
  434. delete {infernalenderman::%UUID of victim%}
  435. delete {teleport.cooltime.%UUID of victim%}
  436. on explosion prime:
  437. event-entity is a creeper
  438. {infernal.%UUID of event-entity%} is 1
  439. set {_explosionradius} to tag "ExplosionRadius" of nbt of event-entity
  440. set {_fuse} to tag "Fuse" of nbt of event-entity
  441. set {_attributes} to tag "Attributes" of nbt of event-entity
  442. set {_health} to health of event-entity
  443. set {_maxhealth} to max health of event-entity
  444. set {_activeeffects} to tag "ActiveEffects" of nbt of event-entity
  445. set {_rotation} to tag "Rotation" of nbt of event-entity
  446. set {_name} to name of event-entity
  447. set {_target} to target of event-entity
  448. loop all living entities:
  449. loop-entity is not a player
  450. if target of loop-entity is event-entity:
  451. set {_targetingentities::%UUID of loop-entity%} to loop-entity
  452. delete {infernal.%UUID of event-entity%}
  453. spawn a creeper at event-entity
  454. set {infernalcreeperid.%UUID of last spawned creeper%} to "%{infernalcreeperid.%UUID of event-entity%}%"
  455. delete {infernalcreeperid.%UUID of event-entity%}
  456. loop {_targetingentities::*}:
  457. set target of loop-value to last spawned creeper
  458. set name of last spawned creeper to {_name}
  459. set max health of last spawned entity to {_maxhealth}
  460. set health of last spawned creeper to {_health}
  461. if {_target} is a player:
  462. {_target}'s gamemode is survival or adventure
  463. set target of last spawned creeper to {_target}
  464. else if {_target} is not a player:
  465. {_target} is alive
  466. set target of last spawned creeper to {_target}
  467. add "{Attributes:%{_attributes}%,Fuse:%{_fuse}%s,ExplosionRadius:%{_explosionradius}%b,Rotation:%{_rotation}%}" to nbt of last spawned creeper
  468. if {_activeeffects} is set:
  469. add "{ActiveEffects:%{_activeeffects}%}" to nbt of last spawned creeper
  470. set {infernal.%UUID of last spawned creeper%} to 1
  471. wait 1 tick
  472. add "{powered:1b}" to nbt of last spawned creeper
  473. on damage of creeper:
  474. {infernal.%UUID of victim%} is 1
  475. if damage was caused by entity explosion:
  476. cancel event
  477. if damage was caused by block explosion:
  478. cancel event
  479. if damage was caused by lightning:
  480. cancel event
  481. on damage:
  482. attacker is a spider
  483. {infernal.%UUID of attacker%} is 1
  484. damage was caused by attack
  485. apply poison 2 to victim for 5 second
  486. loop random integer between 1 and 3 times:
  487. set {_setloc} to location random integer between -1.5 and 1.5 meter east location random integer between -1.5 and 1.5 meter north location of victim
  488. if block at {_setloc} is air:
  489. set block at {_setloc} to cobweb
  490. every tick:
  491. loop all spiders:
  492. if {infernal.%UUID of loop-entity%} is 1:
  493. add "{FallDistance:0}" to nbt of loop-entity
  494. if {spiderjump.cooltime.%UUID of loop-entity%} is not set:
  495. if target of loop-entity is set:
  496. push loop-entity direction from loop-entity to location 1 meter forwards location of loop-entity at speed 1.5
  497. set {spiderjump.cooltime.%UUID of loop-entity%} to random integer between 40 and 140
  498. loop 20 times:
  499. loop entities in radius 1 around loop-entity:
  500. loop-entity-2 is target of loop-entity-1
  501. make loop-entity-1 damage loop-entity-2 by 10
  502. if {spiderjump.cooltime.%UUID of loop-entity%} >= 1:
  503. remove 1 from {spiderjump.cooltime.%UUID of loop-entity%}
  504. if {spiderjump.cooltime.%UUID of loop-entity%} is 0:
  505. delete {spiderjump.cooltime.%UUID of loop-entity%}
  506. on death of spider:
  507. {infernal.%UUID of victim%} is 1
  508. delete {spiderjump.cooltime.%UUID of victim%}
  509. on shoot:
  510. shooter is a blaze
  511. projectile is a small fireball
  512. {infernal.%UUID of shooter%} is 1
  513. set {_power} to tag "power" of nbt of projectile
  514. cancel event
  515. shoot a fireball from shooter at speed 1
  516. add "{direction:[0.0d,0.0d,0.0d],power:%{_power}%,ExplosionPower:3}" to nbt of shot projectile
  517. on damage of blaze:
  518. {infernal.%UUID of victim%} is 1
  519. if damage was caused by entity explosion:
  520. cancel event
  521. if damage was caused by block explosion:
  522. cancel event
  523. if damage was caused by projectile:
  524. projectile is a fireball:
  525. cancel event
  526. on damage:
  527. attacker is a blaze
  528. {infernal.%UUID of attacker%} is 1
  529. ignite victim for 10 second
  530. command /summoninfernalmob [<text>]:
  531. permission: infernal.admin
  532. permission message: &cYou do not have permission to use this command.
  533. usage: /summoninfernalmob <mobtype>
  534. trigger:
  535. if arg-1 is "zombie":
  536. spawn a zombie at player
  537. set {infernal.%UUID of last spawned zombie%} to 1
  538. strike fake fake lightning at event-entity
  539. add "{CustomName:""Infernal Zombie"",PersistenceRequired:1b,Health:50f,Attributes:[{Name:""generic.maxHealth"",Base:50d},{Name:""generic.movementSpeed"",Base:0.3d},{Name:""generic.attackDamage"",Base:10d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d},{Name:""zombie.spawnReinforcements"",Base:1d}]}" to nbt of last spawned zombie
  540. if arg-1 is "skeleton":
  541. spawn a skeleton at player
  542. set {infernal.%UUID of last spawned skeleton%} to 1
  543. strike fake fake lightning at event-entity
  544. add "{CustomName:""Infernal Skeleton"",PersistenceRequired:1b,Health:50f,Attributes:[{Name:""generic.maxHealth"",Base:50d},{Name:""generic.movementSpeed"",Base:0.3d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d}],HandItems:[{tag:{ench:[{id:49s,lvl:5s}]},id:""minecraft:bow"",Count:1b,Damage:0s},{}],HandDropChances:[-0.1f,0f]}" to nbt of last spawned skeleton
  545. if arg-1 is "enderman":
  546. spawn a enderman at player
  547. set {infernal.%UUID of last spawned enderman%} to 1
  548. strike fake fake lightning at event-entity
  549. add "{CustomName:""Infernal Enderman"",PersistenceRequired:1b,Health:100f,Attributes:[{Name:""generic.maxHealth"",Base:100d},{Name:""generic.movementSpeed"",Base:0.4d},{Name:""generic.attackDamage"",Base:15d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d}]}" to nbt of last spawned enderman
  550. if arg-1 is "creeper":
  551. spawn a creeper at player
  552. set {infernal.%UUID of last spawned creeper%} to 1
  553. set {infernalcreeperid.%UUID of last spawned creeper%} to "%UUID of last spawned creeper%"
  554. strike fake fake lightning at event-entity
  555. add "{CustomName:""Infernal Creeper"",PersistenceRequired:1b,Health:50f,Attributes:[{Name:""generic.maxHealth"",Base:50d},{Name:""generic.movementSpeed"",Base:0.3d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d}],powered:1b,ExplosionRadius:5b,Fuse:30s}" to nbt of last spawned creeper
  556. if arg-1 is "spider":
  557. spawn a spider at player
  558. set {infernal.%UUID of last spawned spider%} to 1
  559. strike fake fake lightning at last spawned spider
  560. add "{CustomName:""Infernal Spider"",PersistenceRequired:1b,Health:50f,Attributes:[{Name:""generic.maxHealth"",Base:50d},{Name:""generic.movementSpeed"",Base:0.4d},{Name:""generic.attackDamage"",Base:5d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:50d}]}" to nbt of last spawned spider
  561. if arg-1 is "blaze":
  562. spawn a blaze at player
  563. set {infernal.%UUID of last spawned blaze%} to 1
  564. strike fake fake lightning at last spawned blaze
  565. add "{CustomName:""Infernal Blaze"",PersistenceRequired:1b,Health:80f,Attributes:[{Name:""generic.maxHealth"",Base:80d},{Name:""generic.knockbackResistance"",Base:1d},{Name:""generic.followRange"",Base:100d}]}" to nbt of last spawned blaze
  566. on death:
  567. {infernal.%UUID of victim%} is 1
  568. if victim is a skeleton:
  569. chance of 10%:
  570. drop bow with nbt "{display:{Name:""&6Machine Gun Bow""},ench:[{id:0s,lvl:0s}],HideFlags:1}" at victim
  571. if victim is a zombie:
  572. chance of 10%:
  573. drop golden hoe with nbt "{display:{Name:""&2Zombie summoner's Wand"",Lore:[""&7Zombie stock: 5""]},ench:[{id:0s,lvl:0s}],AttributeModifiers:[{Name:""generic.attackDamage"",UUIDLeast:970681094l,UUIDMost:970681094l,Operation:0,AttributeName:""generic.attackDamage"",Amount:0d,Slot:""mainhand""}],HideFlags:7}" at victim
  574. if victim is a creeper:
  575. chance of 10%:
  576. drop golden sword with nbt "{display:{Name:""&eElectric Explosive Sword"",Lore:[""&7Right click to Lightning shot!""]},ench:[{id:34s,lvl:5s},{id:16s,lvl:11s}],HideFlags:1}" at victim
  577. if victim is a blaze:
  578. damage cause is not drowning
  579. chance of 10%:
  580. drop blaze rod with nbt "{display:{Name:""&cFireball Wand"",Lore:[""&7Right click to use.""]},ench:[{id:0s,lvl:0s}],HideFlags:1}" at victim
  581. if victim is a enderman:
  582. chance of 5%:
  583. drop iron sword with nbt "{display:{Name:""&5&lEnder Sword"",Lore:[""&7How to use↓"",""&7Right click to Teleport (Required two ender pearls)"",""&7Shift + Right click to Ender Shot (Required fire charge and ender pearl)"",""&7Left click to Throw Ender pearl (Required a ender pearl)"",""&7Shift + Left cick to Swap Teleport (Required four ender pearls)""]},ench:[{id:16s,lvl:17s},{id:22s,lvl:10s}],Unbreakable:1b,HideFlags:1}" at victim
  584. command /getinfernalitem [<text>]:
  585. permission: infernal.admin
  586. permission message: &cYou do not have permission to use this command.
  587. usage: /getinfernalitem <mobtype>
  588. trigger:
  589. if arg-1 is "skeleton":
  590. give player bow with nbt "{display:{Name:""&6Machine Gun Bow""},ench:[{id:0s,lvl:0s}],HideFlags:1}"
  591. if arg-1 is "zombie":
  592. give player golden hoe with nbt "{display:{Name:""&2Zombie summoner's Wand"",Lore:[""&7Zombie stock: 5""]},ench:[{id:0s,lvl:0s}],AttributeModifiers:[{Name:""generic.attackDamage"",UUIDLeast:970681094l,UUIDMost:970681094l,Operation:0,AttributeName:""generic.attackDamage"",Amount:0d,Slot:""mainhand""}],HideFlags:7}"
  593. if arg-1 is "creeper":
  594. give player golden sword with nbt "{display:{Name:""&eElectric Explosive Sword"",Lore:[""&7Right click to Lightning shot!""]},ench:[{id:34s,lvl:5s},{id:16s,lvl:11s}],HideFlags:1}"
  595. if arg-1 is "blaze":
  596. give player blaze rod with nbt "{display:{Name:""&cFireball Wand"",Lore:[""&7Right click to use.""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
  597. if arg-1 is "enderman":
  598. give player iron sword with nbt "{display:{Name:""&5&lEnder Sword"",Lore:[""&7How to use↓"",""&7Right click to Teleport (Required two ender pearls)"",""&7Shift + Right click to Ender Shot (Required fire charge and ender pearl)"",""&7Left click to Throw Ender pearl (Required a ender pearl)"",""&7Shift + Left cick to Swap Teleport (Required four ender pearls)""]},ench:[{id:16s,lvl:17s},{id:22s,lvl:10s}],Unbreakable:1b,HideFlags:1}"
  599. on rightclick on dirt:
  600. if player's tool is golden hoe:
  601. name of player's tool is "&2Zombie summoner's Wand"
  602. cancel event
  603. else if player's offhand tool is golden hoe:
  604. name of player's offhand tool is "&2Zombie summoner's Wand"
  605. cancel event
  606. on rightclick on grass block:
  607. if player's tool is golden hoe:
  608. name of player's tool is "&2Zombie summoner's Wand"
  609. cancel event
  610. else if player's offhand tool is golden hoe:
  611. name of player's offhand tool is "&2Zombie summoner's Wand"
  612. cancel event
  613. on rightclick on grass path:
  614. if player's tool is golden hoe:
  615. name of player's tool is "&2Zombie summoner's Wand"
  616. cancel event
  617. else if player's offhand tool is golden hoe:
  618. name of player's offhand tool is "&2Zombie summoner's Wand"
  619. cancel event
  620. on rightclick:
  621. if player's tool is bow:
  622. name of player's tool is "&6Machine Gun Bow"
  623. if player's gamemode is creative:
  624. cancel event
  625. shoot an arrow from player at speed 3
  626. play sound "entity.arrow.shoot" to all players at location of player with volume 1 pitch 1.2
  627. add "{crit:1b,damage:5.0f}" to nbt of shot projectile
  628. add "{pickup:2b}" to nbt of shot projectile
  629. else if player's gamemode is survival or adventure:
  630. player has arrow
  631. cancel event
  632. shoot an arrow from player at speed 3
  633. play sound "entity.arrow.shoot" to all players at location of player with volume 1 pitch 1.2
  634. add "{crit:1b,damage:5.0f}" to nbt of shot projectile
  635. add "{pickup:1b}" to nbt of shot projectile
  636. remove an arrow from player's inventory
  637. damage player's tool by 1
  638. wait 1 tick
  639. set {_nbt} to tag "FallDistance" of nbt of player
  640. add "{FallDistance:%{_nbt}%}" to nbt of player
  641. else if player's offhand tool is bow:
  642. name of player's offhand tool is "&6Machine Gun Bow"
  643. if player's gamemode is creative:
  644. cancel event
  645. shoot an arrow from player at speed 3
  646. play sound "entity.arrow.shoot" to all players at location of player with volume 1 pitch 1.2
  647. add "{crit:1b}" to nbt of shot projectile
  648. add "{pickup:2b}" to nbt of shot projectile
  649. else if player's gamemode is survival or adventure:
  650. player has arrow
  651. cancel event
  652. shoot an arrow from player at speed 3
  653. play sound "entity.arrow.shoot" to all players at location of player with volume 1 pitch 1.2
  654. add "{crit:1b}" to nbt of shot projectile
  655. add "{pickup:1b}" to nbt of shot projectile
  656. remove an arrow from player's inventory
  657. damage player's offhand tool by 1
  658. wait 1 tick
  659. set {_nbt} to tag "FallDistance" of nbt of player
  660. add "{FallDistance:%{_nbt}%}" to nbt of player
  661. on rightclick with golden hoe:
  662. name of player's tool is "&2Zombie summoner's Wand"
  663. cancel event
  664. spawn a zombie at player
  665. play sound "entity.zombie.villager.converted" to all players at player with volume 1 pitch 1
  666. execute console command "execute %player% ~ ~ ~ particle witchMagic ~ ~1 ~ 0.3 0.5 0.3 1 100 force"
  667. set {summonedzombie.%UUID of last spawned zombie%} to 1
  668. set {zombieowner.%UUID of last spawned zombie%} to player
  669. wait 1 tick
  670. add "{PersistenceRequired:1b,Attributes:[{Name:""generic.movementSpeed"",Base:0.3d},{Name:""generic.attackDamage"",Base:10d},{Name:""zombie.spawnReinforcements"",Base:1d}]}" to nbt of last spawned zombie
  671. if player's gamemode is survival or adventure:
  672. if lore of player's tool is "&7Zombie stock: 5":
  673. set lore of player's tool to "&7Zombie stock: 4"
  674. else if lore of player's tool is "&7Zombie stock: 4":
  675. set lore of player's tool to "&7Zombie stock: 3"
  676. else if lore of player's tool is "&7Zombie stock: 3":
  677. set lore of player's tool to "&7Zombie stock: 2"
  678. else if lore of player's tool is "&7Zombie stock: 2":
  679. set lore of player's tool to "&7Zombie stock: 1"
  680. else if lore of player's tool is "&7Zombie stock: 1":
  681. remove golden hoe from player's tool
  682. every tick:
  683. loop all zombies:
  684. if {summonedzombie.%UUID of loop-entity%} is 1:
  685. ignite loop-entity for 0 tick
  686. on target:
  687. if event-entity is a zombie:
  688. {summonedzombie.%UUID of event-entity%} is 1
  689. if target of event-entity is a player:
  690. cancel event
  691. if target of event-entity is a villager:
  692. cancel event
  693. if target of event-entity is a iron golem:
  694. cancel event
  695. if event-entity is a iron golem:
  696. if target of event-entity is a zombie:
  697. if {summonedzombie.%UUID of target of event-entity%} is 1:
  698. cancel event
  699. if event-entity is a snow golem:
  700. if target of event-entity is a zombie:
  701. if {summonedzombie.%UUID of target of event-entity%} is 1:
  702. cancel event
  703. on damage:
  704. if attacker is a player:
  705. loop all zombies:
  706. if health of victim > final damage:
  707. if {zombieowner.%UUID of loop-entity%} is attacker:
  708. if loop-entity is not victim:
  709. set target of loop-entity to victim
  710. if victim is a player:
  711. loop all zombies:
  712. if {zombieowner.%UUID of loop-entity%} is victim:
  713. set target of loop-entity to attacker
  714. on death of zombie:
  715. if {summonedzombie.%UUID of victim%} is 1:
  716. delete {summonedzombie.%UUID of victim%}
  717. delete {zombieowner.%UUID of victim%}
  718. on damage:
  719. attacker's tool is golden sword
  720. name of attacker's tool is "&eElectric Explosive Sword"
  721. damage was caused by attack
  722. chance of 50%:
  723. add 20 to damage
  724. strike lightning effect at victim
  725. execute console command "execute %UUID of victim% ~ ~ ~ particle hugeexplosion ~ ~0.5 ~ 0 0 0 0 1 force"
  726. execute console command "execute %UUID of victim% ~ ~ ~ playsound entity.generic.explode master @a ~ ~ ~ 4 0.7"
  727. on rightclick with golden sword:
  728. name of player's tool is "&eElectric Explosive Sword"
  729. cancel event
  730. shoot a arrow from player at speed 4
  731. play sound "entity.arrow.shoot" to all players at location of player with volume 1 pitch 1.2
  732. add "{Color:16777073,crit:1b,damage:10.0f}" to nbt of shot projectile
  733. set {electricarrow.%UUID of shot projectile%} to shot projectile
  734. if player's gamemode is survival or adventure:
  735. damage player's tool by 2
  736. on projectile hit:
  737. projectile is {electricarrow.%UUID of projectile%}
  738. wait 1 tick
  739. strike lightning effect at projectile
  740. create safe explosion with power 5 at projectile
  741. delete {electricarrow.%UUID of projectile%}
  742. kill projectile
  743. on dispense of golden sword:
  744. name of event-item is "&eElectric Explosive Sword"
  745. cancel event
  746. shoot an arrow from location 1 meter forwards location of event-block at speed 4
  747. play sound "entity.arrow.shoot" to all players at location of player with volume 1 pitch 1.2
  748. add "{Color:16777073,crit:1b,damage:10.0f}" to nbt of shot projectile
  749. set {electricarrow.%UUID of shot projectile%} to shot projectile
  750. on rightclick with blaze rod:
  751. name of player's tool is "&cFireball Wand"
  752. if player's gamemode is survival or adventure:
  753. player has fire charge
  754. shoot a fireball from player at speed 2
  755. add "{ExplosionPower:3}" to nbt of shot projectile
  756. execute console command "execute %player% ~ ~ ~ playsound entity.blaze.shoot master @a ~ ~ ~ 2"
  757. remove a fire charge from player's inventory
  758. if player's gamemode is creative:
  759. shoot a fireball from player at speed 2
  760. add "{ExplosionPower:3}" to nbt of shot projectile
  761. execute console command "execute %player% ~ ~ ~ playsound entity.blaze.shoot master @a ~ ~ ~ 2"
  762. on rightclick with iron sword:
  763. name of player's tool is "&5&lEnder Sword"
  764. if player is not sneaking:
  765. if player's gamemode is survival or adventure:
  766. player has 2 ender pearl
  767. remove 2 ender pearl from player's inventory
  768. add "{FallDistance:0}" to nbt of player
  769. if target block of player is set:
  770. if distance between target block of player and location of player <= 30:
  771. teleport player to location 1 meter above location of target block of player
  772. play sound "entity.endermen.teleport" to all players at location of player with volume 1 pitch 1
  773. else if distance between target block of player and location of player > 30:
  774. teleport player to location 30 meter forwards player
  775. play sound "entity.endermen.teleport" to all players at location of player with volume 1 pitch 1
  776. else if target block of player is not set:
  777. teleport player to location 30 meter forwards player
  778. play sound "entity.endermen.teleport" to all players at location of player with volume 1 pitch 1
  779. if player's gamemode is creative:
  780. add "{FallDistance:0}" to nbt of player
  781. if target block of player is set:
  782. if distance between target block of player and location of player <= 30:
  783. teleport player to location 1 meter above location of target block of player
  784. play sound "entity.endermen.teleport" to all players at location of player with volume 1 pitch 1
  785. else if distance between target block of player and location of player > 30:
  786. teleport player to location 30 meter forwards player
  787. play sound "entity.endermen.teleport" to all players at location of player with volume 1 pitch 1
  788. else if target block of player is not set:
  789. teleport player to location 30 meter forwards player
  790. play sound "entity.endermen.teleport" to all players at location of player with volume 1 pitch 1
  791. if player is sneaking:
  792. if player's gamemode is survival or adventure:
  793. player has fire charge
  794. player has ender pearl
  795. remove a fire charge from player's inventory
  796. remove a ender pearl from player's inventory
  797. execute console command "execute %player% ~ ~ ~ playsound entity.enderdragon.shoot master @a ~ ~ ~ 2"
  798. shoot a dragon fireball from player with speed 1
  799. if player's gamemode is creative:
  800. execute console command "execute %player% ~ ~ ~ playsound entity.enderdragon.shoot master @a ~ ~ ~ 2"
  801. shoot a dragon fireball from player with speed 1
  802. on leftclick with iron sword:
  803. name of player's tool is "&5&lEnder Sword"
  804. if player is not sneaking:
  805. if player's gamemode is survival or adventure:
  806. player has ender pearl
  807. remove a ender pearl from player's inventory
  808. if target of player is set:
  809. distance between player and target of player > 5
  810. shoot an ender pearl from player at speed 3
  811. add "{ownerName:0}" to nbt of shot projectile
  812. set {enderpearl.%UUID of shot projectile%} to shot projectile
  813. play sound "entity.enderpearl.throw" to all players at location of player with volume 1 pitch 0
  814. else if target of player is not set:
  815. shoot an ender pearl from player at speed 3
  816. add "{ownerName:0}" to nbt of shot projectile
  817. set {enderpearl.%UUID of shot projectile%} to shot projectile
  818. play sound "entity.enderpearl.throw" to all players at location of player with volume 1 pitch 0
  819. if player's gamemode is creative:
  820. if target of player is set:
  821. distance between player and target of player > 5
  822. shoot an ender pearl from player at speed 3
  823. add "{ownerName:0}" to nbt of shot projectile
  824. set {enderpearl.%UUID of shot projectile%} to shot projectile
  825. play sound "entity.enderpearl.throw" to all players at location of player with volume 1 pitch 0
  826. else if target of player is not set:
  827. shoot an ender pearl from player at speed 3
  828. add "{ownerName:0}" to nbt of shot projectile
  829. set {enderpearl.%UUID of shot projectile%} to shot projectile
  830. play sound "entity.enderpearl.throw" to all players at location of player with volume 1 pitch 0
  831. if player is sneaking:
  832. if player's gamemode is survival or adventure:
  833. target of player is set
  834. target of player is a living entity
  835. target of player is not armor stand
  836. distance between player and target of player <= 30
  837. player has 4 ender pearl
  838. remove 4 ender pearl from player's inventory
  839. set {_target} to target of player
  840. set {_playerloc} to location of player
  841. set yaw of {_playerloc} to 0
  842. set pitch of {_playerloc} to 0
  843. set {_targetloc} to location of {_target}
  844. set yaw of {_targetloc} to 0
  845. set pitch of {_targetloc} to 0
  846. play sound "entity.endermen.teleport" to all players at {_playerloc} with volume 1 pitch 1
  847. play sound "entity.endermen.teleport" to all players at {_targetloc} with volume 1 pitch 1
  848. teleport player to {_targetloc}
  849. teleport {_target} to {_playerloc}
  850. make player damage {_target} by 10
  851. if player's gamemode is creative:
  852. target of player is set
  853. target of player is a living entity
  854. target of player is not armor stand
  855. distance between player and target of player <= 30
  856. set {_target} to target of player
  857. set {_playerloc} to location of player
  858. set yaw of {_playerloc} to 0
  859. set pitch of {_playerloc} to 0
  860. set {_targetloc} to location of {_target}
  861. set yaw of {_targetloc} to 0
  862. set pitch of {_targetloc} to 0
  863. play sound "entity.endermen.teleport" to all players at {_playerloc} with volume 1 pitch 1
  864. play sound "entity.endermen.teleport" to all players at {_targetloc} with volume 1 pitch 1
  865. teleport player to {_targetloc}
  866. teleport {_target} to {_playerloc}
  867. make player damage {_target} by 10
  868.  
  869. every tick:
  870. loop all players:
  871. if loop-player's tool is iron sword:
  872. name of loop-player's tool is "&5&lEnder Sword"
  873. apply potion speed 4 to loop-player for 10 tick and ambient true
  874. loop-player's gamemode is survival or creative or adventure
  875. execute console command "execute %loop-player% ~ ~ ~ particle portal ~ ~0.5 ~ 0.5 0.7 0.5 0.5 5"
  876. if loop-player's gamemode is survival or adventure:
  877. loop items in loop-player's inventory:
  878. if loop-item is iron sword:
  879. name of loop-item is "&5&lEnder Sword"
  880. chance of 3%:
  881. give loop-player ender pearl
  882. on damage of player:
  883. victim's tool is iron sword
  884. name of victim's tool is "&5&lEnder Sword"
  885. damage was caused by attack
  886. attacker is a area effect cloud
  887. "%tag ""Particle"" of nbt of attacker%" is "dragonbreath"
  888. cancel event
  889. on damage:
  890. damage was caused by projectile
  891. projectile is {enderpearl.%UUID of projectile%}
  892. cancel event
  893. make shooter damage victim by 5
  894. on projectile hit:
  895. if projectile is {enderpearl.%UUID of projectile%}:
  896. shooter is a player
  897. delete {enderpearl.%UUID of projectile%}
  898. set {_tploc} to location of projectile
  899. set yaw of {_tploc} to 0
  900. set pitch of {_tploc} to 0
  901. teleport shooter to {_tploc}
  902. play sound "entity.endermen.teleport" to all players at projectile with volume 1 pitch 1
  903. command /setnextinfernaldragonspawnchance <integer>:
  904. aliases: /setnidsc
  905. permission: infernal.admin
  906. permission message: &cYou do not have permission to use this command.
  907. trigger:
  908. set {nextinfernaldragonchance} to arg
Advertisement
Add Comment
Please, Sign In to add comment