the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 22 lines 541 B view raw
1#include "stdafx.h" 2#include "Glowstonetile.h" 3#include "net.minecraft.world.item.h" 4 5Glowstonetile::Glowstonetile(int id, Material *material) : Tile(id, material) 6{ 7} 8 9int Glowstonetile::getResourceCountForLootBonus(int bonusLevel, Random *random) 10{ 11 return Mth::clamp(getResourceCount(random) + random->nextInt(bonusLevel + 1), 1, 4); 12} 13 14int Glowstonetile::getResourceCount(Random *random) 15{ 16 return 2 + random->nextInt(3); 17} 18 19int Glowstonetile::getResource(int data, Random *random, int playerBonusLevel) 20{ 21 return Item::yellowDust->id; 22}