TU53 + Bug Fixes (Many)

Patch Notes:
Blocks
+ Colored shulker boxes
+ Concrete powder
+ Concrete
+ Glazed terracotta
Items
+ Shulker shell
+ Iron nugget
UI Changes
+ Added Custom Controls to Keyboard & Mouse, as well as Controller
+ Added Custom SuperFlat
+ Added Edit Server Menu
+ Added Firework Crafting
Feature Changes
+ Host Options
+ Added Pick Block
+ Added off-hand slot for maps and arrows.
Bug Fixes & changes
+ TU47: Banner hitbox wrong (and inventory model fixed)
+ TU47/48: Ice not melting properly
+ TU48: Dead bushes not dropping sticks
+ TU48: Guardians and polar bears not dropping cooked fish when on fire
+ TU48: Bonus chest missing saplings and seeds
+ TU48: Frosted ice obtainable
+ TU48: Hoppers not collecting items
+ TU48: Wither skeletons spawning in 2-high gaps
+ TU48: End crystals exploding with “TNT Explodes” off
+ TU48: Tamed ocelots staying hostile
+ TU48: Signs not placing on tall grass
+ TU51: Skeleton hitbox wrong
+ TU53: Fall damage in shallow water
+ TU53: Squids not spawning in man-made pools
+ Elytra has been improved to be more accurate to the source material
+ Removed Spectral Arrow from crafting
+ Fixed several broken item descriptions
+ You can no longer cook Pufferfish or Clownfish
+ Fixed scaling issue with paperdoll and chat
+ Iron and gold armor can now be smelted into nuggets.
+ More items can now be used as fuel in a furnace.
+ Using a firework rocket while gliding with elytra will now give the player a boost.
+ Changed the color of dyes, wool, carpets, and banners.
+ Reordered all colored blocks and items in the Creative inventory. Banners now have the same order of colors as all other colored blocks and items.
+ Fishing rods can now hook on entities without causing knockback or pseudo-damage.
+ Fixed banner crafting
+ Fixed Map colors for certain blocks
+ Fixed Path block height
+ Fixed String block issues
+ Fixed Item frame culling.
+ Fixed Tutorial world NBT/Block State issues
+ Fixed World Slider
+ Fixed Enderman AI
+ Fixed Player animation bug
+ HUD Flash text changes
+ Generation accuracy changes
+ Many other small accuracy changes and fixes
This commit is contained in:
Tranqlmao committed 2026-11-24 13:44:06 -05:00
1 parent 8de3b79e65
commit 9abd52985e
483 files changed
+15228 -4114

No files matched your search

