Jump to content

Need help with the VillagerRegistry


mrCookieSlime

Recommended Posts

Hey guys, I am a very new forge modder and want to try making my own custom villager.

 

The creation of the Villager works:

 

VillagerRegistry.instance().registerVillagerId(344);

 

But when I'm going to setup the skin:

 

VillagerRegistry.instance().registerVillagerSkin(344, new ResourceLocation("chargecraft", "chargecraftvillager"));

 

And I put the image exactly here: /assets/chargecraft/textures/villager/chargecraftvillager.png

 

I get this FileNotFoundException:

 

2013-07-20 07:38:14 [WARNING] [Minecraft-Client] Failed to load texture: chargecraft:chargecraftvillager

java.io.FileNotFoundException: chargecraft:chargecraftvillager

  at net.minecraft.client.resources.FallbackResourceManager.func_110536_a(FallbackResourceManager.java:64)

  at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110536_a(SimpleReloadableResourceManager.java:63)

  at net.minecraft.client.renderer.texture.SimpleTexture.func_110551_a(SimpleTexture.java:31)

  at net.minecraft.client.renderer.texture.TextureManager.func_110579_a(TextureManager.java:84)

  at net.minecraft.client.renderer.texture.TextureManager.func_110577_a(TextureManager.java:41)

  at net.minecraft.client.renderer.entity.Render.func_110776_a(Render.java:50)

  at net.minecraft.client.renderer.entity.Render.func_110777_b(Render.java:45)

  at net.minecraft.client.renderer.entity.RendererLivingEntity.renderModel(RendererLivingEntity.java:293)

  at net.minecraft.client.renderer.entity.RendererLivingEntity.func_130000_a(RendererLivingEntity.java:154)

  at net.minecraft.client.renderer.entity.RenderLiving.doRenderLiving(RenderLiving.java:28)

  at net.minecraft.client.renderer.entity.RenderVillager.renderVillager(RenderVillager.java:43)

  at net.minecraft.client.renderer.entity.RenderVillager.doRender(RenderVillager.java:132)

  at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:312)

  at net.minecraft.client.renderer.entity.RenderManager.renderEntity(RenderManager.java:281)

  at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:524)

  at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1160)

  at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1006)

  at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:934)

  at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826)

  at net.minecraft.client.main.Main.main(Main.java:93)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

  at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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