请帮助我,我的LiquidBounce 1.12.2 b73无法加载自定义js
-
是这样的,我尝试加载一个自己编写的js发现无法被正确加载,即使我使用了ai帮助我修正其中的错误和替换了mcp-stable_22.srg文件但问题依旧如此。下面是我的js脚本文件,如果有人发现了其中的错误可以告诉我吗?谢谢了
autoeat_javascript.js
autoeat.js (legacy script)
Autoeat.js (api2) -
(by mumy)
LiquidBounce 1.12.2 b73 官方已经放弃支持了,除非你需要安装一些这个版本才有的mod否则我不推荐你用它
对于 API 上,LB Nextgen 和 LB legacy 虽然都是 APIv2 的格式,但对于细节上还是有很多不同,加上官方已经去除了 Legacy API 文档,如果真要编写 Legacy 的 JS 那我建议你有一定的开发经验作为基础至于怎么解决这个JS脚本错误问题,建议加载JS后查看MC客户端日志是否出现 LB ScriptManager 的错误信息(一般在 .minecraft\logs\latest.log,如果是PCL2启用了版本隔离的情况那一般在 .minecraft\versions\1.12.2-Forge\logs\latest.log)
如果成功加载 JS 那日志一般会出现这类消息:
[00:00:00] [Client thread/INFO] [LiquidBounce]: [ScriptAPI] Running script 'Script.js' with legacy support. [00:00:00] [Client thread/INFO] [LiquidBounce]: [ScriptAPI] Successfully loaded script 'Script.js'.(这里使用的 API v1 举例)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login