Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick with tnt:
- name of player's tool is "&bスノーTNT"
- cancel event
- shoot a tnt from player with speed 1
- set explosion yield of last shot tnt to 0
- add "snow_tnt" to scoreboard tags of last shot tnt
- set metadata value "Owner" of last shot tnt to player
- player's gamemode is survival or adventure
- remove a tnt from player's tool
- on explosion prime:
- event-entity is a tnt
- event-entity has scoreboard tag "snow_tnt"
- set {_shooter} to metadata value "Owner" of event-entity
- set {_loc} to location 0.5 meter above location of event-entity
- #pop ball large firework effect colored 255, 255, 255 at {_loc}
- wait 1 tick
- loop 500 times:
- set yaw of {_loc} to random number between 0 and 360
- set pitch of {_loc} to random number between -90 and 90
- shoot a snowball from location 0.1 meter forwards {_loc} with speed 0.75
- add "snow_tnt_snowball" to scoreboard tags of shot projectile
- {_shooter} is set
- set shooter of shot projectile to {_shooter}
- on explode:
- cancel event
- every tick:
- execute console command "/execute @e[type=tnt,tag=snow_tnt] ~ ~ ~ particle fallingdust ~ ~0.5 ~ 0.3 0.3 0.3 0 20 force @a 80"
- on projectile hit:
- projectile is a snowball
- projectile has scoreboard tag "snow_tnt_snowball"
- play raw sound "BLOCK_SNOW_BREAK" at projectile with pitch 1 and volume 2
- hit entity is set
- set no damage ticks of hit entity to 0
- on damage:
- projectile is a snowball
- projectile has scoreboard tag "snow_tnt_snowball"
- set damage to 2.5
- apply slowness 1 to victim for 10 seconds mode vanilla
Advertisement
Add Comment
Please, Sign In to add comment