Anti-Grian Switch reborn
这是《Hermitcraft》第九季中 Anti-Grian 开关的复刻版,以及(作为延伸)《Hermitcraft》第十季初期出现的 Anti-Gem 开关。它允许你触发 Continuity 模组中的一个已知错误,该错误原本与 Sodium 渲染代码不兼容。不过这个功能可以在任何地方使用,没错,任何地方!配合(我希望是)任意模组都能生效。
使用方法
默认情况下,你可以通过 CTRL + G 来配置 Anti-Grian 开关。使用按键绑定 Should Control Be Held (AGS Reborn)(y/n)(是否按住控制键),顾名思义,用于配置是否需要按住 Control 键。如果设置为 n,则无需按住 Control 键即可激活;如果设置为其他值,它将自动设为 y。当开关处于开启状态时,如果你放置一个重力方块,游戏将会崩溃。
工作原理
本模组利用了 Minecraft 渲染机制中的一个奇怪特性。这源于 Continuity 和 Sodium 在 1.19 版本中的跨兼容性错误,当时未安装 Indium,导致 Sodium 的渲染引擎未能正确处理 Fabric Rendering API 调用,并抛出空指针异常。当尝试渲染下落方块实体且开关处于开启状态时,我的模组会生成一个带有伪造堆栈跟踪和 NullPointerExecption 的游戏崩溃。这是一个渲染线程崩溃,被视为“安全”崩溃。至少在我的测试中,它应该不会损坏你的世界¹。
视频使用指南
如果你将本模组用于公开观看的视频(例如发布在 TikTok 或 YouTube 上),你必须:
- 提供 Modrinth、CurseForge 和 GitHub 页面的链接。
- 不要声称对本模组的功劳。
¹我绝不对因 滥用 利用本模组核心功能而导致的世界损坏、服务器封禁或数据丢失承担任何责任。
Anti-Grian Switch reborn
This is a reproduction of the Anti-Grian switch from Hermitcraft season 9, and (by extension, as they were caused by the same mod conflict) the Anti-Gem switch from the beginning of Hermitcraft season 10. It allows you to toggle an error that existed in the Continuity mod which did not play nice with sodium rendercode. But this can be used anywhere, that's right, anywhere! With (I hope) any mod.
Use
By default, you configure the anti Grian switch using CTRL + G. You use the keybind Should Control Be Held (AGS Reborn)(y/n) to, as the name implies, configure wether or not the control key should be held. If it's set to n, than you don't need to hold control to activate it, if it's set to anything else, it will auto-set to y. If you place a gravity block when the switch is set to on, then the game will crash.
How it works
This mod takes advantage of a strange quirk in how minecraft renders. This is based off a cross-compatibility error between Continuity and Sodium in 1.19 versions when Indium is not present where Sodium's rendering engine did not handle Fabric Rendering API calls correctly, and threw null pointer errors. My mod crashes the game with a fake stacktrace and NullPointerExecption when it tries to render a falling block entity and the switch is on. It is a renderthread crash, which is considered a "safe" crash. It should not corrupt your worlds¹ at least, it didn't in my testing.
Video usage guidelines
If you use this mod in a video that will be publicly viewable (e.g. posted on tik-tok or youtube) then you have to:
- Provide links to the modrinth, curseforge, and github pages.
- NOT take attribution for the mod.
¹I DO NOT take any responsibility for corrupted worlds, server bans, or lost data caused by abusing leveraging this mod's core function.
评论 0
登录后参与评分
还没有评论,来抢沙发吧