akon1248

Untitled

Nov 28th, 2018
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. command /gethomingfireball [<integer>]:
  2. trigger:
  3. if arg-1 is not set:
  4. give player fire charge with nbt "{display:{Name:""&c&lHoming Fireball""},ench:[{id:0s,lvl:0s}],HideFlags:1}"
  5. if arg-1 is set:
  6. loop arg-1 times:
  7. give player fire charge with nbt "{display:{Name:""&c&lHoming Fireball""},ench:[{id:0s,lvl:0s}],HideFlags:1}"
  8. on rightclick with fire charge:
  9. if name of player's tool is "&c&lHoming Fireball":
  10. cancel event
  11. shoot a fireball from player at speed 0.5
  12. execute console command "execute %player% ~ ~ ~ playsound minecraft:entity.ghast.shoot master @a ~ ~ ~ 2"
  13. add "{ExplosionPower:15}" to nbt of shot projectile
  14. if player's gamemode is not creative:
  15. remove a fire charge from player's tool
  16. set {homing.%UUID of shot projectile%} to shot projectile
  17. set {homingowner.%UUID of shot projectile%} to player
  18. set {vanishtime::%UUID of shot projectile%} to 0
  19. every tick:
  20. loop all fireballs:
  21. if {homing.%UUID of loop-entity-1%} is set:
  22. if block at loop-entity-1 is not water:
  23. execute console command "execute %UUID of loop-entity-1% ~ ~ ~ particle flame ~ ~0.5 ~ 0.5 0.5 0.5 0.1 100 force"
  24. if block at loop-entity-1 is water:
  25. set {_smokeloc} to location of loop-entity-1
  26. loop all players:
  27. show 10 "explosion_normal" particles at {_smokeloc} for loop-player offset by 0.4, 0.4, 0.4
  28. show 10 "water_bubble" particles at {_smokeloc} for loop-player offset by 0.4, 0.4, 0.4
  29. if {target.%UUID of loop-entity-1%} is not set:
  30. set {_shortdistance} to 101
  31. loop entities in radius 100 around location of loop-entity-1:
  32. if loop-entity-2 is not armor stand:
  33. if loop-entity-2 is not {homingowner.%UUID of loop-entity-1%}:
  34. if health of loop-entity-2 is greater than or equal to 0.01:
  35. if loop-entity-2 is a player:
  36. if loop-entity-2's gamemode is adventure or survival:
  37. if distance between location of loop-entity-1 and location of loop-entity-2 is smaller than {_shortdistance}:
  38. set {target.%UUID of loop-entity-1%} to loop-entity-2
  39. add "{Motion:[0.0d,0.0d,0.0d],power:[0.0d,0.0d,0.0d],direction:[0.0d,0.0d,0.0d]}" to nbt of loop-entity-1
  40. set {_shortdistance} to distance between location of loop-entity-1 and location of loop-entity-2
  41. else if loop-entity-2 is not a player:
  42. if distance between location of loop-entity-1 and location of loop-entity-2 is smaller than {_shortdistance}:
  43. set {target.%UUID of loop-entity-1%} to loop-entity-2
  44. add "{Motion:[0.0d,0.0d,0.0d],power:[0.0d,0.0d,0.0d],direction:[0.0d,0.0d,0.0d]}" to nbt of loop-entity-1
  45. set {_shortdistance} to distance between location of loop-entity-1 and location of loop-entity-2
  46. if {target.%UUID of loop-entity-1%} is alive:
  47. add "{power:[0.0d,0.0d,0.0d]}" to nbt of loop-entity-1
  48. push loop-entity-1 direction from loop-entity-1 to location of {target.%UUID of loop-entity-1%} at speed 0.2
  49. if {target.%UUID of loop-entity-1%} is dead:
  50. delete {target.%UUID of loop-entity-1%}
  51. add "{Motion:[0.0d,0.0d,0.0d],power:[0.0d,0.0d,0.0d],direction:[0.0d,0.0d,0.0d]}" to nbt of loop-entity-1
  52. if {vanishtime::%UUID of loop-entity-1%} is greater than or equal to 200:
  53. create safe explosion of power 20 at {homing.%UUID of loop-entity-1%}
  54. kill {homing.%UUID of loop-entity-1%}
  55. every tick:
  56. loop {vanishtime::*}:
  57. add 1 to {vanishtime::%loop-index%}
  58. if {vanishtime::%loop-index%} is greater than or equal to 201:
  59. delete {homing.%loop-index%}
  60. delete {homingowner.%loop-index%}
  61. delete {vanishtime::%loop-index%}
  62. delete {target.%loop-index%}
  63. on projectile hit:
  64. if projectile is {homing.%UUID of projectile%}:
  65. loop entities in radius 10 around projectile:
  66. ignite loop-entity for 20 second
  67. command /createblackhole:
  68. aliases: /creblackhole, /cbh
  69. trigger:
  70. set block at location of player to ender gateway
  71. set {blackhole} to location of block at location of player
  72. set yaw of {blackhole} to 0
  73. set pitch of {blackhole} to 0
  74. command /deleteblackhole:
  75. aliases: /delblackhole, /dbh
  76. trigger:
  77. set block at {blackhole} to air
  78. delete {blackhole}
  79. on break:
  80. if event-location is {blackhole}:
  81. cancel event
  82. every tick:
  83. loop all players:
  84. show 200 portal particles at {blackhole} for loop-player offset by 0.3, 0.3, 0.3 with speed 20
  85. loop entities in radius 30 around {blackhole}:
  86. if loop-entity is a player:
  87. if loop-entity's gamemode is adventure or survival:
  88. add "{Motion:[0.0d,0.0d,0.0d],power:[0.0d,0.0d,0.0d],direction:[0.0d,0.0d,0.0d]}" to nbt of loop-entity
  89. push loop-entity direction from loop-entity to location of {blackhole} at speed 1.5
  90. if loop-entity is not a player:
  91. add "{Motion:[0.0d,0.0d,0.0d],power:[0.0d,0.0d,0.0d],direction:[0.0d,0.0d,0.0d]}" to nbt of loop-entity
  92. push loop-entity direction from loop-entity to location of {blackhole} at speed 1.5
  93. loop entities in radius 1.5 around {blackhole}:
  94. if loop-entity is a player:
  95. if loop-entity's gamemode is survival or adventure:
  96. teleport loop-entity to location 0.5 meter below {blackhole}
  97. damage loop-entity by 1
  98. else if loop-entity is armor stand:
  99. teleport loop-entity to location 0.5 meter below {blackhole}
  100. kill loop-entity
  101. else if loop-entity is living entity:
  102. teleport loop-entity to location 0.5 meter below {blackhole}
  103. damage loop-entity by max health of loop-entity/5
  104. else:
  105. teleport loop-entity to location 0.5 meter below {blackhole}
  106. kill loop-entity
  107. loop entities in radius 3 around {blackhole}:
  108. if loop-entity is living entity:
  109. if loop-entity is a player:
  110. if loop-entity's gamemode is survival or adventure:
  111. set damage delay of loop-entity to 0 tick
  112. if loop-entity is not a player:
  113. set damage delay of loop-entity to 0 tick
  114. command /slimeexplosion:
  115. trigger:
  116. execute console command "execute %player% ~ ~ ~ playsound minecraft:entity.slime.jump master @a ~ ~ ~ 1 0.7"
  117. execute console command "execute %player% ~ ~ ~ particle iconcrack ~ ~1 ~ 1 1 1 0.3 1000 force @a 341"
  118. execute console command "execute %player% ~ ~ ~ particle slime ~ ~1 ~ 1 1 1 0.3 1000 force"
  119. loop random integer between 50 and 100 times:
  120. execute console command "execute %player% ~ ~ ~ summon item ~ ~2 ~ {Age:5900s,PickupDelay:32767s,Item:{id:""minecraft:slime_ball"",Count:1b,Damage:0s},Motion:[%random number between -1.00 and 1.00%d,%random number between -1.00 and 1.00%d,%random number between -1.00 and 1.00%d]}"
Advertisement
Add Comment
Please, Sign In to add comment