Jump to content

Recommended Posts

Posted (edited)

Hey its me, the annoying sound guy :D so I've finally fixed all server issues with sounds playing etc. but now when it plays in eclipse the sound is perfect but when it plays on a minecraft client it becomes longer and WAY deeper. here is code:

package cerni;

import java.util.UUID;

import *****.proxy.CommonProxy;

import ibxm.Player;
import net.minecraft.client.Minecraft;
import net.minecraft.client.audio.SoundCategory;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.client.event.ClientChatReceivedEvent;
import net.minecraftforge.client.event.RenderGameOverlayEvent.Chat;
import net.minecraftforge.client.event.sound.SoundEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.ServerChatEvent;
import net.minecraftforge.event.entity.living.LivingDeathEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

@Mod(modid = Main.MOD_ID, name = Main.NAME, version = Main.VERSION)
public class Main {
	public static final String MOD_ID = "zillexcm";
	public static final String NAME = "*****";
	public static final String VERSION = "0.1";
	public String msg;
	
	@Instance
	
	public static Main instance;
	
    @Mod.EventHandler
	
	public void init(FMLInitializationEvent event) {
    	MinecraftForge.EVENT_BUS.register((Object)this);
	}
    
    
    
    		@SubscribeEvent
    		
    		public void onDeath(final ClientChatReceivedEvent event) {
    			this.msg = event.message.getUnformattedText();
    			
    			if(this.msg.contains("Nostos")) {
    				Minecraft.getMinecraft().thePlayer.playSound("zillexcm:sounds.jigglypuff", 3.5F, 0.2F);
    			}
    		}
    

}

Thanks!

Edited by Zillex_
Posted (edited)
14 hours ago, jabelar said:

Why are you using a 0.2F for the pitch value? That will make it sound slow and deep...

oh... what should i use? lol

 

edit nevermind 1.0 is default, THANKS

Edited by Zillex_

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.