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.

zekro

Members
  • Joined

  • Last visited

  1. Hey! Currently, I am working on a mod which allows binding to Discord RPC to show current game State in Discord. This shall be a pure Client-Mod, so I can only rely on Client Side Events. Currently, I am subscribing to the more generic PlayerEvent which notifies on every player activity taking place on the server, as I get from the documentation. I discovered, that there is an event class called EntityJoinWorldEvent, which has the following description: EntityJoinWorldEvent is fired when an Entity joins the world. This event is fired whenever an Entity is added to the world in World.loadEntities(Collection), WorldServer.loadEntities(Collection) World.joinEntityInSurroundings(Entity), and World.spawnEntity(Entity). That approach would be more selective and straightforward as just hooking all player events, but I could not found any corresponding event for entities leaving/quitting the world, which leaves me again on just hooking all player events. Here you can see how the event hook is currently implemented. Is there any way to get notified when a player joins or leaves the server world without using server side events?
  2. Is there an easy way to get if an Entity / EntityLivingBase is friendly or agressive against players?

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.