• Recently Browsing

    No registered users viewing this page.

  • Posts

    • @Emily_Ravenhold, entity renders should be registered on the Client side, and not on both: https://github.com/Cadiboo/Example-Mod/blob/1.15.2/src/main/java/io/github/cadiboo/examplemod/client/ClientModEventSubscriber.java   Make a new class and copy the code above. Try to learn how to register your things (value = Dist.Client is the same as @Dist.CLIENT)
    • First: No, it work on all IDE, if you are modding for 1.12.2 is still should work. Second: Read the blue Gui above your Topic title. It say: 1.12.2 is no longer supported. Update to a new Version of Minecraft for receive support. Simply google and you should have your solution.
    • the only differences i see, is that the SlimeModel extends SegmentedModel and mine extends AgeableModel. And, that they use an integer in the constructor of the Model-class and i use a boolean.   I want to keep it extend AgeableModel, because my one has got a head and a body and i still want to use one list for head-parts and one for body-parts.   The model-class: package drachenbauer32.angrybirdsmod.entities.models; import com.google.common.collect.ImmutableList; import net.minecraft.client.renderer.entity.model.AgeableModel; import net.minecraft.client.renderer.model.ModelRenderer; import net.minecraft.entity.Entity; import net.minecraft.util.math.MathHelper; public class CoralModel<T extends Entity> extends AgeableModel<T> { private final ModelRenderer bone; private final ModelRenderer bone2; private final ModelRenderer bone3; private final ModelRenderer bone4; private final ModelRenderer bone5; private final ModelRenderer bone6; private final ModelRenderer bone7; public CoralModel(boolean layer) { textureWidth = 56; textureHeight = 32; bone = new ModelRenderer(this); bone.setRotationPoint(0.0F, 18.1F, 0.0F); bone2 = new ModelRenderer(this); bone3 = new ModelRenderer(this); bone4 = new ModelRenderer(this); bone5 = new ModelRenderer(this); bone6 = new ModelRenderer(this); bone7 = new ModelRenderer(this); if (layer) { bone.addBox("back_fin", 0.0F, -12.0F, 0.0F, 0, 12, 6, 0.0F, 38, 6); } else { bone.addBox("head", -4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F, 0, 0); bone.addBox("antenna_part_1", -0.5F, -12.0F, -4.0F, 1, 4, 1, 0.0F, 28, 0); bone.addBox("antenna_part_2", -0.5F, -12.0F, -6.0F, 1, 1, 2, 0.0F, 24, 5); bone.addBox("antenna_light", -1.0F, -12.0F, -8.0F, 2, 3, 2, 0.0F, 0, 0); bone2.setRotationPoint(0.0F, 20.1F, 0.0F); bone2.addBox("body", -3.0F, -4.0F, -3.0F, 6, 6, 6, 0.0F, 32, 0); bone3.setRotationPoint(-2.0F, 22.1F, -2.0F); bone3.addBox("right_front_leg", -1.0F, 0.0F, -1.0F, 2, 2, 2, 0.0F, 0, 16); bone3.addBox("right_front_flipper", -1.0F, 2.0F, -2.0F, 2, 0, 1, 0.0F, 1, 20); bone4.setRotationPoint(2.0F, 22.1F, -2.0F); bone4.addBox("left_front_leg", -1.0F, 0.0F, -1.0F, 2, 2, 2, 0.0F, 8, 16); bone4.addBox("left_front_flipper", -1.0F, 2.0F, -2.0F, 2, 0, 1, 0.0F, 9, 20); bone5.setRotationPoint(-2.0F, 22.1F, 2.0F); bone5.addBox("right_hind_leg", -1.0F, 0.0F, -1.0F, 2, 2, 2, 0.0F, 16, 16); bone5.addBox("right_hind_flipper", -1.0F, 2.0F, -2.0F, 2, 0, 1, 0.0F, 17, 20); bone6.setRotationPoint(2.0F, 22.1F, 2.0F); bone6.addBox("left_hind_leg", -1.0F, 0.0F, -1.0F, 2, 2, 2, 0.0F, 24, 16); bone6.addBox("left_hind_flipper", -1.0F, 2.0F, -2.0F, 2, 0, 1, 0.0F, 25, 20); bone7.setRotationPoint(0.0F, 20.1F, 3.0F); bone7.addBox("tail_part_1", -2.0F, -2.0F, 0.0F, 4, 4, 4, 0.0F, 0, 24); bone7.addBox("tail_part_2", -1.0F, 0.0F, 4.0F, 2, 2, 2, 0.0F, 4, 20); bone7.addBox("tail_fin", 0.0F, -1.0F, 6.0f, 0, 4, 2, 0.0F, 16, 26); } } @Override protected Iterable<ModelRenderer> getHeadParts() { return ImmutableList.of(bone); } @Override protected Iterable<ModelRenderer> getBodyParts() { return ImmutableList.of(bone2, bone3, bone4, bone5, bone6, bone7); } @Override public void setRotationAngles(Entity coral, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { //float limbSwingValue = bone.rotateAngleX = headPitch * 0.017453292f; bone.rotateAngleY = netHeadYaw * 0.017453292f; bone3.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F + (float)Math.PI) * 3 * limbSwingAmount; bone4.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F) * 3 * limbSwingAmount; bone5.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F) * 3 * limbSwingAmount; bone6.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F + (float)Math.PI) * 3 * limbSwingAmount; bone7.rotateAngleY = MathHelper.cos(limbSwing * 0.6662F) * 3 * limbSwingAmount; bone7.rotateAngleX = ageInTicks; System.out.println(limbSwing); //System.out.println(limbSwingAmount); } }
    • Yeah I'm modding for 1.12.2 so that's probably why it's not showing up.
    • I did what you say, but now i get that exception:   java.lang.IllegalStateException: No renderer registered for enderslime:enderslime     at net.minecraft.client.renderer.entity.EntityRendererManager.<init>(EntityRendererManager.java:189) ~[forge-1.15-29.0.4_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} I got it before sometimes when i registered something before render, but now i have no idea how to fix it. Commit: https://gitlab.com/Emily_Ravenhold/enderSlime/-/commit/73f0efefcddd7f1dd4a8bb7905f3dffce833a1e2 Thanks!
  • Topics

  • Who's Online (See full list)