guns_world_common: debug: false type: world events: after player join: - if !: - stop - animate animation:sit - run guns_unfreeze path:script def: - narrate format:formats_prefix "You logged off before you were unstunned. You will remain stunned for 60 seconds." on player teleports: - if : - determine cancelled passively guns_world_gun: debug: false type: world events: on player right clicks block: - if !: - stop - ratelimit 1s - playsound custom sound:item.anaconda - define target - if <[target]> == null: - define location - if <[location]> == null: - define location - playeffect effect:redstone at:].distance[0.1]> special_data:0.5|white visibility:16 quantity:6 offset:0,0,0 - stop - playeffect effect:redstone at:].distance[0.1]> special_data:0.5|white visibility:16 quantity:6 offset:0,0,0 - if !<[target].is_player>: - stop - if <[target].has_flag[guns_frozen]>: - stop - animate <[target]> animation:sit - flag <[target]> guns_frozen:true - run guns_unfreeze path:script def:<[target]> - narrate format:formats_prefix "You shot ]>" - narrate format:formats_prefix "You have been shot by ]>" targets:<[target]> guns_world_taser: debug: false type: world events: on player right clicks block: - if !: - stop - ratelimit 1s - define target - if <[target]> == null: - stop - if !<[target].is_player>: - stop - if <[target].has_flag[guns_frozen]>: - stop - playeffect effect:redstone at:].distance[0.1]> special_data:0.5|white visibility:16 quantity:6 offset:0,0,0 - playsound custom sound:item.taser - animate <[target]> animation:sit - flag <[target]> guns_frozen:true - run guns_unfreeze path:script def:<[target]> - narrate format:formats_prefix "You tased ]>" - narrate format:formats_prefix "You have been tased by ]>" targets:<[target]>