File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/main/java/mod/acgaming/extrasounds/sound Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 66import net .minecraft .client .audio .PositionedSoundRecord ;
77import net .minecraft .init .SoundEvents ;
88import net .minecraft .item .ItemArmor ;
9+ import net .minecraft .item .ItemBlock ;
910import net .minecraft .item .ItemFood ;
1011import net .minecraft .item .ItemStack ;
1112import net .minecraft .util .SoundEvent ;
@@ -86,14 +87,19 @@ else if (checkOreDictPrefix(i, "dust"))
8687 }
8788 else if (checkOreDictPrefix (i , "snow" ))
8889 {
89- playSound (SoundEvents .BLOCK_SNOW_BREAK , 2.0F , (float ) ESConfig .soundVolume .esPickPlaceSnowSound );
90+ playSound (SoundEvents .BLOCK_SNOW_HIT , 2.0F , (float ) ESConfig .soundVolume .esPickPlaceSnowSound );
9091 }
9192 else
9293 {
9394 playSound (SoundEvents .BLOCK_STONE_HIT , 2.0F , (float ) ESConfig .soundVolume .esPickPlaceDefaultSound );
9495 }
9596 }
9697 }
98+ else if (stackIn .getItem () instanceof ItemBlock )
99+ {
100+ ItemBlock itemBlock = (ItemBlock ) stackIn .getItem ();
101+ playSound (itemBlock .getBlock ().getSoundType ().getHitSound (), 2.0F , (float ) ESConfig .soundVolume .esPickPlaceDefaultSound );
102+ }
97103 else if (stackIn .getItem () instanceof ItemFood )
98104 {
99105 playSound (SoundEvents .BLOCK_SLIME_STEP , 2.0F , (float ) ESConfig .soundVolume .esPickPlaceFoodSound );
You can’t perform that action at this time.
0 commit comments