Files
neoLegacy/Minecraft.World/GravelTile.cpp
T
Tranqlmao ff562d1644 TU46 Test content and patches
TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
2026-10-22 13:55:39 -04:00

19 lines
430 B
C++

#include "stdafx.h"
#include "GravelTile.h"
#include "net.minecraft.world.item.h"
GravelTile::GravelTile(int type) : HeavyTile(type)
{
}
int GravelTile::getResource(int data, Random *random, int playerBonusLevel)
{
if (playerBonusLevel > 3) playerBonusLevel = 3;
if (random->nextInt(10 - playerBonusLevel * 3) == 0) return Item::flint->id;
return id;
}
unsigned int GravelTile::getDustColor(int data)
{
return 0xff807c7b;
}