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.

JensUnoriginal

Members
  • Joined

  • Last visited

  1. So I'm developing my mod, but have run into a brick wall of sorts. I am trying to make it so that is an entity dies(In this case a skeleton) and the player kills it, it checks the players inventory for an item. If the player has the item it will replace it with another, but I cannot find a way to access the player's inventory with the LivingDropsEvent The code: Every time I call (drops is an instance of LivingDropsEvent) drops.source.anything().inventory.mainInventory I get an error. Any help is appreciated, thanks.
  2. Regardless of that fact that I am new at this, I feel moderately stupid. That fixed it perfectly. Have a good day.
  3. https://gist.github.com/anonymous/66d95b1f893c6b49ced7
  4. Ok, So I'm developing a mod(Obviously) and in this mod I have created an item than, when in hand and the player right clicks, shoots and Ender Pearl. This aspect of it works fine as I just had to override the onRightClick class, but my problem is this: When I throw the sword on the ground and retrieve it when I right click it acts as if I had an ender pearl in my hand and deletes the item(But throws the ender pearl normally). This had been confounding me for a few hours, any help would be appreciated. P.S. I'm not sure how to post the code in a drop down menu as I have seen many times, but if someone wants to see the code I can post it as plain old text. (I started this mod two days ago, and began modding 2 before that)

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.