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.

NinjaNick95

Members
  • Joined

  • Last visited

  1. Good catch, thank you. It took a few hours to figure out, but a custom class extending ItemTippedArrow worked like a charm. Appreciate the help! (Solved)
  2. Looked up registry replacement and I'm not sure how it helps here. I could create a custom bow class, extending ItemBow, and override the onPlayerStoppedUsing method, but I'd prefer to not create custom items either way.
  3. Hello, I've been looking through the source code and forge documentation for most of the day trying to figure out how I can accomplish this. From what I can tell a coremod is the only way to do this currently. This is because the code that removes a fired arrow from the player's inventory is in the onPlayerStoppedUsing method of ItemBow.class and not included in the ArrowNock or ArrowLoose events: From ItemBow.class: if (!flag1 && !entityplayer.capabilities.isCreativeMode) { itemstack.shrink(1); if (itemstack.isEmpty()) { entityplayer.inventory.deleteStack(itemstack); } } ^Flag1 checks if ammo is of the ItemArrow class specifically (TippedArrow is its own class so it fails this check). This is probably the easiest place to modify to allow tipped arrows to work with Infinity. Reflection is a completely new concept to me but from what I'm reading it doesn't look like it would work for this. Please correct me if I'm wrong.

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.