Skip to content

Commit 8bd0a8c

Browse files
authored
Reeling Rods lead sound fix (#1258)
* Update leash sound * Backport old sound
1 parent d80a335 commit 8bd0a8c

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Action for hooked leash knot
2+
# @s = leash knot
3+
# at bobber in @s
4+
# run from hooked_entity/select_type
5+
6+
tag @s add gm4_reeling_rods.leash_knot
7+
8+
# distance=..12 is leash distance
9+
execute at @s as @e[type=#gm4_reeling_rods:leashable,distance=..12] \
10+
if function gm4_reeling_rods:hooked_entity/leash_knot/leaded_by_knot \
11+
run function gm4_reeling_rods:hooked_entity/leash_knot/change_leader
12+
13+
kill @s
14+
15+
execute at @p[tag=gm4_reeling_rods.player] run playsound minecraft:entity.leash_knot.place neutral @a[distance=..16] ~ ~ ~

gm4_reeling_rods/beet.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ version: 1.0.X
55
data_pack:
66
load: .
77
overlays:
8+
- formats:
9+
min_inclusive: 1
10+
max_inclusive: 71
11+
min_format: 1
12+
max_format: 71
13+
directory: backport_71
814
- formats:
915
min_inclusive: 1
1016
max_inclusive: 88

gm4_reeling_rods/data/gm4_reeling_rods/function/hooked_entity/leash_knot/action.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ execute at @s as @e[type=#gm4_reeling_rods:leashable,distance=..12] \
1212

1313
kill @s
1414

15-
execute at @p[tag=gm4_reeling_rods.player] run playsound minecraft:entity.leash_knot.place neutral @a[distance=..16] ~ ~ ~
15+
execute at @p[tag=gm4_reeling_rods.player] run playsound minecraft:item.lead.tied neutral @a[distance=..16] ~ ~ ~

0 commit comments

Comments
 (0)