Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /gethomingfireball [<integer>]:
- trigger:
- if arg-1 is not set:
- give player fire charge with nbt "{display:{Name:""&c&lHoming Fireball""},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- if arg-1 is set:
- loop arg-1 times:
- give player fire charge with nbt "{display:{Name:""&c&lHoming Fireball""},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- on rightclick with fire charge:
- if name of player's tool is "&c&lHoming Fireball":
- cancel event
- shoot a fireball from player at speed 0.5
- execute console command "execute %player% ~ ~ ~ playsound minecraft:entity.ghast.shoot master @a ~ ~ ~ 2"
- add "{ExplosionPower:15}" to nbt of shot projectile
- if player's gamemode is not creative:
- remove a fire charge from player's tool
- set {homing.%UUID of shot projectile%} to shot projectile
- set {homingowner.%UUID of shot projectile%} to player
- set {vanishtime::%UUID of shot projectile%} to 0
- every tick:
- loop all fireballs:
- if {homing.%UUID of loop-entity-1%} is set:
- if block at loop-entity-1 is not water:
- execute console command "execute %UUID of loop-entity-1% ~ ~ ~ particle flame ~ ~0.5 ~ 0.5 0.5 0.5 0.1 100 force"
- if block at loop-entity-1 is water:
- set {_smokeloc} to location of loop-entity-1
- loop all players:
- show 10 "explosion_normal" particles at {_smokeloc} for loop-player offset by 0.4, 0.4, 0.4
- show 10 "water_bubble" particles at {_smokeloc} for loop-player offset by 0.4, 0.4, 0.4
- if {target.%UUID of loop-entity-1%} is not set:
- set {_shortdistance} to 101
- loop entities in radius 100 around location of loop-entity-1:
- if loop-entity-2 is not armor stand:
- if loop-entity-2 is not {homingowner.%UUID of loop-entity-1%}:
- if health of loop-entity-2 is greater than or equal to 0.01:
- if loop-entity-2 is a player:
- if loop-entity-2's gamemode is adventure or survival:
- if distance between location of loop-entity-1 and location of loop-entity-2 is smaller than {_shortdistance}:
- set {target.%UUID of loop-entity-1%} to loop-entity-2
- 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
- set {_shortdistance} to distance between location of loop-entity-1 and location of loop-entity-2
- else if loop-entity-2 is not a player:
- if distance between location of loop-entity-1 and location of loop-entity-2 is smaller than {_shortdistance}:
- set {target.%UUID of loop-entity-1%} to loop-entity-2
- 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
- set {_shortdistance} to distance between location of loop-entity-1 and location of loop-entity-2
- if {target.%UUID of loop-entity-1%} is alive:
- add "{power:[0.0d,0.0d,0.0d]}" to nbt of loop-entity-1
- push loop-entity-1 direction from loop-entity-1 to location of {target.%UUID of loop-entity-1%} at speed 0.2
- if {target.%UUID of loop-entity-1%} is dead:
- delete {target.%UUID of loop-entity-1%}
- 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
- if {vanishtime::%UUID of loop-entity-1%} is greater than or equal to 200:
- create safe explosion of power 20 at {homing.%UUID of loop-entity-1%}
- kill {homing.%UUID of loop-entity-1%}
- every tick:
- loop {vanishtime::*}:
- add 1 to {vanishtime::%loop-index%}
- if {vanishtime::%loop-index%} is greater than or equal to 201:
- delete {homing.%loop-index%}
- delete {homingowner.%loop-index%}
- delete {vanishtime::%loop-index%}
- delete {target.%loop-index%}
- on projectile hit:
- if projectile is {homing.%UUID of projectile%}:
- loop entities in radius 10 around projectile:
- ignite loop-entity for 20 second
- command /createblackhole:
- aliases: /creblackhole, /cbh
- trigger:
- set block at location of player to ender gateway
- set {blackhole} to location of block at location of player
- set yaw of {blackhole} to 0
- set pitch of {blackhole} to 0
- command /deleteblackhole:
- aliases: /delblackhole, /dbh
- trigger:
- set block at {blackhole} to air
- delete {blackhole}
- on break:
- if event-location is {blackhole}:
- cancel event
- every tick:
- loop all players:
- show 200 portal particles at {blackhole} for loop-player offset by 0.3, 0.3, 0.3 with speed 20
- loop entities in radius 30 around {blackhole}:
- if loop-entity is a player:
- if loop-entity's gamemode is adventure or survival:
- 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
- push loop-entity direction from loop-entity to location of {blackhole} at speed 1.5
- if loop-entity is not a player:
- 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
- push loop-entity direction from loop-entity to location of {blackhole} at speed 1.5
- loop entities in radius 1.5 around {blackhole}:
- if loop-entity is a player:
- if loop-entity's gamemode is survival or adventure:
- teleport loop-entity to location 0.5 meter below {blackhole}
- damage loop-entity by 1
- else if loop-entity is armor stand:
- teleport loop-entity to location 0.5 meter below {blackhole}
- kill loop-entity
- else if loop-entity is living entity:
- teleport loop-entity to location 0.5 meter below {blackhole}
- damage loop-entity by max health of loop-entity/5
- else:
- teleport loop-entity to location 0.5 meter below {blackhole}
- kill loop-entity
- loop entities in radius 3 around {blackhole}:
- if loop-entity is living entity:
- if loop-entity is a player:
- if loop-entity's gamemode is survival or adventure:
- set damage delay of loop-entity to 0 tick
- if loop-entity is not a player:
- set damage delay of loop-entity to 0 tick
- command /slimeexplosion:
- trigger:
- execute console command "execute %player% ~ ~ ~ playsound minecraft:entity.slime.jump master @a ~ ~ ~ 1 0.7"
- execute console command "execute %player% ~ ~ ~ particle iconcrack ~ ~1 ~ 1 1 1 0.3 1000 force @a 341"
- execute console command "execute %player% ~ ~ ~ particle slime ~ ~1 ~ 1 1 1 0.3 1000 force"
- loop random integer between 50 and 100 times:
- 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