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.

DHerls

Members
  • Joined

  • Last visited

  1. I am trying to add an armor set so that if the player has it on, they can break any block with any pickaxe. I found the canHarvestBlock method in the ForgeHooks class. I was wondering how I could add another check to see if the player is wearing the armor. Thanks in advance for any help.
  2. Thanks for that, but that only registers when I'm swinging at an entity. I was looking for something that happens whenever I swing the sword, regardless of what I'm pointing at. Thank you for your help though.
  3. Hi, I am trying to make a sword that damages the player when they swing the sword. So far, I have been unable to figure out how to do that. If anyone could help point me in the right direction, that would be great. Thanks! EDIT: I figured out how to check if the player is swinging the sword. You use the method @Override public boolean onEntitySwing(EntityLivingBase entityLiving, ItemStack stack) { //What you want here return false; } in the new sword class. However, I still need to figure out how to damage the player.

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.