Started by
Gaansey
on
Topic category: Advanced modding
Just a question, how would you be able to change the scale of a mob, for instance a creeper to be much smaller in MCreator?
Topic category: Advanced modding
Just a question, how would you be able to change the scale of a mob, for instance a creeper to be much smaller in MCreator?
If you mean scale of the model itself, use GL11.glScalef(scale, scale, scale) in its renderer
@#1 Thanks, I'll see how it goes
where i should put this? work on 1.10? because i made a flying mob, and the code from my aquatic/terrestrial mobs (that breed childs) dont work for soem reason, dont render the mob and crash Mcreator too, (witch i never seen happen before), so im trying to just find a line to scale the flying mob, i put this:
GL11.glScalef(2F, 2F, 2F);
and i try to put also here, it compile ok but Mob is not scaled:
You have to override method preRenderCallback() and do it there, in the renderer.
the 'renderer' is 'public void registerRenderers' or 'public void render' ? im so confused thats why i put on both...
how i override?
if you mean do this: when i do it crashed Mcreator and the texture is invisible:
there is also this GlStateManager, i was using this fine on the other mobs, i cant undersand why it wont work on the flying mob :/
i tried this now, as you said, still no size change
Post all you have - the full code, the crash reports /logs from the crashes you mentioned before, etc...
there is no crash report, no compilations errors now, with those 2 codes above, none of them render the model on the scale i put there (2F) - it renders with regular size. what i want to know is how to scale the flying mob. thanks again!
well i figger it out, that code NEED a mob that can generate childs, i manage to pull it out using GIState instead of this G11 stuff... but now ALL my mobs must breed if i want to scale then.. well thats not so bad since they only breed with the player actions lol i
Well, then you have done something bad because what I have written to you should work and (actually even works, look at Giant) for any Entity.
this code wont work because the mob cant breed, this code is for breeding, if i make the flying mob breed on Mcreator, or give the code manually after, it crashed Mcreator and wont render the mob... i dont get it makes no sense...
like if i scale down the flying mob it wont fly, if it fly it wont scale down... :( :(