Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {%player%.laser.shoot} = 0
- on rightclick:
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- cancel event
- if {%player%.laser.shoot} is 0:
- show happy villager with speed 0 at player
- loop 200 times:
- set {_loc} to location (loop-value / 5) meters in front of and 1.3 meters above the player
- show happy villager with speed 0 at {_loc}
- loop all entities in radius 2.5 around {_loc}:
- loop-entity is not player
- loop-entity's gamemode is not creative
- damage loop-entity by 15 hearts
- if block at {_loc} is not air:
- set {%player%.laser.shoot} to 3
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRay Gun &2&l&f&l|||" to player
- wait 2 second
- set {%player%.laser.shoot} to 2
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRay Gun &2&l|&f&l||" to player
- wait 2 second
- set {%player%.laser.shoot} to 1
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRay Gun &2&l||&f&l|" to player
- wait 2 second
- set {%player%.laser.shoot} to 0
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRay Gun &2&l|||&f&l" to player
- stop
- set {%player%.laser.shoot} to 5
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRay Gun &2&l&f&l|||||" to player
- wait 2 second
- set {%player%.laser.shoot} to 4
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRay Gun &2&l|&f&l||||" to player
- wait 2 second
- set {%player%.laser.shoot} to 3
- if player is holding a bamboo named "&aRayGun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRay Gun &2&l||&f&l|||" to player
- wait 2 second
- set {%player%.laser.shoot} to 2
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRay Gun &2&l|||&f&l||" to player
- wait 2 second
- set {%player%.laser.shoot} to 1
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRayGun &2&l||||&f&l|" to player
- wait 2 second
- set {%player%.laser.shoot} to 0
- if player is holding a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks":
- send action bar "&aRayGun &2&l|||||&f&l" to player
- command /RayGun:
- permission: op
- trigger:
- give player a bamboo named "&aRay Gun" with lore "&eShoots &6Through Armor &eand does &420 &cdamage" and "&4Cant &cshoot through blocks"
Advertisement
Add Comment
Please, Sign In to add comment