Posted December 9, 20186 yr 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?
December 9, 20186 yr 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
December 9, 20186 yr Author Alright, I'll do that! thanks alot m8! Edited December 9, 20186 yr by tebreca
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.