Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

tofu-alpha

Members
  • Joined

  • Last visited

  1. I realize that seems like a simple answer, but the texture exists in debug and in the compiled jar as you can see from this pic of the archive contents. https://www.amazon.com/clouddrive/share/Re2PfGerAYQ0a1D6HFeqOQiDpYrzuS2-fc6lOa1UvIM So, the textures do exist..
  2. Yes there is an IO error in the log. [22:10:07] [Client thread/WARN]: Failed to load texture: tofu-alpha:/textures/models/armor/morganite_layer_1.png java.io.FileNotFoundException: tofu-alpha:/textures/models/armor/morganite_layer_1.png at net.minecraft.client.resources.FallbackResourceManager.func_110536_a(FallbackResourceManager.java:70) ~[cvc.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110536_a(SourceFile:55) ~[cvt.class:?] at net.minecraft.client.renderer.texture.SimpleTexture.func_110551_a(SourceFile:28) ~[ctv.class:?] at net.minecraft.client.renderer.texture.TextureManager.func_110579_a(SourceFile:56) [cug.class:?] at net.minecraft.client.renderer.texture.TextureManager.func_110577_a(SourceFile:38) [cug.class:?] at net.minecraft.client.renderer.entity.Render.func_110776_a(SourceFile:70) [cpu.class:?] at net.minecraft.client.renderer.entity.layers.LayerArmorBase.func_177182_a(LayerArmorBase.java:62) [csb.class:?] at net.minecraft.client.renderer.entity.layers.LayerArmorBase.func_177141_a(LayerArmorBase.java:38) [csb.class:?] at net.minecraft.client.renderer.entity.RendererLivingEntity.func_177093_a(RendererLivingEntity.java:457) [cqv.class:?] at net.minecraft.client.renderer.entity.RendererLivingEntity.func_76986_a(RendererLivingEntity.java:179) [cqv.class:?] at net.minecraft.client.renderer.entity.RenderPlayer.func_180596_a(SourceFile:58) [ctc.class:?] at net.minecraft.client.renderer.entity.RenderPlayer.func_76986_a(SourceFile:19) [ctc.class:?] at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:370) [cpt.class:?] at net.minecraft.client.renderer.entity.RenderManager.func_147940_a(RenderManager.java:350) [cpt.class:?] at net.minecraft.client.gui.inventory.GuiInventory.func_147046_a(SourceFile:94) [bzj.class:?] at net.minecraft.client.gui.inventory.GuiInventory.func_146976_a(SourceFile:60) [bzj.class:?] at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:78) [byl.class:?] at net.minecraft.client.renderer.InventoryEffectRenderer.func_73863_a(InventoryEffectRenderer.java:46) [bzd.class:?] at net.minecraft.client.gui.inventory.GuiInventory.func_73863_a(SourceFile:47) [bzj.class:?] at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:447) [ForgeHooksClient.class:?] at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1078) [cji.class:?] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1049) [bsu.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:345) [bsu.class:?] at net.minecraft.client.main.Main.main(SourceFile:120) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] [22:10:07] [Client thread/WARN]: Failed to load texture: tofu-alpha:/textures/models/armor/morganite_layer_2.png java.io.FileNotFoundException: tofu-alpha:/textures/models/armor/morganite_layer_2.png at net.minecraft.client.resources.FallbackResourceManager.func_110536_a(FallbackResourceManager.java:70) ~[cvc.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110536_a(SourceFile:55) ~[cvt.class:?] at net.minecraft.client.renderer.texture.SimpleTexture.func_110551_a(SourceFile:28) ~[ctv.class:?] at net.minecraft.client.renderer.texture.TextureManager.func_110579_a(SourceFile:56) [cug.class:?] at net.minecraft.client.renderer.texture.TextureManager.func_110577_a(SourceFile:38) [cug.class:?] at net.minecraft.client.renderer.entity.Render.func_110776_a(SourceFile:70) [cpu.class:?] at net.minecraft.client.renderer.entity.layers.LayerArmorBase.func_177182_a(LayerArmorBase.java:62) [csb.class:?] at net.minecraft.client.renderer.entity.layers.LayerArmorBase.func_177141_a(LayerArmorBase.java:40) [csb.class:?] at net.minecraft.client.renderer.entity.RendererLivingEntity.func_177093_a(RendererLivingEntity.java:457) [cqv.class:?] at net.minecraft.client.renderer.entity.RendererLivingEntity.func_76986_a(RendererLivingEntity.java:179) [cqv.class:?] at net.minecraft.client.renderer.entity.RenderPlayer.func_180596_a(SourceFile:58) [ctc.class:?] at net.minecraft.client.renderer.entity.RenderPlayer.func_76986_a(SourceFile:19) [ctc.class:?] at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:370) [cpt.class:?] at net.minecraft.client.renderer.entity.RenderManager.func_147940_a(RenderManager.java:350) [cpt.class:?] at net.minecraft.client.gui.inventory.GuiInventory.func_147046_a(SourceFile:94) [bzj.class:?] at net.minecraft.client.gui.inventory.GuiInventory.func_146976_a(SourceFile:60) [bzj.class:?] at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:78) [byl.class:?] at net.minecraft.client.renderer.InventoryEffectRenderer.func_73863_a(InventoryEffectRenderer.java:46) [bzd.class:?] at net.minecraft.client.gui.inventory.GuiInventory.func_73863_a(SourceFile:47) [bzj.class:?] at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:447) [ForgeHooksClient.class:?] at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1078) [cji.class:?] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1049) [bsu.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:345) [bsu.class:?] at net.minecraft.client.main.Main.main(SourceFile:120) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
  3. What do you mean by "normal version"? There are no errors while running the code in eclipse, it works as expected. In the build (compiled) version you will notice in the screen shot the color of the armor is correct but its not rendering like it does in debug. Bizarre.
  4. public class ItemMorganiteArmor extends ItemArmor { private final String piecename; public ItemMorganiteArmor (ArmorMaterial material, int armorType, String name) { super(material, 0, armorType); this.piecename = name; //register new item GameRegistry.registerItem(this, name); setUnlocalizedName(MyMod.MODID + "_" + name); } public String getName() { return piecename; } public String getArmorTexture( ItemStack stack, Entity entity, int slot, String type) { if (stack.getItem() == MyMod.morganite_helmet || stack.getItem() == MyMod.morganite_chestplate || stack.getItem() == MyMod.morganite_boots) { return MyMod.MODID + ":/textures/models/armor/morganite_layer_1.png"; } else if(stack.getItem() == MyMod.morganite_leggings) { return MyMod.MODID + ":/textures/models/armor/morganite_layer_2.png"; } else { System.out.println("Invalid Item"); return null; } } }
  5. Debug screenshot https://www.amazon.com/clouddrive/share/wf_pCCjFAD3CPdDDtypTGRjHdrFvK2aTDLgImocYHoA Compiled screenshot https://www.amazon.com/clouddrive/share/OzoAh9aZjUs7UCuREC8oJ7BKuy9emL4C3E-GwyQAIj0 Code for class https://gist.github.com/95fb4ab82501f417625b.git
  6. I have a mod with a custom armor material and it behaves as expected in debug mode however when I build the mod via ./gradlew build and deploy it to MC, the armor rendering is glitches. Has anyone experienced this in 1.8. I am using Forge build 1299.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.