Added sound effect for sap

This commit is contained in:
modmuss50 2016-02-20 22:56:58 +00:00
parent 0522e9539f
commit c5393d3f2b
4 changed files with 6 additions and 0 deletions

View file

@ -143,6 +143,7 @@ public class BlockRubberLog extends Block implements ITexturedBlock {
if(state.getValue(HAS_SAP)){
if(state.getValue(SAP_SIDE) == side){
worldIn.setBlockState(pos, state.withProperty(HAS_SAP, false).withProperty(SAP_SIDE, EnumFacing.getHorizontal(0)));
worldIn.playSoundAtEntity(playerIn, "techreborn:sap_extract", 0.8F, 1F);
if(!worldIn.isRemote){
Random rand = new Random();
BlockPos itemPos = pos.offset(side);