mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 13:09:42 +00:00
Added sound effects to the petal apothecary.
This commit is contained in:
1 parent
d9960f6d6e
commit
c0a269636f
1 file changed
+3
@@ -63,6 +63,7 @@ public class TileAltar extends TileSimpleInventory implements ISidedInventory {
|
||||
stackToPut.stackSize = 1;
|
||||
setInventorySlotContents(i, stackToPut);
|
||||
didChange = true;
|
||||
worldObj.playSoundAtEntity(item, "game.neutral.swim.splash", 0.1F, 1F);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -126,6 +127,8 @@ public class TileAltar extends TileSimpleInventory implements ISidedInventory {
|
||||
float red = color.getRed() / 255F;
|
||||
float green = color.getGreen() / 255F;
|
||||
float blue = color.getBlue() / 255F;
|
||||
if(Math.random() >= 0.75F)
|
||||
worldObj.playSoundEffect(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5, "game.neutral.swim.splash", 0.1F, 10F);
|
||||
Botania.proxy.sparkleFX(worldObj, xCoord + 0.5 + Math.random() * 0.4 - 0.2, yCoord + 1, zCoord + 0.5 + Math.random() * 0.4 - 0.2, red, green, blue, (float) Math.random(), 10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user