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

So I have an idea for a mod, but I'm unsure of the best approach for it, and I would like some guidance. 

I want to make a mod that allows you to collect netherrack with your fist, like punching trees to get wood.The way I would do it is make an event handler that checks for blocks being beroken, and if the block is netherrack, add drops. however, it seems wasteful to create a whole event handler for this one thing. Is there an easier way to do this? 

 

EDIT: Block.setHarvestLevel is unfortunately no longer an option in modern forge

Edited by theishiopian
Update status

Block.setHarvestLevel

Nvm i thought this would work but it can only remove the need of a high level pickaxe but not of a pickaxe at all.

Edited by Meldexun

Since my first attempt isn't working  i would use the HarvestCheck event. You only need to check if the block is netherrack and set the success to true.

  • Author
1 hour ago, Meldexun said:

Since my first attempt isn't working  i would use the HarvestCheck event. You only need to check if the block is netherrack and set the success to true.

Given the lack of an alternative, I think that's what I'll go with. Thanks anyways for your help. If anyone chances upon this thread with a better solution, I'm all ears.

Edited by DaemonUmbra
Cleaned up reference to thread hijack that was hidden

Okay sorry, ill follow the rules next time thank you for helping but yes i wont break them again ive only been on this like once without a account but thank you so much im sorry!

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.