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.

CodeLined

Members
  • Joined

  • Last visited

Everything posted by CodeLined

  1. Yeah, the hitEntity function doesn't seem to be getting called; how would I go about using onLivingUpdateEvent?
  2. Hey, I started picking up minecraft modding recently and I wanted to get a weapon to apply a potion effect when it hits an entity, I looked around in ItemSword and found "hitEntity" So I tried the following (here is the whole class) public class ItemStoneSpear extends ItemSword{ public ItemStoneSpear(ToolMaterial p_i45356_1_) { super(p_i45356_1_); // TODO Auto-generated constructor stub } @Override public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase){ par1ItemStack.damageItem(1, par3EntityLivingBase); par2EntityLivingBase.addPotionEffect(new PotionEffect(Potion.poison.getId(),100 , 1)); return true; } } But it doesn't work no matter what I try. So if someone could help me out i'd love it a ton

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.