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

Hello there,

 

So I've made this tool which "melts" down blocks. To make it look like it is actually melting it I have made a custom texture for the breaking overlay.

Does anyone know if there is any way I can add a custom breaking overlay?

I've stumbled across IBlockState::hasCustomBreakingProgress but I couldn't find anything about that either.

I'm guessing that's something else than what I'm looking for?

 

  • Author
1 hour ago, diesieben07 said:

There is no way to set a custom texture for the breaking progress, it is hardcoded in RenderGlobal#drawBlockDamageTexture.

If your block has a tile entity and custom TESR and you return true from both TileEntity#canRenderBreaking and Block#hasCustomBreakingProgress then your TESR can render the breaking texture, look at the vanilla chest for an example of that.

For blocks that do not have a TESR this is not possible.

Ah, I hate hardcoded things, is there a reason for the hard coding or is it safe for me to use asm on it

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.