Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
763 B · 37 lines
C++
at master
12345678910111213141516171819202122232425262728293031323334353637#include "stdafx.h"#include "net.minecraft.world.item.h"#include "net.minecraft.world.entity.item.h"#include "net.minecraft.world.entity.player.h"#include "net.minecraft.world.h"#include "CoalItem.h"
CoalItem::CoalItem(int id) : Item( id ){ setStackedByData(true); setMaxDamage(0);}
unsigned int CoalItem::getDescriptionId(shared_ptr<ItemInstance> instance) { if (instance->getAuxValue() == CHAR_COAL) { return IDS_ITEM_CHARCOAL; } return IDS_ITEM_COAL;}
Icon *CoalItem::getIcon(int auxValue){ if (auxValue == CHAR_COAL) { return charcoalIcon; } return Item::getIcon(auxValue);}
void CoalItem::registerIcons(IconRegister *iconRegister){ Item::registerIcons(iconRegister);
charcoalIcon = iconRegister->registerIcon(L"charcoal");}