请注意,本模组始终优先发布在 CurseForge 上。Modrinth 上的发布由人工完成,通常会在 CurseForge 发布后不久跟进,但我有时会偷懒或忘记,可能会稍作推迟。如果你从 Modrinth 下载了 jar 文件,并在崩溃时被告知该 jar 文件未由我签名,请在 Discord 上联系我,以便我替换有问题的 jar 文件。那里的描述也会更新得更及时。
这是旧版模组 Thaumcraft 4 的附属模组。它不适用于新版 Thaumcraft 5/6。此附属模组仅适用于 Minecraft 1.7.10。
许可证为 AGPL 3.0,并针对 Minecraft 特定问题附加了例外条款。如果你想知道这意味着什么:即使你仅在服务器端使用 TC4Tweaks,也必须向用户提供本模组的源代码副本。这主要在你使用自定义 TC4Tweaks jar 文件时重要,因为我希望获得你的贡献回馈。对于本模组的正常使用,只需在你的整合包/客户端下载说明中附上本页面、GitHub 仓库或 CurseForge 页面的链接即可。
使用方法
本模组在客户端和服务器端均为可选安装,且两端可以自由使用不同版本的模组。
(不完整)功能列表
通过鼠标滚轮浏览要素列表
这是本附属模组最初的功能。它将允许你使用鼠标滚轮在研究桌的要素列表中滚动。再也不用点击 yay!当你将鼠标悬停在任何研究笔记上时,模组会提示你已启用滚动功能。
通过鼠标滚轮浏览研究书页
这将允许你使用鼠标滚轮在书中浏览各个独立页面(即带有描述性文本、配方、神秘构造插图等的页面)。再也不用点击 yay!
缩放奥术书 GUI
更改 .minecraft/config/tc4tweaks.cfg 中的 browserScale 选项。2.0 适合在常规 GUI 缩放下使用 1920x1080 屏幕的用户,而 1.0 则与原版相同。如果你使用其他 GUI 缩放比例或分辨率,可能需要调整此值。

修复焦点空指针异常 (NPE)
如果你执行以下操作:
- 装备来自某个 TC4 附属模组的焦点物品 MyFocus
- 从游戏中移除该附属模组
- 恭喜你!如果你拿起这根魔杖,游戏将会崩溃。
本模组修复了这个问题。
性能提升
基本上,这将有助于缓解在大型整合包中打开奥术工作台时的客户端卡顿。这也有助于减轻因玩家使用奥术工作台一次性制作 64 个物品而产生的服务器卡顿。
限制 GUI 更新频率
1.1.0 及更高版本允许你将奥术工作台合成结果的更新频率限制为每 X 个游戏刻一次。默认值为 4。如果觉得效果不够好,可以将其设置得更长。你可以无需重启客户端,通过访问本模组的配置 GUI(Esc | Mod Options | 在模组列表中选择 TC4 Tweaks | Config | general)来动态更改此值。
这将有助于缓解魔杖充能带来的卡顿。从 1.2.0-beta2 版本开始,仅此一项就足以修复该卡顿,并且很大程度上不再需要更激进的优化(如下文所述)。
其他性能补丁
TC4 中一些随机导致卡顿的代码变得更加高效。其中大多数只影响客户端性能(FPS),但有些甚至对专用服务器也有影响。这些影响服务器的补丁主要针对奥术合成卡顿。1.2.0-beta12 及更高版本增加了新的补丁,旨在修复炼金炉卡顿。1.4.20 及更高版本将减少能量节点检查是否仍能看见中继器时造成的卡顿。通常建议在专用服务器上安装本模组,它会带来显著差异。
如果你对具体细节感兴趣,请参阅“技术解释”部分。
更激进的优化
1.2.0-beta1 及更高版本附带了一项实验性的可选功能,可防止奥术工作台作为普通工作台运行。这在大型整合包中占据了大部分卡顿来源。正如你可能看到的,这是一项带有一些副作用的优化。鼓励你在游戏中尝试以查看其效果。
你可以方便地在运行时开启或关闭此功能(即无需重启客户端),方法是访问本模组的配置 GUI(Esc | Mod Options | 在模组列表中选择 TC4 Tweaks | Config | general)。作为一种预防措施,仅当 checkWorkbenchRecipes 设置为 false 而非 true 时,此功能才会启用!
尽管这听起来像是在两端都需要开启的更改,但实际上,如果服务器禁用此功能(或根本没有安装此模组),而客户端启用了它,它在客户端侧同样有效。建议在专用服务器上保持此功能关闭,仅在客户端侧开启。

