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

titls say all, and i tried

@SubscribeEvent
    public void onEntityDeath(LivingDeathEvent e) {
	    //if(e.source.getSourceOfDamage() instanceof EntityPlayer) {
	    	this.ClassFinder.NotifierSystem.NotificationQuery.add(new Notification("Killed Entity:\n" + "test"));
	    //}
    }

the NotifierSystem send String on game 

and the Notification only showup when player kill an entity on server

never work on player kill a player

(also i wanna get their name)

any way to do this?

#nothing on google

Edited by mkcoldwofl

  • Author

so there is really no way to do it?

and i dont understand what means 

8 minutes ago, diesieben07 said:

does not know where damage comes from.

the client-side player is the one who killing another player

why the client does not know? 

at least i think the client will know the player kill some `Object` but dont know what `Object` is it
there is no event for that?

Edited by mkcoldwofl

  • Author

okay thanks, then any event fire when player get damage/die with any reason?

Edited by mkcoldwofl

  • Author
23 minutes ago, mkcoldwofl said:

okay thanks, then any event fire when player get damage/die with any reason?

Sill not work :(

i want to detect when other player get damaged or something, not only entity

8 hours ago, mkcoldwofl said:

Sill not work :(

i want to detect when other player get damaged or something, not only entity

Wait, what do you mean by not working? The event fires for every living entity attack, but you should be able to check if the entity was a player. Are you saying it doesn't work because it doesn't fire, or are you saying that you didn't like how it was firing for all entities?

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.