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

Would there be any way to change the hardness value of a meta block, like diorite?

If you want to manipulate vanilla blocks you have two ways - replace vanilla and write whatever you want, or use Events.

 

To change hardness of block you can use PlayerEvent.BreakSpeed, but that will be only for players, not e.g explosions.

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

I had a reason to replace obsidian with a custom version in order for it to work properly in a dimension mod I have.  My custom obsidian had the exact same properties as original obsidian but it enabled me to have it respond differently for portal creation. 

 

I watched events to see when a block was placed or interacted with in any way.  Then if the block was vanilla obsidian, i would change it to my custom version as well as do a small iterative search that replicated itself for each obsidian in the area found.

 

This worked very well, but the world isn't very populated with obsidian.  In your case if the block you are changing is very common, this might get ugly the first time it propagates.

Long time Bukkit & Forge Programmer

Happy to try and help

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.