在同时运行 Future Shops 和 TaCZ (Timeless and Classics Zero) 时,玩家通常无法在商店 GUI 中看到武器的属性(如射速、伤害或弹药量)。这是因为 TaCZ 使用自定义图形叠加层来显示其属性,而 Future Shops 强制将工具提示渲染为纯文本,绕过了 Forge 的工具提示渲染事件。
这个兼容模组通过以下两项操作解决了该问题:
- 全局注入基于文本的武器属性:将其添加到所有 TaCZ 武器的工具提示中。
- 通过 Mixin 修补 Future Shops:确保在渲染工具提示时正确传递
ItemStack,从而保证所有 UI 叠加层、背景颜色和注入的文本都能正确渲染。
对于需要玩家在花费游戏货币前比较武器规格 PvP、SMP 或射击地图服务器来说,这是完美之选!
特性
- 基于文本的武器属性:自动通过 TimelessAPI 提取隐藏的 GunData,并将其作为美观的、带颜色编码的文本行附加到武器的工具提示中。
- 伤害:直接从子弹数据中提取。
- 射速 (RPM):准确反映武器每分钟发射的弹丸数量。
- 弹药:显示最大弹匣容量。
- 通用可见性:这些文本属性在玩家的物品栏、箱子内以及最重要的是在 Future Shops GUI 中均可看到。
- Future Shops UI 修复:使用 Mixin 覆盖 ShopUiUtil.renderItemTooltip,恢复标准的 Minecraft 工具提示渲染逻辑,防止 Future Shops 抑制自定义模组的工具提示。
When running Future Shops alongside TaCZ (Timeless and Classics Zero), players typically cannot see the stats of guns (like Fire Rate, Damage, or Ammo) inside the shop GUI. This is because TaCZ uses a custom graphical overlay for its stats, while Future Shops forcefully renders tooltips as plain text, bypassing Forge's tooltip rendering events.
This compatibility mod solves that problem by doing two things:
- Injecting explicit text-based weapon stats globally into the tooltip of all TaCZ guns.
- Patching Future Shops via Mixin to properly pass the ItemStack during tooltip rendering, ensuring that all UI overlays, background colors, and injected texts render correctly.
Perfect for PvP, SMP, or Shooting map servers where players need to compare weapon specifications before spending their in-game currency!
Features
- Text-Based Gun Stats: Automatically extracts hidden GunData via the TimelessAPI and appends them as beautiful, color-coded text lines to the weapon's tooltip.
- Damage: Extracted directly from the bullet data.
- Fire Rate (RPM): Accurately reflects the gun's rounds per minute.
- Ammo: Shows the maximum magazine capacity.
- Universal Visibility: These text stats are visible everywhere in the player's inventory, inside chests, and most importantly, inside the Future Shops GUI.
- Future Shops UI Fix: Overrides ShopUiUtil.renderItemTooltip using Mixin to restore standard Minecraft tooltip rendering logic, preventing Future Shops from suppressing custom mod tooltips.
评论 0
登录后参与评分
还没有评论,来抢沙发吧