Started by
Cursed_0010
on
Topic category: General Minecraft forum
Just use nerdys geckolib plugin its better.
Edited by Cursed_0010 on Tue, 10/18/2022 - 15:24
Topic category: General Minecraft forum
Just use nerdys geckolib plugin its better.
https://github.com/bernie-g/geckolib/wiki
?
Ok, ı learned codding and ı made animations thanks.
how did you get animations?
just saying "i learned coding nvm" doesnt help anyone else at all, you could tell us how
Chill guys i'll tell you how i made animations.
So you can edit your mob on mcreator,
that means you can make your own animations but if you do not know coding you can only make the mob's walk animation its rendered on bottom so there are a example fish animation (you can use this code for your shark, whale etc.)
this.arm1.rotateAngleY = MathHelper.cos(f * 0.4F) * 0.7F * f1 + 0.6981317F;
this.arm2.rotateAngleY = MathHelper.cos(f * 0.4F + (float) Math.PI) * 0.7F * f1 - 0.6981317F;
this.mouth2.rotateAngleX = f3 / (270F / (float) Math.PI) + 0.0872665F;
this.tooth1.rotateAngleX = f3 / (270F / (float) Math.PI) - 0.4886922F;
this.tooth2.rotateAngleX = f3 / (270F / (float) Math.PI) - 0.4886922F;
this.tooth3.rotateAngleX = f3 / (270F / (float) Math.PI) - 0.4886922F;
this.tooth4.rotateAngleX = f3 / (270F / (float) Math.PI) - 0.4886922F;
this.tail1.rotateAngleY = MathHelper.cos(f * 0.8F) * 1.2F * f1;
this.tail2.rotateAngleY = MathHelper.cos(f * 0.8F) * 1.2F * f1;
this.tail3.rotateAngleY = MathHelper.cos(f * 0.8F) * 1.2F * f1;
this.tail4.rotateAngleY = MathHelper.cos(f * 0.8F) * 1.2F * f1;
this.tail5.rotateAngleY = MathHelper.cos(f * 0.8F) * 1.2F * f1;
Like this but you need to rename you model part you see tail1? yes thats your model part
so you can rename and make your animations this is a fish animation example and you can set angle 0.8F to 1.0F example or 1.2F To 0.8F example. dont forget to set your model part name for work it.
Sorry got a bad english yeah if u doesnt understanded this just sorry.
Guys just use nerdys geckolib if you dont want to make animations with codes.
b l u e adal
I would like to use the Geckolib plugin but when I launch the game with my animated mobs, the game gives me an error message : "java.lang.reflect.invocationtargetexception = null"
How to do ?
MathHelper dont work anymore on 2023 :( how we do custom animations now? (without other people plugins...)