技术解释
本节仅供开发者参考。如果对你来说难以理解,请不要惊慌。
警告:本文本并未频繁更新。请查阅源代码以了解实际发生的情况。
-
`ScanManager#generateItemHash(Item, int)` 不再生成百万个字符串。`hashCode` 将直接计算。这与 GT6 的修复存在冲突,如果检测到 GT6 的加载插件,此功能将不起作用。GT6 的修复将优先执行。 ResearchCategories#getResearch(String)现在改用HashMap,而不是遍历所有已注册的 research。每当服务器启动时,该HashMap将重新计算。如果服务器尚未完成启动,则禁用HashMap查找。- 仅在客户端向
TileMagicWorkbench#setInventorySlotContents(IInventory)注入调用钩子(call hook)。它将更新频率限制为每 200ms 一次。如果有更新被丢弃,将设置一个标志。随后,tick 处理器会在错过更新的情况下尝试每隔 X 个 tick(配置值)进行一次更新。 - FXSonic 的模型已更改为静态,并且仅在资源包重载时重新加载。
- 在
ThaumcraftCraftingManager中,findMatchingArcaneRecipe和findMatchingArcaneRecipeAspects添加了简单的 LRU 缓存,大小可配置(默认为 16)。当缓存满时,旧条目将被驱逐。 - 向 TC4 的映射线程起始处注入了
Thread.currentThread().setPriority(1)。如果以某种方式命中了缓存,优先级将恢复为正常,以试图缓解锁竞争。 GuiResearchRecipeVisitor同时使用了同步方法和ConcurrentMap。现已移除synchronized。- 在
ThaumcraftCraftingManager中改进了getObjectTags。详情请参阅代码。 GuiResearchBrowser中有大量更改。详细信息请参阅net.glease.tc4tweak.asm.GuiResearchBrowserVisitor。- 大多数 TESR 已被修补,如果区块尚未完全加载,则不渲染任何内容。
如果您在使用此插件时遇到任何问题,请将您的问题发送至 GitHub(点击此页面侧边的 Issues 标签)。视频预告片暂不可用。
Please notice the mod is always published to curseforge first. Publication to modrinthn is done by hand and should usually soon follow CF publication, but I sometimes get lazy/forgetful and might postpone this a bit. If you downloaded a jar from modrinth and somehow while crashing it tells you the jar is not signed by me, bug me on discord so I can replace the faulty jar. Description is also more up to date there.
This is an addon to the old mod Thaumcraft 4. It is not intended to be used with newer Thaumcraft 5/6. This addon also only runs on 1.7.10.
License is AGPL 3.0 with additional exceptions on minecraft specific issues. In case you are wondering what that means, it means you are required to hand users a copy of the source code of THIS mod even if you are using TC4Tweaks only on server side. This mostly matters when you are using a custom TC4Tweaks jar, as I'd like to have your contribution back. For normal use of this mod, merely put a link to this page, the github, or curseforge page of this mod alongside your modpack/client download is enough.
Using the mod
This mod is optional on both side and the two side are free to use different version of this mod.
(Incomplete) feature list
Scrolling Through Aspect List
The original function of this addon. This will allow you to scroll through the aspect list in the research table using the mouse wheel. No more clicking yay! The mod will tell you scrolling is enabled when you hover your mouse over any research note.
Scrolling Through Research Pages
This will allow you to scroll through the indiviual pages (the pages that have descripitive texts, recipes, arcane construct illustrations, etc) in the book using the mouse wheel. No more clicking yay!
Scaling up the thaumonomicon GUI
Change the browserScale option in .minecraft/config/tc4tweaks.cfg. 2.0 is suitable for 1920x1080 screens under normal gui scale, whereas 1.0 is the same as original. You may want to use a different value if you use another gui scale or resolution.

