Posted January 22, 201411 yr I dont crash, but it says this in the log, why is my custom rendered item getting this and then a missing texture? 2014-01-21 21:16:28 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_756_null.png 2014-01-21 21:16:28 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_514_block_blender.png
January 22, 201411 yr Author block class package brainstorm_51.juicemod.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import brainstorm_51.juicemod.Basic; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; public class blender extends BlockContainer{ public blender(int id){ super(id, Material.glass); this.setCreativeTab(Basic.basicTab); this.setLightValue((float) 0.5); } public TileEntity createNewTileEntity(World world) { return new blenderTileEntity(); } public int getRenderType(){ return -1; } public boolean isOpaqueCube(){ return false; } public boolean renderAsNormalBlock(){ return false; } @SideOnly(Side.CLIENT) public void registerIcon(IconRegister icon) { blockIcon = icon.registerIcon("basic:icon_blender"); } }
January 22, 201411 yr you are missing your modname from the path, your mod isnt called basic based on your package name. and just for good measure the way i do it is to set the unlocalised name wherever then use: par1IconRegister.registerIcon(myMod.modid + ":" + (this.getUnlocalizedName().substring(5))); Hope it helps.
January 22, 201411 yr you are missing your modname from the path, your mod isnt called basic based on your package name. and just for good measure the way i do it is to set the unlocalised name wherever then use: par1IconRegister.registerIcon(myMod.modid + ":" + (this.getUnlocalizedName().substring(5))); Hope it helps. While this is not technically wrong, the problem lies in where you've placed your texture (and changing the registration string isn't going to fix that, unless you get super lucky). In order to completely diagnose your problem I need to know where you're putting your texture file. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 22, 201411 yr Hi Your block and item have no texture name and you haven't registered the Icon properly. What is this part of your block intended to do? :-) @SideOnly(Side.CLIENT) public void registerIcon(IconRegister icon) { blockIcon = icon.registerIcon("basic:icon_blender"); } I think you have got the signature wrong, you can pick up this type of error by using @Override eg @SideOnly(Side.CLIENT) @Override public void registerIcon(IconRegister icon) { blockIcon = icon.registerIcon("basic:icon_blender"); } -TGG
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.