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.
746 B · 30 lines
C++
at main
123456789101112131415161718192021222324252627282930#include "stdafx.h"#include "net.minecraft.world.item.h"#include "net.minecraft.world.level.tile.h"#include "StoneMonsterTileItem.h"
StoneMonsterTileItem::StoneMonsterTileItem(int id) : TileItem(id){ setMaxDamage(0); setStackedByData(true);}
int StoneMonsterTileItem::getLevelDataForAuxValue(int auxValue){ return auxValue;}
Icon *StoneMonsterTileItem::getIcon(int itemAuxValue){ return Tile::monsterStoneEgg->getTexture(0, itemAuxValue);}
unsigned int StoneMonsterTileItem::getDescriptionId(shared_ptr<ItemInstance> instance){ int auxValue = instance->getAuxValue(); if (auxValue < 0 || auxValue >= StoneMonsterTile::STONE_MONSTER_NAMES_LENGTH) { auxValue = 0; } return StoneMonsterTile::STONE_MONSTER_NAMES[auxValue];}