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.

Possible to add mult hardness lvls to one block id or make block indestructible?

Featured Replies

Posted

Hey guys I'm just wondering if it was possible to set two block ids for one block or make the block indestructible once the block has been activated.

 

For example when my block is placed on the ground I want it to be able to be broken but once its been activated the block generates a structure and is placed at the top of the structure and made indestructible so the player can't cheat and make multiple structures using one block.

Hey guys I'm just wondering if it was possible to set two block ids for one block or make the block indestructible once the block has been activated.

 

For example when my block is placed on the ground I want it to be able to be broken but once its been activated the block generates a structure and is placed at the top of the structure and made indestructible so the player can't cheat and make multiple structures using one block.

Different metadata can have different hardness, so just change the metadata.

Note that setting hardness level to -1 renders the block indestructible.

 

OR

 

Use function provided by Forge Block.setBlockUnbreakable() (which does exactly the same as the first option but looks and reads nicer.

Use function provided by Forge Block.setBlockUnbreakable() (which does exactly the same as the first option but looks and reads nicer.

That however will do it for the entire block, not per metadata, unless a new override was added (not last I noticed?).

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.