Jump to content

mrCookieSlime

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by mrCookieSlime

  1. It is getTagCompound not getStackTagCompound and by more complex I mean the modification of the "AttributeModifiers" Tag List as I have no clue how to retrieve and modify that. I also would like to know how to include multiple Components into one Path since the Name, Amount and Operation obviously stick together to one Entry in the List. EDIT: Nevermind, screw it, I figured it out. I was basically seeing it like the Markup Languages JSON or YML storing Keys and Values with Subpaths, although it is more like a HashMap, anyway, got it working now. Thanks for your help though. I do have one Question though left: nbt.getTagList(key, type) What does the integer type represent in this method? EDIT: Figured that out as well. Feel free to lock this Thread.
  2. Exactly that is my Question... How do I add it? Or in other words, could you redirect me to a good tutorial about NBT covering more complex entries like Attributes since my knowledge currently does not reach any further than the basic String, Integer, etc... Setting.
  3. I do know that Attributes utilise NBT, but I am trying to add an Attribute to an ItemStack. I never used NBT though. ... I am trying to add an Attribute, I know what an Attribute consists of...
  4. Hey, does anyone here know how to add an Attribute to an ItemStack? I tried item.getAttributeModifiers().put(attribute.getName(), attribute); however that does not seem to work. Any other ideas?
  5. That was actually the thing I also just thought of. Im used to Bukkit where everything is an Event, going that route now. Thanks for your help
  6. That was actually the thing I came up with. Im used to Bukkit where everything is an Event, going that route now. Thanks for your help
  7. For 1.8 sorry forgot to mention that. And I already looked at that but I did not see it calling any Event or Handler though, but I might be simply blind. EDIT: Hold on, I might have found something.
  8. Good day, I have a small question: Is there a Handler capable of listening to a Crafting Preparation? So, just like the ICraftingHandler however being triggered when the Result of a Recipe is retrieved in order to modify the outcome of a Recipe.
  9. But wait, I have one more question: How do I add custom Trades?
  10. 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)
×
×
  • Create New...

Important Information

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