Fix focus NPE
If you
- Equip a focus MyFocus from some TC4 addon
- Remove said addon from your game
- Congratulations! If you ever pick up this wand your game would crash.
This mod fixes this problem.
Performance boost
Basically, this will somewhat remedy the client side lag in larger modpacks when you open arcane workbench.This should also alleviate the server lag created from some player crafting 64 items using an arcane workbench.
Throttling the GUI update
Version from 1.1.0 onwards allows you to throttle the Arcane Workbench crafting result update to once every X in game ticks. By default this is 4. You can set it longer if it doesn't seems to be effective enough. This value can be changed at runtime without restarting the client by accessing this mod's config GUI (Esc | Mod Options | Select TC4 Tweaks in the mod list | Config | general).
This will somewhat remedy the lag coming from wand recharging. Starting from version 1.2.0-beta2, this alone should be enough to fix this lag and largely remove the need for more aggressive optimization (as detailed below)
Other performance patch
A few random laggy code in TC4 is made more efficient. Most of them will affect client side performance (FPS) only, yet some of them do have an impact even on dedicated servers. Most of these server-affecting patches are targeting the arcane crafting lag. Version from 1.2.0-beta12 onwards add a new patch aimed to fix alchemical furnace lag. Version from 1.4.20 onwards will reduce lag caused by energised nodes checking if they can still see relay. In general, it is suggested to install this mod on dedicated servers. It will make a difference.
Please refer to Technical explaination section if you are curious about the exact detail.
More aggressive optimizations
Version from 1.2.0-beta1 onwards ships with an experimental opt-in feature that prevents the arcane workbench from functioning as a normal crafting table. This accounts for the bulk of lag in large modpacks. As you can probably see this is an optimization with some side effects. You are encouraged to try it in game to see how it'd work.
This feature can be conveniently turned on or off at runtime (i.e. no client restart needed) by accessing this mod's config GUI (Esc | Mod Options | Select TC4 Tweaks in the mod list | Config | general). As a precaution, the feature is enabled only if checkWorkbenchRecipes is set to false, not true!
Even though this sounds like a change that needs to be turned on at both side, it actually works just as good on client side, if the server disables this (or simply doesn't have this mod installed) while the client enables it. It is suggested to keep this feature off on dedicated servers, and turn it on at client side only.

Technical explaination
This section is intended for fellow developers to only. Please don't panic if it doesn't make sense to you
ALERT: This text is not frequently updated. Please refer to source code to check what's really happening.
- ScanManager#generateItemHash(Item, int) will no longer create a million string. The hashCode will be computed directly. This conflicts with GT6's fix and will not function if GT6's loading plugin is detected. GT6's fix will take precedence.
- ResearchCategories#getResearch(String) will use a HashMap now, instead of going over every research registered. This HashMap will be recomputed whenever the server starts. HashMap lookup will be disabled if the server haven't finished starting.
- A call hook is injected into TileMagicWorkbench#setInventorySlotContents(IInventory) on client side only. It will throttle the update to once per 200ms. If any update is dropped, a flag will be set. A tick handler will then try to update once per X ticks (config value) in case of a missed update.
- FXSonic have its model changed to static and reloaded only upon resourcepack reload.
- In ThaumcraftCraftingManager findMatchingArcaneRecipe and findMatchingArcaneRecipeAspects got a simple LRU cache with configurable size (default to 16). Old entries will be evicted when cache is full.
- An Thread.currentThread().setPriority(1) is injected to the start of TC4's mapping thread. If the cache is hit somehow the priority will be reverted back to normal in an attempt to ease lock contention.
- GuiResearchRecipeVisitor was using synchronized methods and ConcurrentMap at the same time. synchronized is now removed.
- In ThaumcraftCraftingManager getObjectTags got improved. See code for details.
- Huge amount of changes in GuiResearchBrowser. Consult net.glease.tc4tweak.asm.GuiResearchBrowserVisitor for details
- Most TESR are patched to not render stuff if the chunk is not yet fully loaded.
Should you have any problem using this addon, please send your questions to the github (click the Issues tab on the side of this page). Video trailer not yet available.
下载 Thaumcraft 4 Tweaks
下载 Thaumcraft 4 Tweaks
下载 Thaumcraft 4 Tweaks
下载 Thaumcraft 4 Tweaks
下载 Thaumcraft 4 Tweaks
下载 Thaumcraft 4 Tweaks
下载 Thaumcraft 4 Tweaks
下载 Thaumcraft 4 Tweaks
下载 Thaumcraft 4 Tweaks
下载 Thaumcraft 4 Tweaks
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