Started by
gustavowizard123
on
Topic category: Help with Minecraft modding (Java Edition)
hey guys how do i create a child mob with different size? smaller child?
MC 1.15 Mcreator 2020
thanks!
Topic category: Help with Minecraft modding (Java Edition)
hey guys how do i create a child mob with different size? smaller child?
MC 1.15 Mcreator 2020
thanks!
could i just change something here i do i need a PreRender or something?
yep https://mcreator.net/forum/52031/how-add-babychild-model-my-mob
'yep' what? i dont get it.
vanilla minecraft does something similar except it makes the head a bit bigger than the body to simulate a child.
yeah but i could not do it, i look into the codes and i dont see anything i could use my code... you said something about this before, can you light my way ?
btw- i will def credit you on my mod when its done, you are one of the few people that are helping me, thank you very much
when you say you could not do it, do you mean your model doesn't know its a child?
you need to override EntityLivingBase::isChild method. RenderLivingBase will pass that flag onto your model class so your model class can render your entity accordingly. if the above is done, you just do something like
in your model's render method
oooh wait i think i learn something with you just said, yet i cant find the EntityLivingBase::isChild method on the code, the only part with child i see is this
@Override
public AgeableEntity createChild(AgeableEntity ageable) {
return (CustomEntity) entity.create(this.world);
}
here is the hole entity
lol it actually worked with just that simple code on the reder.. the child is scaled now, but i notice it wont grow lol.. i supose i need something else to make it grow too?
thanks again btw!
lol i think it actually grows it just took like 10min wow cool! thanks a lot friend!
you have to implement your own isChild method. add something like this in your entity class:
oh? but its already growing i need that for what again?
thanks
To determine when it will be an adult.
hello is not programmed how I use this