Added a bunch of sounds.

This commit is contained in:
Lizbeth Rika committed 2014-08-06 20:25:11 +01:00
1 parent 240fa3be96
commit f577c4dcf5
41 files changed
+48 -27

No files matched your search

@@ -136,7 +136,7 @@ public class SubTileFunctional extends SubTileEntity {
return false;
knownMana = mana;
player.worldObj.playSoundAtEntity(player, "random.orb", 0.1F, 1F);
player.worldObj.playSoundAtEntity(player, "botania:ding", 0.1F, 1F);
return super.onWanded(player, wand);
}
@@ -150,7 +150,7 @@ public class SubTileGenerating extends SubTileEntity {
sync();
knownMana = mana;
player.worldObj.playSoundAtEntity(player, "random.orb", 0.1F, 1F);
player.worldObj.playSoundAtEntity(player, "botania:ding", 0.1F, 1F);
return super.onWanded(player, wand);
}
@@ -127,7 +127,7 @@ public class BlockPistonRelay extends BlockMod implements IWandable, ILexiconabl
if(!player.isSneaking()) {
playerPositions.put(player.getCommandSenderName(), getCoordsAsString(world.provider.dimensionId, x, y, z));
world.playSoundEffect(x, y, z, "random.orb", 0.5F, 1F);
world.playSoundEffect(x, y, z, "botania:ding", 0.5F, 1F);
} else {
dropBlockAsItem(world, x, y, z, new ItemStack(this));
world.setBlockToAir(x, y, z);
@@ -114,7 +114,7 @@ public class TileAltar extends TileSimpleInventory implements ISidedInventory {
}
public void craftingFanciness() {
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "random.levelup", 1F, 1F);
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:altarCraft", 1F, 1F);
for(int i = 0; i < 25; i++) {
float red = (float) Math.random();
float green = (float) Math.random();
@@ -110,7 +110,7 @@ public class TileEnchanter extends TileMod implements IManaReceiver {
float blue = (float) Math.random();
Botania.proxy.wispFX(worldObj, xCoord + 0.5, yCoord + 0.5, zCoord + 0.5, red, green, blue, (float) Math.random() * 0.15F + 0.15F, (float) (Math.random() - 0.5F) * 0.25F, (float) (Math.random() - 0.5F) * 0.25F, (float) (Math.random() - 0.5F) * 0.25F);
}
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "mob.blaze.breathe", 0.5F, 10F);
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:enchanterBlock", 0.5F, 10F);
}
switch(stage) {
@@ -131,7 +131,7 @@ public class TileEnchanter extends TileMod implements IManaReceiver {
short enchantLvl = enchant.getShort("lvl");
if(!hasEnchantAlready(enchantId)) {
this.enchants.add(new EnchantmentData(enchantId, enchantLvl));
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "random.orb", 1F, 1F);
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:ding", 1F, 1F);
addedEnch = true;
break;
}
@@ -236,7 +236,7 @@ public class TileEnchanter extends TileMod implements IManaReceiver {
}
public void craftingFanciness() {
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "random.levelup", 1F, 1F);
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:enchanterEnchant", 1F, 1F);
for(int i = 0; i < 25; i++) {
float red = (float) Math.random();
float green = (float) Math.random();
@@ -86,8 +86,6 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor
if(worldObj.isRemote && manaToGet > 0 && mana >= manaToGet) {
if(worldObj.rand.nextInt(20) == 0) {
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "mob.creeper.live", 1F, 1F);
Vector3 vec = Vector3.fromTileEntityCenter(this);
Vector3 endVec = vec.copy().add(0, 2.5, 0);
Botania.proxy.lightningFX(worldObj, vec, endVec, 2F, 0x00948B, 0x00E4D7);
@@ -125,7 +123,7 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor
}
if(manaToGet != this.manaToGet) {
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "random.orb", 1F, 1F);
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:runeAltarStart", 1F, 1F);
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}
@@ -179,7 +177,7 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor
}
public void craftingFanciness() {
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "random.levelup", 1F, 1F);
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:runeAltarCraft", 1F, 1F);
for(int i = 0; i < 25; i++) {
float red = (float) Math.random();
float green = (float) Math.random();
@@ -154,8 +154,8 @@ public class TilePool extends TileMod implements IManaPool, IKeyLocked {
public void craftingFanciness() {
if(soundTicks == 0) {
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "random.levelup", 0.25F, 4F);
soundTicks = 10;
worldObj.playSoundEffect(xCoord, yCoord, zCoord, "botania:manaPoolCraft", 0.4F, 4F);
soundTicks = 6;
}
for(int i = 0; i < 25; i++) {
@@ -287,7 +287,7 @@ public class TilePool extends TileMod implements IManaPool, IKeyLocked {
((EntityPlayerMP) player).playerNetServerHandler.sendPacket(new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, -999, nbttagcompound));
}
worldObj.playSoundAtEntity(player, "random.orb", 0.11F, 1F);
worldObj.playSoundAtEntity(player, "botania:ding", 0.11F, 1F);
}
public void renderHUD(Minecraft mc, ScaledResolution res) {
@@ -275,7 +275,7 @@ public class TileSpreader extends TileSimpleInventory implements IManaCollector,
if(player instanceof EntityPlayerMP)
((EntityPlayerMP) player).playerNetServerHandler.sendPacket(new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, -999, nbttagcompound));
}
worldObj.playSoundAtEntity(player, "random.orb", 0.1F, 1F);
worldObj.playSoundAtEntity(player, "botania:ding", 0.1F, 1F);
} else {
MovingObjectPosition pos = raytraceFromEntity(worldObj, player, true, 5);
if(pos != null && pos.hitVec != null && !worldObj.isRemote) {
@@ -40,7 +40,7 @@ public final class TerrasteelCraftingHandler {
if(time != -1) {
doParticles(item, time);
if(time == TIME)
item.worldObj.playSoundAtEntity(item, "random.levelup", 1F, 1F);
item.worldObj.playSoundAtEntity(item, "botania:terrasteelCraft", 1F, 1F);
getManaFromPools : {
int x = MathHelper.floor_double(item.posX);
@@ -66,7 +66,7 @@ public class ItemLaputaShard extends ItemMod implements ILensEffect, ITinyPlanet
@Override
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) {
if(par5 < 160 && !par3World.provider.isHellWorld) {
par3World.playSound(par4 + 0.5D, par5 + 0.5D, par6 + 0.5D, "mob.zombie.remedy", 1.0F + par3World.rand.nextFloat(), par3World.rand.nextFloat() * 0.7F + 1.3F, false);
par3World.playSound(par4 + 0.5D, par5 + 0.5D, par6 + 0.5D, "botania:laputaStart", 1.0F + par3World.rand.nextFloat(), par3World.rand.nextFloat() * 0.7F + 1.3F, false);
spawnBurst(par3World, par4, par5, par6, par1ItemStack);
par1ItemStack.stackSize--;
}
@@ -99,7 +99,7 @@ public class ItemManaMirror extends ItemMod implements IManaItem, ICoordBoundIte
TileEntity tile = par3World.getTileEntity(par4, par5, par6);
if(tile != null && tile instanceof IManaPool) {
bindPool(par1ItemStack, tile);
par3World.playSoundAtEntity(par2EntityPlayer, "random.orb", 1F, 1F);
par3World.playSoundAtEntity(par2EntityPlayer, "botania:ding", 1F, 1F);
return true;
}
}
@@ -78,7 +78,7 @@ public class ItemRainbowRod extends ItemMod implements IManaUsingItem {
}
if(count > 0) {
par2World.playSoundAtEntity(par3EntityPlayer, "random.levelup", 0.5F, 0.25F);
par2World.playSoundAtEntity(par3EntityPlayer, "botania:bifrostRod", 0.5F, 0.25F);
ManaItemHandler.requestManaExact(par1ItemStack, par3EntityPlayer, MANA_COST, false);
par1ItemStack.setItemDamage(TIME);
}
@@ -85,7 +85,7 @@ public class ItemTornadoRod extends ItemMod {
player.fallDistance = 0F;
player.motionY = 1.25;
stack.setItemDamage(Math.min(max, stack.getItemDamage() + FALL_MULTIPLIER));
player.worldObj.playSoundAtEntity(player, "mob.blaze.breathe", 0.1F, 0.25F);
player.worldObj.playSoundAtEntity(player, "botania:airRod", 0.1F, 0.25F);
for(int i = 0; i < 5; i++)
Botania.proxy.wispFX(player.worldObj, player.posX, player.posY, player.posZ, 0.25F, 0.25F, 0.25F, 0.35F + (float) Math.random() * 0.1F, 0.2F * (float) (Math.random() - 0.5), -0.01F * (float) Math.random(), 0.2F * (float) (Math.random() - 0.5));
}
@@ -117,7 +117,7 @@ public class ItemTwigWand extends Item16Colors implements ICoordBoundItem {
if(meta != -1 && !par3World.isRemote) {
par3World.setBlock(par4, par5, par6, ModBlocks.enchanter, meta, 1 | 2);
par3World.playSoundEffect(par4, par5, par6, "random.levelup", 0.5F, 0.6F);
par3World.playSoundEffect(par4, par5, par6, "botania:enchanterBlock", 0.5F, 0.6F);
for(int i = 0; i < 50; i++) {
float red = (float) Math.random();
float green = (float) Math.random();
@@ -143,7 +143,7 @@ public class ItemTwigWand extends Item16Colors implements ICoordBoundItem {
if(par3World.isRemote)
par2EntityPlayer.swingItem();
par3World.playSoundAtEntity(par2EntityPlayer, "random.orb", 0.1F, 1F);
par3World.playSoundAtEntity(par2EntityPlayer, "botania:ding", 0.1F, 1F);
setTicksSinceSpreaderUse(par1ItemStack, 0);
wanded = true;
@@ -108,7 +108,7 @@ public abstract class ItemBauble extends ItemMod implements IBauble {
@Override
public void onEquipped(ItemStack stack, EntityLivingBase player) {
if(!player.worldObj.isRemote)
player.worldObj.playSoundAtEntity(player, "random.orb", 0.1F, 1.3F);
player.worldObj.playSoundAtEntity(player, "botania:equipBauble", 0.1F, 1.3F);
onEquippedOrLoadedIntoWorld(stack, player);
}
@@ -59,7 +59,7 @@ public class ItemDivaCharm extends ItemBauble implements IManaUsingItem {
event.entityLiving.isDead = false;
ManaItemHandler.requestManaExact(amulet, player, cost, true);
player.worldObj.playSoundAtEntity(player, "random.levelup", 1F, 1F);
player.worldObj.playSoundAtEntity(player, "botania:divaCharm", 1F, 1F);
double x = event.entityLiving.posX;
double y = event.entityLiving.posY;
@@ -42,7 +42,7 @@ public class ItemGoldenLaurel extends ItemBauble {
player.setHealth(player.getMaxHealth());
player.addPotionEffect(new PotionEffect(Potion.resistance.id, 300, 6));
player.addChatMessage(new ChatComponentTranslation("botaniamisc.savedByLaurel"));
player.worldObj.playSoundAtEntity(player, "random.levelup", 1F, 0.3F);
player.worldObj.playSoundAtEntity(player, "botania:goldenLaurel", 1F, 0.3F);
PlayerHandler.getPlayerBaubles(player).setInventorySlotContents(0, null);
}
}
@@ -86,7 +86,7 @@ public class ItemTerraPick extends ItemManasteelPick implements IManaItem {
if(level != 0) {
setEnabled(par1ItemStack, !isEnabled(par1ItemStack));
if(!par2World.isRemote)
par2World.playSoundAtEntity(par3EntityPlayer, "random.orb", 0.5F, 0.4F);
par2World.playSoundAtEntity(par3EntityPlayer, "botania:terraPickMode", 0.5F, 0.4F);
}
return par1ItemStack;
@@ -50,7 +50,7 @@ public class ItemTerraSword extends ItemManasteelSword implements ILensEffect {
EntityManaBurst burst = getBurst(player, par1ItemStack);
par2World.spawnEntityInWorld(burst);
ToolCommons.damageItem(par1ItemStack, 1, player, MANA_PER_DAMAGE);
par2World.playSoundAtEntity(player, "random.levelup", 0.4F, 1.4F);
par2World.playSoundAtEntity(player, "botania:terraBlade", 0.4F, 1.4F);
}
}
}
+23
View File
@@ -0,0 +1,23 @@
{
"airRod": { "category": "neutral", "sounds":["airRod"] },
"altarCraft": { "category": "neutral", "sounds":["altarCraft"] },
"bifrostRod": { "category": "neutral", "sounds":["bifrostRod"] },
"ding": { "category": "neutral", "sounds":["ding"] },
"divaCharm": { "category": "neutral", "sounds":["divaCharm"] },
"enchanterBlock": { "category": "neutral", "sounds":["enchanterBlock"] },
"enchanterEnchant": { "category": "neutral", "sounds":["enchanterEnchant"] },
"equipBauble": { "category": "neutral", "sounds":["equipBauble"] },
"gaiaTrap": { "category": "neutral", "sounds":["gaiaTrap"] },
"goldenLaurel": { "category": "neutral", "sounds":["goldenLaurel"] },
"laputaStart": { "category": "neutral", "sounds":["laputaStart"] },
"lexiconOpen": { "category": "neutral", "sounds":["lexiconOpen"] },
"lexiconPage": { "category": "neutral", "sounds":["lexiconPage"] },
"manaBlaster": { "category": "neutral", "sounds":["manaBlaster"] },
"manaPoolCraft": { "category": "neutral", "sounds":["manaPoolCraft"] },
"runeAltarCraft": { "category": "neutral", "sounds":["runeAltarCraft"] },
"runeAltarStart": { "category": "neutral", "sounds":["runeAltarStart"] },
"terraBlade": { "category": "neutral", "sounds":["terraBlade"] },
"terraformRod": { "category": "neutral", "sounds":["terraformRod"] },
"terraPickMode": { "category": "neutral", "sounds":["terraPickMode"] },
"terrasteelCraft": { "category": "neutral", "sounds":["terrasteelCraft"] }
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.