Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on shoot:
- shooter is a player
- "%projectile%" is "snowball"
- set metadata value "blackhole" of projectile to true
- on projectile hit:
- metadata value "blackhole" of projectile is true
- spawn armor stand at event-location
- set {_entity} to last spawned armor stand
- add "{Marker:true, Invisible:true, NoGravity:true}" to entity-nbt of {_entity}
- set helmet of {_entity} to coal block
- set {_x} to x-coordinate of event-location
- set {_y} to y-coordinate of event-location
- set {_z} to z-coordinate of event-location
- sound({_entity})
- loop 3 times:
- loop 360 times:
- show water drip at location {_x}+7*sin(loop-number-2), {_y}, {_z}+7*cos(loop-number-2)
- wait 1 second
- horizon({_entity})
- wait 12 second
- kill {_entity}
- function sound(entity: entity):
- set {_pitch} to 0
- loop 30 times:
- play sound "entity.player.levelup" at pitch {_pitch} at {_entity}
- add 0.05 to {_pitch}
- wait 2 tick
- function horizon(entity: entity):
- set {_loc} to location of {_entity}
- while {_entity} is alive:
- show 10 water drip at {_entity}
- play sound "item.elytra.flying" at pitch 1 at {_entity}
- loop all entities in radius 7 around {_entity}:
- loop-entity is not {_entity}
- set {_vector} to vector between loop-entity and {_loc} normalized
- push loop-entity {_vector} at speed 0.02
- wait 1 tick
- stop sound "item.elytra.flying" for all players
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement