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.

cyberpwn

Members
  • Joined

  • Last visited

  1. in an event checking the block being harvested, i need a way to render digging fx and destroy fx. public class Handler { @ForgeSubscribe public void onBlockHarvest(HarvestDropsEvent event) { if(event.block == Block.oreIron && event.harvester.getCurrentEquippedItem().itemID == Boom.blazePickaxe.itemID) { event.drops.clear(); event.drops.add(new ItemStack(Item.ingotIron)); //something to render digging fx with the flame particle using event.block } } }
  2. is @SubscribeEvent something to import or a placeholder...?
  3. Lets say i have a pickaxe i am making, and i would like it to drop a diamond block when mined cobblestone, or an axe drop charcoal when mined logs. Is there some sort of event on harvested, or would i override the block method dropped? Thankyou! Also i am new to the McForge forums, so if i posted in the wrong place or diddnt title it correctly, please kindly let me know!

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.