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.

MadeByProxxy

Members
  • Joined

  • Last visited

Everything posted by MadeByProxxy

  1. Okay, thank you. How can I use .getSource? It doesnt exists with me. Yeah I know.. I looked at that line again and its really stupid.. Thanks
  2. Hello, maybe its a very simple question, but I havent used Forge long. Iam coding a mod for a server. But how can I get the player, which is killing the Enderman? @SubscribeEvent public void onKill(LivingDeathEvent event) { if (event.entityLiving.getName().equalsIgnoreCase(Minecraft.getMinecraft().thePlayer.getName())) { Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("Test1")); Entity e = event.entity; if (e instanceof EntityEnderman) { i++; Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("§7Enderman killed: §e§l" + i)); } } } The player will get the message if an Enderman dies, but it doesn't matter who killed the enderman. But the player should only get the message, if he kills an Enderman. How can I do this? I am using Forge 1.8.9-11.15.1.2318 Thanks. (Sorry for my bad english)

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.