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 "LightGemTile.h"
3#include "net.minecraft.world.item.h"
4
5LightGemTile::LightGemTile(int id, Material *material) : Tile(id, material)
6{
7}
8
9int LightGemTile::getResourceCountForLootBonus(int bonusLevel, Random *random)
10{
11 return Mth::clamp(getResourceCount(random) + random->nextInt(bonusLevel + 1), 1, 4);
12}
13
14int LightGemTile::getResourceCount(Random *random)
15{
16 return 2 + random->nextInt(3);
17}
18
19int LightGemTile::getResource(int data, Random *random, int playerBonusLevel)
20{
21 return Item::yellowDust->id;
22}