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.

Lazauya

Members
  • Joined

  • Last visited

  1. So should I just create a pull request? It seems like there's already a good event for this sort of thing (LivingDestroyBlockEvent) and I could add a single line of code to fix this issue.
  2. I'm trying to determine when an enderman picks up a block. I've looked into subscribing to the EntityEvent, LivingEvent, LivingUpdateEvent, BlockEvent, EntityMobGriefingEvent, and some others. I looked a little bit into the mapped source for the EndermanEntity, and I actually found what appear to be oversights that make this task that much harder if not impossible. First, the EntityMobGriefingEvent isn't fired at the right time, and instead it's fired much earlier than when a block is actually trying to be broken/placed. Even if it were fired at the right time, then it still wouldn't be able to distinguish between and enderman picking up or placing down a block. It seems like either a new event is needed or the TakeBlockGoal should post a LivingDestroyBlockEvent. If anyone has any ideas on how to determine if the enderman picks up a block or not, please feel free to chime in. Otherwise, I would like to modify the Minecraft Forge EndermanEntity file myself and would appreciate any direction on this topic.
  3. I'm trying to make a mod. I have a lot of coding experience, so I'm very comfortable looking at source code for examples/explanations. I just have no idea where the Forge/Minecraft sources are located. For instance, if I want to make some kind of a multiblock structure, where could I look at the code for Nether portals?

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.