Posted April 29, 20187 yr How do i put a custom block with states m as a tab icon i tried this , but no luck @SideOnly(Side.CLIENT) @Override public ItemStack getTabIconItem() { ItemStack is = new ItemStack(YobBlockInit.TUDOR_BLOCK, 1 , 1); return is; }
April 29, 20187 yr You need to override the getSubBlocks() method. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
April 29, 20187 yr Author If you mean in the TUDOR_BLOCK, it is, other wise not sure which class you refer to
April 29, 20187 yr Author This is what i came up with @SideOnly(Side.CLIENT) @Override public ItemStack getTabIconItem() { return new ItemStack(Item.getItemFromBlock(YobBlockInit.TUDOR_BLOCK), 1 , 6); } works perfect. thanks for your help
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.