Skip to content

Instantly share code, notes, and snippets.

@ft975
Last active December 20, 2015 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ft975/6045813 to your computer and use it in GitHub Desktop.
Save ft975/6045813 to your computer and use it in GitHub Desktop.
CreativeTabs creativeTabLamp = new CreativeTabs("ftLighting") {
{
LanguageRegistry.instance.addStringLocalization("itemGroup.ftLighting", "en_US", "Lighting");
ItemStack icon = ItemLamp.buildStack(0, Colors.Magenta, Shapes.Block, isOn = true);
}
public ItemStack getIconItemStack(){return icon;}
}
blockLamp.setCreativeTab(creativeTabLamp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment