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!