Soooounds~

This commit is contained in:
Lizbeth Rika committed 2014-10-09 22:25:21 +01:00
1 parent 96746c9c35
commit 0d95b890b1
16 files changed
+50 -26

No files matched your search

@@ -45,6 +45,7 @@ public class SubTileAgricarnation extends SubTileFunctional {
supertile.getWorldObj().scheduleBlockUpdate(x, y, z, block, 1);
if(ConfigHandler.blockBreakParticles)
supertile.getWorldObj().playAuxSFX(2005, x, y, z, 6 + supertile.getWorldObj().rand.nextInt(4));
supertile.getWorldObj().playSoundEffect(x, y, z, "botania:agricarnation", 0.1F, 0.5F + (float) Math.random() * 0.5F);
break;
}
@@ -48,6 +48,7 @@ public class SubtileOrechid extends SubTileFunctional {
supertile.getWorldObj().setBlock(coords.posX, coords.posY, coords.posZ, block, meta, 1 | 2);
if(ConfigHandler.blockBreakParticles)
supertile.getWorldObj().playAuxSFX(2001, coords.posX, coords.posY, coords.posZ, Block.getIdFromBlock(block) + (meta << 12));
supertile.getWorldObj().playSoundEffect(supertile.xCoord, supertile.yCoord, supertile.zCoord, "botania:orechid", 2F, 1F);
mana -= COST;
sync();
@@ -52,6 +52,7 @@ public class SubTileEndoflame extends SubTileGenerating {
this.burnTime = burnTime / 2;
stack.stackSize--;
supertile.getWorldObj().playSoundEffect(supertile.xCoord, supertile.yCoord, supertile.zCoord, "botania:endoflame", 0.2F, 1F);
if(stack.stackSize == 0)
item.setDead();
@@ -50,6 +50,7 @@ public class SubTileGourmaryllis extends SubTileGenerating {
int val = ((ItemFood) stack.getItem()).func_150905_g(stack);
storedMana = val * val * 18;
cooldown = val * 10;
supertile.getWorldObj().playSoundEffect(supertile.xCoord, supertile.yCoord, supertile.zCoord, "random.eat", 0.2F, 0.5F + (float) Math.random() * 0.5F);
sync();
}
@@ -58,6 +58,7 @@ public class SubTileHydroangeas extends SubTileGenerating {
supertile.getWorldObj().setBlockToAir(positions[0], supertile.yCoord, positions[1]);
didSomething = true;
burnTime += getBurnTime();
playSound();
}
if(didSomething)
@@ -86,6 +87,10 @@ public class SubTileHydroangeas extends SubTileGenerating {
public Block getBlockToSearchBelow() {
return null;
}
public void playSound() {
supertile.getWorldObj().playSoundEffect(supertile.xCoord, supertile.yCoord, supertile.zCoord, "random.drink", 0.2F, 0.5F + (float) Math.random() * 0.5F);
}
public int getBurnTime() {
return 10;
@@ -41,6 +41,7 @@ public class SubTileKekimurus extends SubTileGenerating {
else supertile.getWorldObj().setBlockMetadataWithNotify(x, y, z, meta, 1 | 2);
supertile.getWorldObj().playAuxSFX(2001, x, y, z, Block.getIdFromBlock(block) + (meta << 12));
supertile.getWorldObj().playSoundEffect(supertile.xCoord, supertile.yCoord, supertile.zCoord, "random.eat", 1F, 0.5F + (float) Math.random() * 0.5F);
this.mana += mana;
sync();
return;
@@ -49,6 +49,11 @@ public class SubTileThermalily extends SubTileHydroangeas {
public Block getBlockToSearchBelow() {
return ConfigHandler.thermalilyObsidian ? Blocks.obsidian : null;
}
@Override
public void playSound() {
supertile.getWorldObj().playSoundEffect(supertile.xCoord, supertile.yCoord, supertile.zCoord, "botania:thermalily", 0.2F, 1F);
}
@Override
public int getDelayBetweenPassiveGeneration() {
@@ -330,6 +330,7 @@ public class TileSpreader extends TileSimpleInventory implements IManaCollector,
if(!worldObj.isRemote) {
mana -= burst.getStartingMana();
worldObj.spawnEntityInWorld(burst);
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:spreaderFire", 0.2F, 0.7F + 0.3F * (float) Math.random());
}
canShootBurst = false;
@@ -35,34 +35,36 @@ public class ItemDiviningRod extends ItemMod implements IManaUsingItem {
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer p) {
if(ManaItemHandler.requestManaExact(stack, p, COST, true) && world.isRemote) {
int x = MathHelper.floor_double(p.posX);
int y = MathHelper.floor_double(p.posY);
int z = MathHelper.floor_double(p.posZ);
int range = 15;
long seedxor = world.rand.nextLong();
if(ManaItemHandler.requestManaExact(stack, p, COST, true)) {
if(world.isRemote) {
int x = MathHelper.floor_double(p.posX);
int y = MathHelper.floor_double(p.posY);
int z = MathHelper.floor_double(p.posZ);
int range = 15;
long seedxor = world.rand.nextLong();
Botania.proxy.setWispFXDepthTest(false);
for(int i = -range; i < range + 1; i++)
for(int j = -range; j < range + 1; j++)
for(int k = -range; k < range + 1; k++) {
int xp = x + i;
int yp = y + j;
int zp = z + k;
Block block = world.getBlock(xp, yp, zp);
int meta = world.getBlockMetadata(xp, yp, zp);
ItemStack orestack = new ItemStack(block, 1, meta);
for(int id : OreDictionary.getOreIDs(orestack)) {
String s = OreDictionary.getOreName(id);
if(s.matches("^ore.+")) {
Random rand = new Random(s.hashCode() ^ seedxor);
Botania.proxy.wispFX(world, xp + world.rand.nextFloat(), yp + world.rand.nextFloat(), zp + world.rand.nextFloat(), rand.nextFloat(), rand.nextFloat(), rand.nextFloat(), 0.25F, 0F, 8);
break;
Botania.proxy.setWispFXDepthTest(false);
for(int i = -range; i < range + 1; i++)
for(int j = -range; j < range + 1; j++)
for(int k = -range; k < range + 1; k++) {
int xp = x + i;
int yp = y + j;
int zp = z + k;
Block block = world.getBlock(xp, yp, zp);
int meta = world.getBlockMetadata(xp, yp, zp);
ItemStack orestack = new ItemStack(block, 1, meta);
for(int id : OreDictionary.getOreIDs(orestack)) {
String s = OreDictionary.getOreName(id);
if(s.matches("^ore[A-Z].+")) {
Random rand = new Random(s.hashCode() ^ seedxor);
Botania.proxy.wispFX(world, xp + world.rand.nextFloat(), yp + world.rand.nextFloat(), zp + world.rand.nextFloat(), rand.nextFloat(), rand.nextFloat(), rand.nextFloat(), 0.25F, 0F, 8);
break;
}
}
}
}
Botania.proxy.setWispFXDepthTest(true);
p.swingItem();
Botania.proxy.setWispFXDepthTest(true);
p.swingItem();
} else world.playSoundAtEntity(p, "botania:divinationRod", 1F, 1F);
}
return stack;
+7 -1
View File
@@ -1,11 +1,14 @@
{
"airRod": { "category": "neutral", "sounds":["airRod"] },
"agricarnation": { "category": "neutral", "sounds":["agricarnation"] },
"altarCraft": { "category": "neutral", "sounds":["altarCraft"] },
"bifrostRod": { "category": "neutral", "sounds":["bifrostRod"] },
"ding": { "category": "neutral", "sounds":["ding"] },
"divaCharm": { "category": "neutral", "sounds":["divaCharm"] },
"divinationRod": { "category": "neutral", "sounds":["divinationRod"] },
"enchanterBlock": { "category": "neutral", "sounds":["enchanterBlock"] },
"enchanterEnchant": { "category": "neutral", "sounds":["enchanterEnchant"] },
"endoflame": { "category": "neutral", "sounds":["endoflame"] },
"equipBauble": { "category": "neutral", "sounds":["equipBauble"] },
"gaiaTrap": { "category": "neutral", "sounds":["gaiaTrap"] },
"goldenLaurel": { "category": "neutral", "sounds":["goldenLaurel"] },
@@ -14,10 +17,13 @@
"lexiconPage": { "category": "neutral", "sounds":["lexiconPage"] },
"manaBlaster": { "category": "neutral", "sounds":["manaBlaster"] },
"manaPoolCraft": { "category": "neutral", "sounds":["manaPoolCraft"] },
"orechid": { "category": "neutral", "sounds":["orechid"] },
"runeAltarCraft": { "category": "neutral", "sounds":["runeAltarCraft"] },
"runeAltarStart": { "category": "neutral", "sounds":["runeAltarStart"] },
"spreaderFire": { "category": "neutral", "sounds":["spreaderFire"] },
"terraBlade": { "category": "neutral", "sounds":["terraBlade"] },
"terraformRod": { "category": "neutral", "sounds":["terraformRod"] },
"terraPickMode": { "category": "neutral", "sounds":["terraPickMode"] },
"terrasteelCraft": { "category": "neutral", "sounds":["terrasteelCraft"] }
"terrasteelCraft": { "category": "neutral", "sounds":["terrasteelCraft"] },
"thermalily": { "category": "neutral", "sounds":["thermalily"] }
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.