Hi,
Ok so two separate PC have the same effect. Here's an ugly little piece of code that have the same behavior. Maybe I just read the wrong tutorial!
@NetworkMod(clientSideRequired = true, serverSideRequired = true)
@Mod(modid = "Scratchpad", name = "Scratchpad", version = "0.1 Nothing")
public class Scratchpad
{
public int _tick;
@Instance("Scratchpad")
public static Scratchpad instance;
@EventHandler
public void load(FMLInitializationEvent event)
{
MinecraftForge.EVENT_BUS.register(new Scratchpad());
}
public Scratchpad()
{
}
@ForgeSubscribe
public void onLivingUpdateEvent(LivingUpdateEvent event)
{
_tick++;
if (_tick % 100 != 0) return;
if (event.entityLiving instanceof EntityPlayer)
{
EntityPlayer player = (EntityPlayer) event.entityLiving;
if (!player.worldObj.isRemote) return;
if (!player.username.equalsIgnoreCase("Foo")) return;
Minecraft.getMinecraft().sndManager.playSoundFX("mob.sheep.say", 1.0f, 1.0F);
}
}
}