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.

Featured Replies

Posted

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

  • 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");

 

 

 

}

}

 

 

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.

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.