the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "BookshelfTile.h"
3#include "net.minecraft.world.item.h"
4#include "net.minecraft.h"
5
6BookshelfTile::BookshelfTile(int id) : Tile(id, Material::wood)
7{
8}
9
10Icon *BookshelfTile::getTexture(int face, int data)
11{
12 if (face == Facing::UP || face == Facing::DOWN) return Tile::wood->getTexture(face);
13 return Tile::getTexture(face, data);
14}
15
16int BookshelfTile::getResourceCount(Random *random)
17{
18 return 3;
19}
20
21int BookshelfTile::getResource(int data, Random *random,int playerBonusLevel)
22{
23 return Item::book_Id;
24}