Jump to content

SuperHB

Forge Modder
  • Posts

    209
  • Joined

  • Last visited

Everything posted by SuperHB

  1. i wasnt talking about the texture. i was talking about the code for block that is custom made from an obj file
  2. The Title says it all. I was hoping that someone has a tutorial for rendering obj block tutorials. but for 1.6.2 not an older tutorial.
  3. Ill try it again
  4. When i do that and go ingame the textures get all messed up because it is too big. i know that there is a code for it that u can put into eclipse so that you can set it but i dont know what it is
  5. Hey guys SuperHB here and I'm making a mod and I want to make textures for the armor. (like the textures when you put on the armor) so i was wondering if i can make it so that i can have HD textures. does anyone have a code for that?
  6. Its Solved... Got it to work!
  7. What i meant was, "okay... putting the code into the base class is a choose BUT... I tried my old code and it doesn't work
  8. okay... put the code into the base class is a choose BUT... I tried my old code and it doesn't work.
  9. okay i'll take a look EDIT: I took a look and didn't work...
  10. Can you give me the code? I'm kinda noobish with coding still... I was hoping for not putting the code in the base class. Also I tried it. doesn't work.
  11. tried it.. that is only for 1.5.2... was hoping for a 1.6.2 answer
  12. Okay so I'm making a mod MobDrops(http://www.planetminecraft.com/mod/125-mobdrops/), I have an issue with the drops. The drops won't drop. Does anyone have the code for 1.6.2? I don't have an code except my old one... but that edits the base code, and I wouldn't like that. It would be better to have a different class file that extends it.
  13. When did you make your mod? it has stuff my mod has.
  14. Didn't work for me it makes the item in my hand black and purple as well...
  15. /\ | That didn't work for me /\ | This one could work but i would like to know the code that you used in the base class? EX: public static Item creeperarmorhelmet = new CreeperArmor(5225, CreeperArmor, ModLoader.addArmor("Creeper"), 0).setCreativeTab(MobDropsAll.tabMobDropsArmor).setUnlocalizedName("CHelmet").func_111206_d("CHelmet");
  16. Still doesn't work it is inside the mcp/minecraft/assest/mobdrops/textures/armor folder and the folders have no caps so I don't understand whats wrong.
  17. That should be mcp/src/minecraft/assets/mobdrops/textures/armor, but close enough Okay i'll check to make sure and try again thanks!
  18. It didnt work for me. I still got the beautiful black and purple armor textures. Here is the Modified Code: package net.MobDrops.superhb.mod.armor; import net.MobDrops.superhb.mod.MobDropsAll; import net.minecraft.entity.Entity; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class CreeperArmor extends ItemArmor { public String armorNamePrefix; public EnumArmorMaterial material; public CreeperArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { super(par1, par2EnumArmorMaterial, par3, par4); this.material = par2EnumArmorMaterial; par2EnumArmorMaterial.getDamageReductionAmount(par4); this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4)); this.maxStackSize = 1; this.setCreativeTab(MobDropsAll.tabMobDropsArmor); } public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { if (this.material == MobDropsAll.CreeperArmor) { if (stack.getItem().itemID == MobDropsAll.creeperarmorhelmet.itemID) { return "mobdrops:textures/armor/creeper_" + (this.armorType == 2 ? 2 : 1) + ".png"; } else if (stack.getItem().itemID == MobDropsAll.creeperarmorchestplate.itemID || stack.getItem().itemID == MobDropsAll.creeperarmorboots.itemID) { return "mobdrops:textures/armor/creeper_" + (this.armorType == 2 ? 2 : 1) + ".png"; } else if (stack.getItem().itemID == MobDropsAll.creeperarmorleggings.itemID) { return "mobdrops:textures/armor/creeper_" + (this.armorType == 2 ? 2 : 1) + ".png"; } } return null; } }
  19. Hey guys SuperHB here! I am working on my mod MobDrops right now and I was working on the Armor and when I try it on it gives me an error. I'm not sure if my code is bad or because there is something wrong with Forge right now. here is the error and the code i used: Error 2013-07-15 14:32:39 [WARNING] [Minecraft-Client] Failed to load texture: minecraft:/assests/minecraft/textures/armor/wolf_1 java.io.FileNotFoundException: minecraft:/assests/minecraft/textures/armor/wolf_1 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.RenderPlayer.setArmorModel(RenderPlayer.java:72) at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:519) at net.minecraft.client.renderer.entity.RendererLivingEntity.func_130000_a(RendererLivingEntity.java:162) at net.minecraft.client.renderer.entity.RenderPlayer.func_130009_a(RenderPlayer.java:170) at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:558) at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:313) at net.minecraft.client.gui.inventory.GuiInventory.func_110423_a(GuiInventory.java:121) at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:849) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:111) at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:43) at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:674) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1037) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:933) 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) 2013-07-15 14:32:41 [WARNING] [Minecraft-Client] Failed to load texture: minecraft:assets/minecraft/textures/armor/creeper_1 java.io.FileNotFoundException: minecraft:assets/minecraft/textures/armor/creeper_1 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.RenderPlayer.setArmorModel(RenderPlayer.java:72) at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:519) at net.minecraft.client.renderer.entity.RendererLivingEntity.func_130000_a(RendererLivingEntity.java:162) at net.minecraft.client.renderer.entity.RenderPlayer.func_130009_a(RenderPlayer.java:170) at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:558) at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:313) at net.minecraft.client.gui.inventory.GuiInventory.func_110423_a(GuiInventory.java:121) at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:849) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:111) at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:43) at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:674) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1037) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:933) 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) Code package net.MobDrops.superhb.mod.armor; import net.MobDrops.superhb.mod.MobDropsAll; import net.minecraft.entity.Entity; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class ArmorTest extends ItemArmor { public String armorNamePrefix; public EnumArmorMaterial material; public ArmorTest(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4, String armornamePrefix) { super(par1, par2EnumArmorMaterial, par3, par4); this.material = par2EnumArmorMaterial; par2EnumArmorMaterial.getDamageReductionAmount(par4); this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4)); this.maxStackSize = 1; this.setCreativeTab(MobDropsAll.tabMobDropsArmor); armorNamePrefix = armornamePrefix; } public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { if (stack.toString().contains("leggings")) { return "/assests/minecraft/textures/armor/wolf_2"; } if (stack.toString().contains("Leggings")) { return "/assests/minecraft/textures/armor/wolf_2"; } return "/assests/minecraft/textures/armor/wolf_1"; } } Second Code Link: http://gw.minecraftforge.net/NHLo If you know the code please give it to me and i'll put you in the credits of MobDrops! Thanks, SuperHB
×
×
  • Create New...

Important Information

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