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

I did some searching and all I found was this thread which is 3 years old. I want to edit the set of blocks which can be harvested without holding a tool. For example, I want the player to be unable to harvest dirt blocks without a shovel.

 

Is this possible to do? If so, does the method in the thread I linked to still work or is there a different way to do it? Is it possible to make a block breakable but not harvestable (like breaking stone with bare hands in vanilla) - or is it only possible to make a block unbreakable by hand?

 

Edit: Solved by using

PlayerEvent.BreakSpeed

to change how long it takes to break the block and

HarvestDropsEvent

to remove the drops for blocks which I want to be un-harvestable.

PlayerEvent.HarvestCheck

1.7.10 is no longer supported by forge, you are on your own.

  • Author

PlayerEvent.HarvestCheck

 

I tried this but it doesn't work. When I searched for it, I found this old thread which points out that

HarvestCheck

is not fired when trying to harvest something that can normally be harvested with bare hands.

You'll probably want to subscribe to

PlayerEvent.BreakSpeed

to slow down the breaking and

BlockEvent.HarvestDropsEvent

to remove the drops.

 

I do something similar here, but this prevents the block from being broken at all unless the player has the correct tool.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.