+60 -15
View File
@@ -280,16 +280,20 @@ int BannerPatternRecipe::getBannerPatternCount(shared_ptr<ItemInstance> banner)
vector<const wchar_t*> BannerPatternRecipe::getBannerPatternIds(shared_ptr<ItemInstance> banner) {
vector<const wchar_t*> returnVector;
CompoundTag* tag = banner->getTag();
CompoundTag* tag = banner != nullptr ? banner->getTag() : nullptr;
if (tag != nullptr && tag->contains(L"BlockEntityTag", Tag::TAG_Compound)) {
CompoundTag* bet = tag->getCompound(L"BlockEntityTag");
if (bet->contains(L"Patterns")) {
ListTag<Tag>* list = bet->getList(L"Patterns");
for (int i = 0; i < list->size(); i++) {
Tag* tag = list->get(i);
if (tag->getId() == Tag::TAG_String) { //we could also check for "Pattern" string but thats string comp
returnVector.push_back(dynamic_cast<StringTag*>(tag)->data.c_str());
ListTag<CompoundTag>* list = static_cast<ListTag<CompoundTag>*>(static_cast<void*>(bet->getList(L"Patterns")));
for (int i = 0; list != nullptr && i < list->size(); i++) {
CompoundTag* entry = list->get(i);
if (entry == nullptr || !entry->contains(L"Pattern")) continue;
wstring id = entry->getString(L"Pattern");
for (int p = 0; p < PATTERN_COUNT; p++) {
if (id == PATTERNS[p].id) {
returnVector.push_back(PATTERNS[p].id);
break;
}
}
}
}
@@ -316,20 +320,61 @@ vector<char> BannerPatternRecipe::getBannerPatternIndexs(shared_ptr<ItemInstance
vector<char> BannerPatternRecipe::getBannerColorIndexs(shared_ptr<ItemInstance> banner) {
vector<char> returnVector;
CompoundTag* tag = banner->getTag();
CompoundTag* tag = banner != nullptr ? banner->getTag() : nullptr;
if (tag != nullptr && tag->contains(L"BlockEntityTag", Tag::TAG_Compound)) {
CompoundTag* bet = tag->getCompound(L"BlockEntityTag");
if (bet->contains(L"Patterns")) {
ListTag<Tag>* list = bet->getList(L"Patterns");
for (int i = 0; i < list->size(); i++) {
Tag* tag = list->get(i);
if (tag->getId() == Tag::TAG_Int) { //we could also check for "Color" string but thats string comp
returnVector.push_back(dynamic_cast<IntTag*>(tag)->data);
}
ListTag<CompoundTag>* list = static_cast<ListTag<CompoundTag>*>(static_cast<void*>(bet->getList(L"Patterns")));
for (int i = 0; list != nullptr && i < list->size(); i++) {
CompoundTag* entry = list->get(i);
if (entry == nullptr || !entry->contains(L"Pattern")) continue;
returnVector.push_back(static_cast<char>(entry->getInt(L"Color")));
}
}
}
return returnVector;
}
namespace
{
struct CraftRows { const wchar_t* id; const char* rows[3]; };
const CraftRows s_craftRows[] =
{
{ L"cr", { "# #", " # ", "#*#" } }, { L"ss", { "# #", "#*#", " " } }, { L"sc", { " # ", "###", "*# " } },
{ L"bs", { " ", " * ", "###" } }, { L"cs", { " # ", " #*", " # " } }, { L"dls", { " #", " #*", "# " } },
{ L"drs", { "# ", " #*", " #" } }, { L"ls", { "# ", "#* ", "# " } }, { L"ms", { " ", "###", " * " } },
{ L"rs", { " #", " *#", " #" } }, { L"ts", { "###", " * ", " " } }, { L"ld", { "## ", "#* ", " " } },
{ L"rud", { " ##", " *#", " " } }, { L"lud", { " ", "#* ", "## " } }, { L"rd", { " ", " *#", " ##" } },
{ L"hh", { "###", "###", " * " } }, { L"hhb", { " * ", "###", "###" } }, { L"vh", { "## ", "##*", "## " } },
{ L"vhr", { " ##", "*##", " ##" } }, { L"mc", { " ", " # ", " * " } }, { L"mr", { " # ", "#*#", " # " } },
{ L"bl", { " ", " * ", "# " } }, { L"br", { " ", " * ", " #" } }, { L"tl", { "# ", " * ", " " } },
{ L"tr", { " #", " * ", " " } }, { L"bt", { " * ", " # ", "# #" } }, { L"tt", { "# #", " # ", " * " } },
{ L"bts", { " ", "#*#", " # " } }, { L"tts", { " # ", "#*#", " " } }, { L"bo", { "###", "#*#", "###" } },
{ L"gra", { "#*#", " # ", " # " } }, { L"gru", { " # ", " # ", "#*#" } },
};
}
const char* BannerPatternRecipe::getCraftRow(int patternIndex, int row)
{
if (patternIndex < 0 || patternIndex >= PATTERN_COUNT || row < 0 || row > 2) return nullptr;
for (const CraftRows& entry : s_craftRows)
{
if (wcscmp(entry.id, PATTERNS[patternIndex].id) == 0) return entry.rows[row];
}
return nullptr;
}
int BannerPatternRecipe::getCraftDyeCount(int patternIndex)
{
if (patternIndex < 0 || patternIndex >= PATTERN_COUNT) return 0;
if (PATTERNS[patternIndex].specialItemId != 0) return 1;
int count = 0;
for (int row = 0; row < 3; row++)
{
const char* line = getCraftRow(patternIndex, row);
if (line == nullptr) return 0;
for (int col = 0; col < 3; col++) if (line[col] == '#') count++;
}
return count;
}