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.
646 B · 42 lines
C++
at main
123456789101112131415161718192021222324252627282930313233343536373839404142#include "stdafx.h"#include "net.minecraft.world.h"#include "net.minecraft.world.item.h"#include "CarrotTile.h"
CarrotTile::CarrotTile(int id) : CropTile(id){}
Icon *CarrotTile::getTexture(int face, int data){ if (data < 7) { if (data == 6) { data = 5; } return icons[data >> 1]; } else { return icons[3]; }}
int CarrotTile::getBaseSeedId(){ return Item::carrots_Id;}
int CarrotTile::getBasePlantId(){ return Item::carrots_Id;}
void CarrotTile::registerIcons(IconRegister *iconRegister){ for (int i = 0; i < 4; i++) { icons[i] = iconRegister->registerIcon(getIconName() + L"_stage_" + _toString(i)); }}