Stalwart Dungeons Bug Fixes
Bug fixes and performance improvements for Stalwart Dungeons. All fix groups can be toggled in stalwartdungeonsbugfix-common.toml and stalwartdungeonsbugfix-client.toml.
Fixed Bugs & Performance Issues
Native World Generation & Dungeon Placement Lag
- Converted all 3 dungeons to native Minecraft Structures: Registered
stalwart_dungeons:awful_dungeon,stalwart_dungeons:keeping_castle, andstalwart_dungeons:end_dungeonas native worldgen Structures & Structure Sets (reusing the original NBT templates directly), restoring full support for/locate structure, Explorer's Compass / Structure's Compass, FTB Quests, structure-spacing mods, all 4 rotations, and chunk-by-chunk placement without pop-in freezes. - Nether dungeons breaking bedrock / floating / overlapping: Shared Nether structure set spacing + safe Nether cavern ground search & bedrock protection prevent Nether roof/floor bedrock breaks, mid-air/lava spawns, and cross-biome overlaps.
- End dungeon spawning in void: Removed
the_voidfromend_dungeon_biome_modifier, blocked void (y < 45) and main End island (< 1000blocks) spawns, and verified island footprint before placing. - Legacy trigger & throwable spawner optimization: Optimized all 3 dungeon trigger placement procedures (23k–44k blocks) to run server-only, remove the anchor block first, ignore structure blocks, protect bedrock, and use
flag = 2(fallback toggleable in config).
Custom Shields, Recipes, Drops & Gear
- Custom shields unable to block: Restored
ToolActions.SHIELD_BLOCKonTungsten Shield,Warted Shield, andChorundum Shield, added proper anvil repair ingredients (Tungsten Ingot/Chorundum), eliminated duplicate durability deduction, registered theblockingitem model predicate, and fixed brokenceleste2a/celeste2bshield model overrides so shields visually raise when blocking. - 7 building blocks dropping nothing when mined: Added missing block loot tables for
nether_bricks_and_netherrack_{slab,stairs},nether_bricks_and_soul_sand_{slab,stairs}, andpurpur_bricks_and_endstone{,_slab,_stairs}(including double-slab 2x drops). - Smithing Table recipes broken / marked incomplete: Added
minecraft:netherite_upgrade_smithing_templatetonetherite_hammer_recipeand prevented template-freeWarted Tungstensmithing upgrades from being flagged asisIncompletein JEI / Recipe Book. - Nether Hammer auto-smelt restored: Fixed auto-smelt completely failing because
mineBlockran after the block was already replaced withAIR; now properly smelts drops inBlock#getDropswith Silk Touch, Fortune, and Creative compatibility. - Thunder Strike enchantment: Fixed anvil restriction, per-check allocations, and lightning attribution; added missing
enchantment.stalwart_dungeons.thunder_strike.desctranslation; protected the attacker and dropped items from self-summoned melee lightning; made sneak-to-trigger configurable. - Hardcoded tooltip typos: Fixed
"Brun"->"Burn","Imunise"->"Immunize", and"Clear all effect of ennemy"->"Clear all effects of enemy"on client tooltips.
Crashes & Data Safety
- Dedicated server
Minecraft.getInstance()crashes: Removed client-only calls fromShulkerCannonEntityIsHurtProcedure,ShulkerCannonItemRightclickedProcedure, andSporePotionExpiresProcedure. ItemStack.EMPTYsingleton corruption: FixedShulkerCannonItemRightclickedProceduremutatingItemStack.EMPTY.setCount(1)and wiping the entire held stack instead of shrinking by 1.- Awful Ghast
Ticking EntityNPE crash: Guarded null/dead targets inAwfulGhastEntitycharge AI. - Broken Boss & Mob loot tables (plus Looting support): Fixed
awful_ghastloot table type (minecraft:generic->minecraft:entity), fixed invertedmin > maxcrystal drop counts inawful_ghast(1..4) andshelterer_without_armor(2..4), and addedminecraft:looting_enchantsupport across all 7 entity loot tables. - Server delayed work queue (
workQueue): Added server thread-group validation, non-positive delay leak prevention, O(1) removal, exception isolation, and cross-world cleanup on server stop.
Server & Client Performance (Lag Fixes)
- Transient Block idle polling lag (554 blocks per Keeping Castle): Replaced permanent 10-tick polling on idle closed Transient Blocks with event-driven
neighborChangedpropagation, fixedtagCooldown == 5.0permanent stuck-open leak, and eliminated per-ticksendBlockUpdatedand 0-volume sound packet spam. - Igniter server tick & packet spam (56 blocks per Awful Dungeon): Moved Igniter ambient soul-fire particles from permanent server scheduled ticks to standard client-side
animateTick. - Armor helmet per-frame
bakeLayerFPS drop: Cached custom models for Tungsten, Warted Tungsten, and Chorundum helmets (resource-reload safe) instead of re-baking and allocating 8ModelParts every frame. - Entity renderer per-frame allocations: Cached texture
ResourceLocationinstances across all 11 entity renderers and the SheltererEyesLayerRenderType. - Flying mob pathfinding lag: Replaced blind underground-drilling random stroll targets on
AwfulGhast,Propulk, andReinforcedBlazewith open-air stroll checks and removed duplicate ground stroll goals. - Per-tick
MobEffectEvent.Removeevent storms: GuardedPropulkand all 3 full armor sets (Tungsten,Warted Tungsten,Chorundum) to run server-only and checkhasEffect()before callingremoveEffect(). - Shield smelting recipe scan hack: Stopped all 3 custom shields from scanning every smelting recipe on every right-click release (and shooting invisible dummy arrows if a recycling recipe exists).
Blocks, Maps, Tags & Modular Tool Compatibility
- Xaero & vanilla map invisibility: Assigned accurate vanilla
MapColors to all 39 blocks (previouslyMapColor.NONE). - Modular tool compatibility (Tinkers' Construct / Tetra / etc.): Removed hardcoded
instanceof PickaxeItemchecks from all 23 blocks and delegated to standard tag-based harvesting (mineable/pickaxeandneeds_{stone,iron,diamond}_tool). - Solid dungeon walls leaking skylight: Fixed 15 opaque solid blocks that wrongly returned
propagatesSkylightDown = trueandgetLightBlock = 0. - Missing standard tags: Completed missing
minecraftandforgetags for blocks (including 13 brick blocks missing frommineable/pickaxe), ores, tools, armor, shields,forge:bosses, andminecraft:skeletons. - Teleporter & Pearl bugs: Fixed empty
{}NBT pollution on hover (TeleporterPearlItem) and collision; fixedTeleporterGUIMenu#stillValidstaying open forever; fixedmoveItemStackToslot validation and hopper junk insertion; prevented unbound(0, 0, 0)teleports, forced unloaded-chunk loads, and rapid self-damage via configurable cooldown.
Entities, Bosses & Altars
- Boss & Mob AI fixes: Fixed
SheltererWithoutArmorinverted AI priorities (RandomStrollGoaloverridingMeleeAttackGoal) and added fall-damage immunity matching Phase 1; fixedNetherKeeperattacking its owner after taming, wrongOwnerHurtByTargetGoalselector, duplicate melee goals, breeding at(0, 0, 0), unboundedGiddyBlazesummoning, hardcoded HP threshold, and 3 wrong flame particle coordinates; fixedAwfulGhastpercentage HP threshold; fixedSheltererdeath deleting nearby player items, spawningBlocks.AIR, and duplicating phase-2 bosses; fixedPropulkapplying Levitation to itself; fixedLevitationProjectilefailing to apply Levitation on hit. - Spore effect & Cocoon fixes: Prevented
SporeMobEffectfrom prematurely spawningNetherWartCocoonon refresh or early cure (milk/totem/commands); preventedNetherWartCocoonfrom trapping Creative/Spectator players (and immediately ejects them); fixed cocoon water-discard missingreturn, spore projectile self-infection, spore bottle sound/particle loop bug, and spore collection duplication. - Mob categories & dupes: Fixed
Propulk(CREATURE->MONSTER) andSporeProjectile(MONSTER->MISC) spawn caps; disallowed arrow pickup duplication on all 4 consumable throwables (AwfulDungeonSpawner,KeepingCastleSpawner,EndDungeonSpawner,SporeBottle). - Altars, traps & equipment: Fixed
NetherKeeperAltarceiling/floor clearance so the boss no longer suffocates in the roof; made all 3 altars,ObsidianStriker,ShulkerCannon,AncientFire,AwfulGun,GiddyStatue,SporeVaporizer,SoulMagmaBricks, andBurningserver-authoritative, cooldown-enforced, and Creative-safe.
坚固地牢 Bug 修复
针对 Stalwart Dungeons(坚固地牢) 的全量 Bug 修复与性能优化附属模组。所有修复模块与数值上限均可在 stalwartdungeonsbugfix-common.toml 与 stalwartdungeonsbugfix-client.toml 中独立开关与调整。
已修复的 Bug 与卡顿问题
原生世界生成与大型地牢卡顿
- 三座地牢重构为原版原生 Structure:正式注册
stalwart_dungeons:awful_dungeon、stalwart_dungeons:keeping_castle与stalwart_dungeons:end_dungeon原生结构与结构集(零拷贝复用原模组完整 NBT 模板),完整支持/locate structure、探险家/结构指南针、FTB Quests、结构间距控制模组、四方向旋转与分区块渐进生成,彻底消除玩家靠近触发块时瞬间放置 2~4 万方块的卡死与砸建筑问题。 - 下界地牢击穿基岩 / 悬空 / 重叠互切:可怕地牢与守望城堡共享下界结构集间距防跨群系重叠,通过噪声列搜索下界安全洞穴地面并挂载基岩保护处理器,彻底避免击穿顶/底基岩与悬空沉岩浆。
- 末地地牢生成在虚空:从
end_dungeon_biome_modifier移除the_void,阻止在虚空(y < 45)与末地主岛 1000 格范围内生成,并多点校验真实岛屿面积。 - 旧触发块与投掷刷怪笼优化:保留旧存档触发块与投掷物品兼容并优化放置流程(仅服务端执行、先移除触发块、忽略结构方块、保护基岩、
flag = 2),同时支持在配置中关闭原生结构回退旧模式。
自定义盾牌、配方、掉落与装备
- 三面自定义盾牌彻底恢复格挡:为钨盾、疣化钨盾与紫颂盾补全
ToolActions.SHIELD_BLOCK行为与铁砧修理材料(钨锭 / 紫颂锭),避免与原版盾牌格挡重复扣耐久,注册blocking模型谓词并修复损坏的celeste2a/celeste2b模型覆写,恢复第一/第三人称举盾抬起动画。 - 7 个地牢建筑方块挖了永久 0 掉落:为
nether_bricks_and_netherrack_{slab,stairs}、nether_bricks_and_soul_sand_{slab,stairs}与purpur_bricks_and_endstone{,_slab,_stairs}补全缺失的方块战利品表(含双层台阶双倍掉落)。 - 锻造台配方失效 / 标为不完整:为
netherite_hammer_recipe补齐原版netherite_upgrade_smithing_template,并修复 5 个无模板疣化钨锻造台配方被误判为isIncomplete导致 JEI/配方书异常的问题。 - 下界之锤自动熔炼彻底修复:修复原版在方块被破坏为空气后才读取方块状态导致自动熔炼完全失效的 Bug,改为在
Block#getDrops阶段转换掉落物,兼容时运、精准采集与创造模式。 - 雷击附魔完善:修复铁砧限制、数组重复分配与闪电归因;补全缺失的
enchantment.stalwart_dungeons.thunder_strike.desc附魔描述;保护攻击者本人与地面掉落物不被自己近战召唤的雷电误伤/烧毁;新增是否必须潜行触发的配置项。 - 硬编码英文 Tooltip 拼写修正:客户端修正
"Brun"->"Burn"、"Imunise"->"Immunize"与"Clear all effect of ennemy"->"Clear all effects of enemy"。
崩溃与数据安全
- 专用服务端
Minecraft.getInstance()崩溃:移除ShulkerCannonEntityIsHurtProcedure、ShulkerCannonItemRightclickedProcedure与SporePotionExpiresProcedure中的客户端专属调用。 ItemStack.EMPTY单例被污染:修复放置潜影加农炮时调用ItemStack.EMPTY.setCount(1)污染全局空物品并吞掉整组物品的严重问题。- 可怕恶魂
Ticking Entity空指针崩溃:为可怕恶魂冲锋 AI 全路径补充目标非空与存活校验。 - Boss 与怪物战利品表修复(含抢夺加成):修复
awful_ghast战利品表类型错误(minecraft:generic->minecraft:entity)及awful_ghast(1..4)、shelterer_without_armor(2..4)中min > max的掉落数错误,并为全部 7 张实体战利品表补齐minecraft:looting_enchant抢夺附魔加成。 - 服务端延迟队列(
workQueue)缺陷:补充服务端线程校验、非正延迟不泄漏、单次遍历 O(1) 移除、单任务异常隔离与关服清理。
服务端与客户端卡顿优化
- 瞬态方块闲置轮询卡顿(每座守望城堡 554 块):取消关闭态永久 10t 定时轮询,改为
neighborChanged事件驱动传播(闲置 0 tick);修复开启态tagCooldown == 5.0永久卡开、每刻sendBlockUpdated广播风暴及 0 音量音效发包。 - 点燃器服务端发包卡顿(每座可怕地牢 56 块):将灵魂火焰粒子从服务端永久 10t 定时任务迁移至原版客户端
animateTick。 - 自定义头盔每帧
bakeLayer掉帧:缓存钨、疣化钨与紫颂锭头盔模型(兼容 F3+T 资源重载),消除每帧重复烘焙与 8 个ModelPart分配。 - 实体渲染器每帧对象分配:静态缓存全部 11 个实体渲染器的贴图
ResourceLocation与庇护者发光层RenderType。 - 飞行怪寻路卡顿:替换
AwfulGhast、Propulk、ReinforcedBlaze盲选地下实心岩层的空中随机漫步目标,并移除重复竞争的地面漫步目标。 - 每刻
MobEffectEvent.Remove事件风暴:推进虫与三套护甲(钨、疣化钨、紫颂锭)改为仅服务端且先检查hasEffect()再移除效果。 - 三面盾牌松手全服扫描熔炼配方:取消盾牌松开右键时扫描全服熔炼配方的无效占位逻辑,同时避免整合包添加回炉配方时误射隐形箭并扣耐久。
方块、地图显示、标签与模块化工具兼容
- Xaero 地图与原版地图隐形:为全部 39 个缺失地图色(
MapColor.NONE)的方块补齐匹配材质的原版MapColor。 - 模块化工具兼容(匠魂 / Tetra 等):移除 23 个方块硬编码的
instanceof PickaxeItem判定,统一回归原版/Forge 标准标签挖掘体系。 - 实心方块漏光:修复 15 个实心不透明方块误返回
propagatesSkylightDown = true与getLightBlock = 0导致的地牢漏光与光照计算开销。 - 标准标签补全:补齐 13 个遗漏在
mineable/pickaxe外的石砖方块,补全三档needs_*_tool、楼梯/台阶/墙/灵魂疾行、矿物、工具、盾牌、护甲、forge:bosses及minecraft:skeletons标签。 - 传送器与传送珍珠缺陷:消除传送珍珠悬停与传送器碰撞写入空
{}NBT 污染;修复传送器 GUI 无限距离不关闭、快捷移动槽位错判及漏斗塞杂物;阻止未绑定珍珠传送到(0, 0, 0)与强制加载未加载区块,增加可配置传送冷却。
实体、Boss 与祭坛玩法修复
- Boss 与怪物 AI 修复:修复无甲庇护者 AI 优先级倒置(漫步盖过近战追击)并补全与一阶段一致的摔落伤害免疫;修复下界守卫驯服后攻击主人、
OwnerHurtByTargetGoal错加进goalSelector、重复近战目标、繁殖在(0, 0, 0)初始化、眩晕烈焰人无上限召唤、血量硬编码与 3 处火焰粒子坐标写死;修复可怕恶魂百分比半血判定;修复庇护者死亡误删玩家掉落物、掉落空气方块与重复刷二阶段 Boss;修复推进虫给自己施加飘浮;修复漂浮投射物命中实体不给飘浮。 - 孢子效果与下界疣茧修复:阻止孢子效果刷新或被牛奶/不死图腾/指令提前净化时误生成下界疣茧;阻止下界疣茧抓取并锁死创造/旁观模式玩家(已骑乘时立即弹出);修复茧入水销毁缺
return、孢子投射物自我感染、孢子瓶音效粒子误放循环内与右键收集重复刷瓶。 - 生物分类与刷物品漏洞:修正
propulk(CREATURE->MONSTER)与spore_projectile(MONSTER->MISC)刷怪分类;禁止 4 种一次性投掷物(三座地牢刷怪笼投掷物与孢子瓶)拾取刷物品。 - 祭坛、机关与装备修复:修复下界守卫悬挂/地面祭坛生成净空避免 Boss 卡屋顶窒息;修复三祭坛、黑曜石击发器、潜影加农炮、远古之火、可怕火枪、眩晕雕像、孢子喷发器、灵魂岩浆砖与燃烧效果的双端同步、冷却校验、创造消耗与旁观者误触发问题。

