Started by
_Ness
on
Topic category: Advanced modding
Hi, I'm trying to allow my custom model mob to display the item in its hand, I know this was possible in previous versions, but I can't figure out what lines of the code I need to mess with in order for this to work, can anyone help me please ? Thanks in advance.
Definitely the version/modloader difference, iirc minecraft's rendering system as a whole was nearly completely rewritten in 1.21
The solution I posted does not work anymore for 1.21.4. :/
Currently I am trying to get it working again
Here`s a solution for MCreator 2025.2, 1.21.4:
ArmedEntityRenderState
and implementArmedModel
. You should put this in your model`s code directly BEFORE importing it in MCreator, or else it will rewrite your changes. Here`s the example from my Java model code:getArm
andtranslateToHand
functions.LivingEntityRenderState
withArmedEntityRenderState
:ItemInHandLayer
(don`t forget about imports):extractArmedEntityRenderState
to theextractRenderState
method, as in this example:setupAnim
part at the end of your entity renderer code, or else your animations won`t work at all. Here`s what I did:Hope this helps!
@Timson what do you mean "model code"? What is that and how do you edit it?
I think it refers to the model's file that you export from blockbench. Using various tools such as notepad, you can open and edit it.
@ktosiowy ktos It`s a .java model file. @Catnip is absolutely right. You can edit it with any text editor. Just make sure you do it BEFORE importing this model file in MCreator
@Timson can you make a proper guide for mcreator 2024.x i cant understand the guild on page 1
@idkwhattoput what can`t you understand exactly?
@Timson Honestly, I don't understand anything either. The Java model code doesn't throw an error, let alone render the mob. Is this method compatible with version 1.20.1? Could you make a video tutorial?
@RtCd I already specified that my solution is for 1.21.4. For older versions please refer to older solutions in this thread, provided by @a_random_someone and @BlueAwesomeDinosaur.