Posted September 20, 201510 yr Here's the relevant code for the block class.. public class StrangeIceBlock extends BlockBreakable { public StrangeIceBlock() { super("strangeIce", Material.ice, false); setBlockName(Reference.MODID + "_strangeIce"); setBlockTextureName(Reference.MODID + ":" + getUnlocalizedName().substring(5)); setCreativeTab(CreativeTabs.tabBlock); This is the texture error. [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found. [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: DOMAIN minecraft [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------------------------------- [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft is missing 1 texture [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: domain minecraft has 3 locations: [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: mod FML resources at C:\Users\Timothy\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1448-1.7.10\forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: mod Forge resources at C:\Users\Timothy\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1448-1.7.10\forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: ------------------------- [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain minecraft are: [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: textures/blocks/strangeIce.png [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: ------------------------- [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: No other errors exist for domain minecraft [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: ================================================== [02:19:37] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= The texture is in fact in src/main/resouces under assets.strange.textures.blocks.strangeIce.png I've read that it's because I'm an idiot and it shouldn't go in the minecraft domain. But.. how is it in the minecraft domain if Reference.MODID = "strange"? Seems strange to me. If I helped, show me some love and hit that thanks button!
September 20, 201510 yr Author Ah... public class BlockBreakable extends Block { private String field_149995_b; protected BlockBreakable(String p_i45411_1_, Material p_i45411_2_, boolean p_i45411_3_) { this.field_149995_b = p_i45411_1_; } @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) { this.blockIcon = p_149651_1_.registerIcon(this.field_149995_b); } I didn't bother following the constructor because I figured calling setBlockTextureName after the constructor would override anything the constructor did. Suppose that was my mistake; seems like both methods register(?) the texture, rather than just setting it. If I helped, show me some love and hit that thanks button!
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.