From 4ff52e4876ff1325e56b0018ac97ef034ff6561b Mon Sep 17 00:00:00 2001 From: Rares Bozga Date: Wed, 28 Jan 2026 22:54:34 +0200 Subject: [PATCH] Fix guns_gun bug and custom gun and taser sounds --- scripts/guns/guns_world.dsc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/guns/guns_world.dsc b/scripts/guns/guns_world.dsc index 412d94e..2205474 100644 --- a/scripts/guns/guns_world.dsc +++ b/scripts/guns/guns_world.dsc @@ -20,17 +20,16 @@ guns_world_gun: - if !: - stop - ratelimit 1s - # - playsound custom sound:your_custom_sound - - playsound sound:entity_arrow_shoot - - define target + - playsound custom sound:item.anaconda + - define target - if <[target]> == null: - - define location + - 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].type> != player: + - if !<[target].is_player>: - stop - if <[target].has_flag[guns_frozen]>: - stop @@ -51,13 +50,12 @@ guns_world_taser: - define target - if <[target]> == null: - stop - - if <[target].type> != player: + - 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:your_custom_sound - - playsound sound:entity_armor_stand_hit + - playsound custom sound:item.taser - animate <[target]> animation:sit - flag <[target]> guns_frozen:true - run guns_unfreeze path:script def:<[target]>