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

Hello everyone! I am developing mod and I have a custom crossbow in it. It works fine, but I want to increase its damage. I've tried a lot of things, but still have no idea how to make it. Pls help.ย 

Thank you in advance!

unfortunately this is hardcoded in vanilla via private static methods in the CrossbowItem class,
the best way would be to copy these methods and edit them in your Item class the methods you need to copy are:

  • CrossbowItem.getArrow, CrossbowItem.shootProjectile and CrossbowItem.performShooting

then you be able to modify the AbstractArrow in your custom getArrow method, you can set the Arrow damage via AbstractArrow#setBaseDamage
after that you also need to override #use, you can copy the logic from vanilla but note you need to call you custom performShooting there

you will probably need a few AT's if you don't want to copy the complete vanilla logic from the Crossbow,
since there are several private static methods that you have to call from your custom methods (i told you above)

Edited by Luis_ST

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.