7mm

Skript: TechAssault

7mm
Jul 13th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. #===================================
  2. # 雑用コマンド
  3. #===================================
  4.  
  5. command /donate [<player>] [<integer>]:
  6. executable by: console
  7. trigger:
  8. broadcast "&7&l@ &6%arg 1%&eさんが&d%arg 2%RC&6寄付&eしてくれました!"
  9. message "&7&l@ &6&l寄付ありがとう!" to arg 1
  10. add arg 2 to {player.donate-amount.%player%}
  11.  
  12. command /ngive <player> <text> <text> [<integer>]:
  13. permission: skript.admin
  14. trigger:
  15. set {_arg4} to arg 4
  16. if arg 4 is not set:
  17. set {_arg4} to 0
  18. execute console command "/give %arg 1% %arg 2% 1 %{_arg4}% {Unbreakable:true,HideFlags:63,display:{Name:""%arg 3%""}}"
  19.  
  20. #===================================
  21. # 攻撃処理
  22. #===================================
  23.  
  24. every minecraft tick:
  25. loop all players:
  26. clear {player.attacked.%loop-player%}
  27. clear {player.victimis.%loop-player%}
  28.  
  29. if {player.main.interval.%loop-player%} > 0:
  30. remove 1 from {player.main.interval.%loop-player%}
  31. if {player.main.interval.%loop-player%} is not set:
  32. set {player.main.interval.%loop-player%} to 0
  33.  
  34. on damage:
  35. set {player.attacked.%attacker%} to true
  36. set {player.victimis.%attacker%} to "%victim%"
  37.  
  38. on rightclick:
  39. if name of player's held item is "&6ナチュラルシューター":
  40. {player.main.interval.%player%} = 0
  41. set {player.main.interval.%player%} to 4
  42. shoot an snowball from player at speed 3
  43. execute console command "/playsound minecraft:block.wood.place master %player% ~ ~ ~ 1.0 0.5"
  44. loop entities in radius 1 of projectiles:
  45. loop-entity is a snowball
  46. set {_setblur} to 0.4
  47. set {_blur} to {_setblur}-({player.custom.blur.%shooter%}/100)
  48. set {_-blur} to {_setblur}-{_blur}
  49. push loop-entity upwards at speed random number between {_-blur} to {_setblur}
  50. push loop-entity right at speed random number between 0-{_blur} to {_blur}
  51. while true:
  52. if {player.attacked.%player%} is true:
  53. execute console command "/playsound minecraft:block.note.pling master %shooter% ~ ~ ~ 1.0 2.0"
  54. make stone damage {player.victimis.%player%} by 3.0
  55. exit loop
  56. if loop-entity is on ground:
  57. execute console command "/playsound minecraft:block.stone.step master %shooter%"
  58. exit loop
  59. wait a tick
Add Comment
Please, Sign In to add comment