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.

Fury

Members
  • Joined

  • Last visited

  1. I'm making a mod called BadManners. Whenever you kill someone it sends a message with their name in it and follows with an "ez". Yes, I know I'm working in an ANCIENT version, but this version is most commonly used for PvP and the mod is directed towards the PvP community. Now, I'm using the onDeath event to find out the entity and see if it was killed by the player. This snippet of code works in singleplayer but whenever I go on a server getSourceOfDamage() always returns null. Is it perhaps that I can't get the people who died on a multiplayer server? @SubscribeEvent public void onDeath(LivingDeathEvent event) { attacker = event.source.getSourceOfDamage(); if (attacker != null) { if (attacker.getEntityId() == mc.thePlayer.getEntityId()) { mc.thePlayer.sendChatMessage(event.entity.getCommandSenderName() + " ez"); } } } (Attacker is defined as an entity). Thank you!

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.