Paste #29014: Fixed

Date: 2016/01/23 23:08:12 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


GunShooting: 
    type: world 
    events: 
        on player right clicks with Gun:
        - playsound <player.location> sound:EXPLODE 
        - shoot arrow speed:<context.force>  
        - flag player gunShot
        on projectile hits block: 
        - if <player.has_flag[gunShot]> {
            - explode power:1 
            - flag player gunShot:!
            }
        on projectile hits entity: 
        - if <player.has_flag[gunShot]> {
            - determine passively cancelled 
            - explode power:1 
            - flag player gunShot:!
            }