Jump to content

Jose3T5

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by Jose3T5

  1. If a little of what I did there, I got it from MCreator
  2. renderer : package net.mcreator.additionaladventure.entity.renderer; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraft.util.math.MathHelper; import net.minecraft.util.ResourceLocation; import net.minecraft.entity.Entity; import net.minecraft.client.renderer.model.ModelRenderer; import net.minecraft.client.renderer.entity.model.EntityModel; import net.minecraft.client.renderer.entity.layers.HeldItemLayer; import net.minecraft.client.renderer.entity.MobRenderer; import net.minecraft.client.renderer.entity.EntityRendererManager; import net.mcreator.additionaladventure.entity.SkySkeletonEntity; import com.mojang.blaze3d.vertex.IVertexBuilder; import com.mojang.blaze3d.matrix.MatrixStack; public class SkySkeletonRenderer { public static class ModelRegisterHandler { @SubscribeEvent public void registerModels(ModelRegistryEvent event) { RenderingRegistry.registerEntityRenderingHandler(SkySkeletonEntity.entity, renderManager -> { return new MobRenderer(renderManager, new Modelcustom_model(), 0.5f) { @Override public ResourceLocation getEntityTexture(Entity entity) { return new ResourceLocation("additional_adventure:textures/esqueletodelcielo.png"); } public SkySkeletonRenderer(EntityRendererManager renderManagerIn) { super(renderManagerIn, new Modelcustom_model<>, 0.5F); this.addLayer(new HeldItemLayer(this)); } }; }); } } Error 1 : Description Resource Path Location Type Cannot infer type argument(s) for <T> registerEntityRenderingHandler(EntityType<T>, IRenderFactory<? super T>) SkySkeletonRenderer.java /additional_adventure/src/main/java/net/mcreator/additionaladventure/entity/renderer line 1 Java Problem Error 2 : Description Resource Path Location Type Constructor call must be the first statement in a constructor SkySkeletonRenderer.java /additional_adventure/src/main/java/net/mcreator/additionaladventure/entity/renderer line 1 Java Problem Error 3 :Description Resource Path Location Type Syntax error, insert "( )" to complete Expression SkySkeletonRenderer.java /additional_adventure/src/main/java/net/mcreator/additionaladventure/entity/renderer line 32 Java Problem Please help me fix this.
  3. How could i solve it ? It says the error is this: public SkySkeletonRenderer(EntityRendererManager renderManagerIn) {
  4. the error says : Description Resource Path Location Type Return type for the method is missing SkySkeletonRenderer.java
  5. @OnlyIn delete it? Or do I have to add something?
  6. Entity Renderer : https://pastebin.com/TJYZyWdf
  7. I was just wondering, it doesn't work, so how would it be for the entity to be able to hold objects in its hands
  8. I did it again It's well done? public EsqueletoDelCieloRenderer(EntityRendererManager renderManagerIn) { super(renderManagerIn, new Modelcustom_model<>(), 0.5F); this.addLayer(new HeldItemLayer(this)); }
  9. How can I do this for version 1.16.5?
  10. The ItemInHandLayer I put it in the entity rendering
  11. I don't have that class How is it done?
  12. But new HandLayers(this) That is already in : public EsqueletoDelCieloRenderer(EntityRendererManager renderManagerIn) { super(renderManagerIn, new ModelSkeletonModel<>(), 0.5F); this.addLayer(new HandLayers(this)); }
  13. I'm a newbie, how do I make HandLayers?
  14. Is the code okay like this? public EsqueletoDelCieloRenderer(EntityRendererManager renderManagerIn) { super(renderManagerIn, new ModelSkeletonModel<>(), 0.5F); this.addLayer(new HandLayers(this)); }
  15. Please, could you tell me an example of the code
  16. What would be the code to render the entity's hand so that it can hold objects in its hands?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.