Skip to content

Commit

Permalink
add attack.finger-guns.shoot sound effect
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Dec 27, 2023
1 parent d579b52 commit 58a9219
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ scoreboard players set @s attack.clock.i -1
scoreboard players operation @s attack.speed.z = #attack-finger-guns attack.speed.z

# Play bullet shoot sound
playsound minecraft:entity.snowball.throw master @a ~ ~ ~ 3 1
# playsound omega-flowey:attack.finger-guns.shoot hostile @a ~ ~ ~ 5 1
# TODO: this is really loud... need to decrease the volume of the file itself
playsound omega-flowey:attack.finger-guns.shoot hostile @a ~ ~ ~ 5 1

# Set pitch and yaw from input
execute store result entity @s Rotation[0] float 0.01 run data get storage attack:finger-guns yaw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function entity:group/copy with storage group

# Play laser sound (blink) once
playsound omega-flowey:attack.finger-guns.laser hostile @a ~ ~ ~ 3 1 1
playsound omega-flowey:attack.finger-guns.laser hostile @a ~ ~ ~ 5 1 1

# Remove tags
tag @s remove finger-guns-laser-new
9 changes: 9 additions & 0 deletions resourcepack/assets/omega-flowey/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@
}
]
},
"attack.finger-guns.shoot": {
"sounds": [
{
"name": "omega-flowey:mus_sfx_a_bullet",
"volume": 1,
"pitch": 1
}
]
},
"attack.friendliness-pellets.activate": {
"sounds": [
{
Expand Down
Binary file not shown.

0 comments on commit 58a9219

Please sign in to comment.