From 7933a0dec55839f0eee47d803b58b3e0822e2500 Mon Sep 17 00:00:00 2001 From: piebot Date: Wed, 8 Jul 2026 08:58:57 +0300 Subject: [PATCH] feat(TU20): Implement more of la's TU21 patch file Forgot to include changes in HellBiome.cpp and EatTileGoal.cpp TU20: 1. Skeletons & Wither Skeletons now rarely spawn anywhere in the Nether --- Minecraft.World/EatTileGoal.cpp | 10 +++++++--- Minecraft.World/HellBiome.cpp | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Minecraft.World/EatTileGoal.cpp b/Minecraft.World/EatTileGoal.cpp index 63bc4a6e..cd84d101 100644 --- a/Minecraft.World/EatTileGoal.cpp +++ b/Minecraft.World/EatTileGoal.cpp @@ -60,13 +60,17 @@ void EatTileGoal::tick() if (level->getTile(xx, yy, zz) == Tile::tallgrass_Id) { - level->destroyTile(xx, yy, zz, false); + if (level->getGameRules()->getBoolean(GameRules::RULE_MOBGRIEFING)) + level->destroyTile(xx, yy, zz, false); mob->ate(); } else if (level->getTile(xx, yy - 1, zz) == Tile::grass_Id) { - level->levelEvent(LevelEvent::PARTICLES_DESTROY_BLOCK, xx, yy - 1, zz, Tile::grass_Id); - level->setTileAndData(xx, yy - 1, zz, Tile::dirt_Id, 0, Tile::UPDATE_CLIENTS); + if (level->getGameRules()->getBoolean(GameRules::RULE_MOBGRIEFING)) + { + level->levelEvent(LevelEvent::PARTICLES_DESTROY_BLOCK, xx, yy - 1, zz, Tile::grass_Id); + level->setTileAndData(xx, yy - 1, zz, Tile::dirt_Id, 0, Tile::UPDATE_CLIENTS); + } mob->ate(); } } \ No newline at end of file diff --git a/Minecraft.World/HellBiome.cpp b/Minecraft.World/HellBiome.cpp index d9d90805..9e7b49f9 100644 --- a/Minecraft.World/HellBiome.cpp +++ b/Minecraft.World/HellBiome.cpp @@ -14,4 +14,5 @@ HellBiome::HellBiome(int id) : Biome(id) enemies.push_back(new MobSpawnerData(eTYPE_GHAST, 50, 4, 4)); enemies.push_back(new MobSpawnerData(eTYPE_PIGZOMBIE, 100, 4, 4)); enemies.push_back(new MobSpawnerData(eTYPE_LAVASLIME, 1, 4, 4)); + enemies.push_back(new MobSpawnerData(eTYPE_SKELETON, 1, 4, 4)); } \ No newline at end of file