Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi, I have this code:

 

public abstract class BaseWeapon extends ItemSword {

public BaseWeapon(ToolMaterial material) {
	super(material);
}

@Override
public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player,
		Entity entity) {

	if (!entity.isDead) {

		player.worldObj.playSoundAtEntity(player, Reference.MOD_ID + ":"
				+ this.getUnlocalizedName().substring(5) + "_hit", 1.0f,
				1.0f);
	}

	return super.onLeftClickEntity(stack, player, entity);
}
}

 

If i run a test server with no mods and connect to it, I hear the sounds playing, but when I use my normal minecraft client/server wich has a lot of mods, the sounds are no longer heard (or played?).

 

Is this a known thing or do you have any suggestion as how to resolve it other than try removing mods until i find the culprit?

 

This is a list of my mods:

 


  • 1.8
    animalsplus-1.3.jar
    antiqueatlas-4.0.1a-1.7.2.jar
    BackTools-5.1.0.jar
    BaseMetals-1.4.0.jar
    Chameleon-1.8-0.1.0.jar
    CodeChickenCore-1.8-1.0.5.34-universal.jar
    CrafableHorseArmour 1.2.jar
    decorationmegapack-1.18-1.8-1446.jar
    ExpTranslation-1.0.0-1.8.7.jar
    Fire's Clay Spawn 2.1.2.0.jar
    iChunUtil-5.4.0.jar
    justbackpacks-mc1.8-1.0.jar
    LunatriusCore-1.8-1.1.2.28-universal.jar
    MobAmputation-5.0.0.jar
    MoreEnchantments-1.8-1.3.2.1.jar
    Morpheus-1.8-2.0.41.jar
    MouseTweaks-2.5.0-mc1.8.jar
    MrCrayfishFurnitureModv3.4.8-build1(1.8).jar
    NotEnoughItems-1.8-1.0.5.82-universal.jar
    oldguns-1.3.0_x32.jar
    pablismod-1.0.jar
    parachutemod-1.8.0-3.1.2-96.jar
    redstonepaste-mc1.8-1.7.1.jar
    SmeltCycle-2.0.jar
    StalkerCreepers-1.8.jar
    StorageDrawers-1.8-2.1.8.jar
    [1.8] ChickenShed (v1.2.0).jar
    [1.8]ArmorStatusHUD-client-1.29.jar
    [1.8]bspkrsCore-universal-7.01.jar
    [1.8]DirectionHUD-client-1.24.jar

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.