itemStack.setStackDisplayName("custom name");
System.out.println(itemStack.getDisplayName());
System.out.println(this.worldObj.isRemote);
that's gonna print "custom name" and "false" in the console
but its showing up the usual itemstack name in minecraft instead of "custom name"
What am i doing wrong?
Hey ho, no modding question, actually not even a java question
In my TESR i have an animation i want to start fast and end slowly, depending on a linear value, so basically i need the cosinus sinus stuff.. and well I suck at math :'(, haaaaaaalp me
Hello,
I have a techne block for my TESR with some transparent pixels on the texture, so you can look inside it, kind of like that:
____________
| |
| |
|
|
| |
|___________|
But when you look inside the block, the textures are not visible anymore, so basically they are rendered on 1 side only
Can i change it so they are still renderd?
public static Item item;
@EventHandler
public void preInit(FMLInitializationEvent event)
{
item = new CItem().setUnlocalizedName("test").setCreativeTab(CreativeTabs.tabBlock);
GameRegistry.registerItem(item, "test");
}
@EventHandler
public void init(FMLInitializationEvent event)
{
if(event.getSide() == Side.CLIENT) Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation("test:test"));
}
still not working