Advertisement
Guest User

Untitled

a guest
Jan 20th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. command /weapon [<text>] [<player>]:
  2. permission: manager
  3. trigger:
  4. if arg-2 is not set:
  5. send "/weapon <weapon type or list> <player>"
  6.  
  7. if arg-2 is set:
  8. if arg-1 is "list":
  9. send "1) AK-47"
  10. SEND "2) Bazooka"
  11. if arg-1 is "ak47":
  12. give arg-2 stick named "&cAK-47" with lore "&7Right click from a distance at a player.%newline%&7you're gonna be there soon :]"
  13. send "&aGave &f%arg-2% &aan AK-47." to player
  14. if arg-1 is "bazooka":
  15. give arg-2 diamond shovel named "&2&lBAZOOKA" with lore "&7Right click from a distance at a player.%newline%&7but it's &2&lBOOM BOOM&7..."
  16. send "&aGave &f%arg-2% &aa Bazooka." to player
  17.  
  18. on damage:
  19. projectile is a snowball
  20. attacker is holding a stick named "&cAK-47" with lore "&7Right click from a distance at a player.%newline%&7you're gonna be there soon :]":
  21. damage victim by 2 hearts
  22.  
  23. on projectile hit:
  24. projectile is an egg
  25. shooter is holding a diamond shovel named "&2&lBAZOOKA" with lore "&7Right click from a distance at a player.%newline%&7but it's &2&lBOOM BOOM&7...":
  26. shooter is in world "eventshub" or "allevents" or "build" or "parkours":
  27. send "&cBuddy not today. Be in another world not the %shooter's world% &cworld..." to shooter
  28. else:
  29. loop all living entities in radius 10 around projectile:
  30. damage loop-entity by 9 hearts
  31. create an explosion of force 10 at projectile
  32. set {air} to air
  33. loop all blocks in radius 5 around projectile:
  34. loop-block is not bedrock:
  35. set loop-block to {air}
  36.  
  37.  
  38. on right click:
  39. player is holding a stick named "&cAK-47" with lore "&7Right click from a distance at a player.%newline%&7you're gonna be there soon :]":
  40. if {ammoak47.%player%} is greater or equal to 20:
  41. send "&aWeapon needs a reload! Left click to reload!"
  42. else:
  43. shoot a snowball from player at speed 1
  44. add 1 to {ammoak47.%player%}
  45.  
  46. on left click:
  47. player is holding a stick named "&cAK-47" with lore "&7Right click from a distance at a player.%newline%&7you're gonna be there soon :]":
  48. send "&aReloading."
  49. wait 15 ticks
  50. send "&aReloading.."
  51. wait 15 ticks
  52. send "&aReloading..."
  53. wait 15 ticks
  54. clear {ammoak47.%player%}
  55. send "&aReload succeeded! You may now shoot."
  56. play "random.bowhit" to player
  57.  
  58. on rightclick:
  59. player is holding a diamond shovel named "&2&lBAZOOKA" with lore "&7Right click from a distance at a player.%newline%&7but it's &2&lBOOM BOOM&7...":
  60. set {baz} to difference between {baz.%player%} and now
  61. if {baz} is less than 5 seconds:
  62. send "&aReloading..."
  63. stop
  64. set {baz.%player%} to now
  65. shoot an egg from player at speed 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement