Advertisement
TEKITOU-123

ファイアショット

Apr 20th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. on rightclick holding a enchanted book:
  2. if name of player's tool is "&4&lファイアショット":
  3. {%player%::c} is not set
  4. player's level progress is larger than 0.1
  5. shoot a snowball from player at speed 2
  6. ignite the last shot snowball
  7. push player backwards at speed 0.3
  8. set {a::%uuid of last shot snowball%} to "fire ball"
  9. play sound "entity.ghast.shoot" with volume 10 and pitch 1 at player for players in radius 10 of player
  10. reduce the player's level progress by 0.1
  11. wait 5 seconds
  12. delete {a::%uuid of last shot snowball%}
  13. on damage:
  14. projectile is snowball
  15. if {a::%uuid of event-projectile%} is "fire ball":
  16. set maximum damage delay of victim to 0 tick
  17. make shooter damage victim by 2
  18. ignite victim for 2 seconds
  19. delete {a::%uuid of event-projectile%}
  20. set {%shooter%-LA} to player
  21. on shoot:
  22. projectile is snowball
  23. if name of shooter's tool is "&4&lファイアショット":
  24. set {_uuid} to uuid of projectile
  25. loop 100 times:
  26. show 2 flame particles at location of event-projectile offset by 0.1, 0.1, 0.1 with speed 0.1
  27. wait 1 tick
  28. on projectile hit:
  29. loop {a::*}:
  30. if "%uuid of event-projectile%" is "%loop-index%":
  31. delete {a::%uuid of event-projectile%}
  32. stop loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement