Skip to content

Info for addon authors

zhuowei edited this page Jan 20, 2016 · 6 revisions

Armour Textures

BlockLauncher offers support for custom armour textures: here's how it works. (yeah I know it's kinda sketchy)

#define BL_ITEMS_EXPANDED_COUNT 4096

extern "C" {
extern std::array<mce::TexturePtr*, BL_ITEMS_EXPANDED_COUNT> bl_armorRenders;
}

bl_armorRenders[myCustomArmor->itemId] = new mce::TexturePtr(minecraft->getTextures(), "path/to/texture.png");
myCustomArmor->renderType = 42;
Clone this wiki locally