TU19: merge Minecraft.World/Blocks

This commit is contained in:
Tropical
2026-03-21 15:52:50 -05:00
parent f25cd66f4d
commit 9b6046cb83
242 changed files with 8083 additions and 4657 deletions

View File

@@ -0,0 +1,19 @@
#include "../Platform/stdafx.h"
#include "GlowstoneTile.h"
#include "../Headers/net.minecraft.world.item.h"
Glowstonetile::Glowstonetile(int id, Material* material) : Tile(id, material) {}
int Glowstonetile::getResourceCountForLootBonus(int bonusLevel,
Random* random) {
return Mth::clamp(
getResourceCount(random) + random->nextInt(bonusLevel + 1), 1, 4);
}
int Glowstonetile::getResourceCount(Random* random) {
return 2 + random->nextInt(3);
}
int Glowstonetile::getResource(int data, Random* random, int playerBonusLevel) {
return Item::yellowDust->id;
}