请问我该如何学习编写用于Liquidbonce的JS
-
浏览器里和node.js里用的js解释器都是v8(Firefox 的是SpiderMonkey)。而LB目前的js解释器是nashorn,文档在这。要写給LB用的js只需要知道点js的语法和一些nashorn的特殊的地方,然后剩下的就是看示例,LB的源码和mc的源码了,前端教程没太大用。这个是mc里可以供你调用的东西,比如
mc.thePlayer.motionY = 0.42,如果你要用调用LB的某些东西估计就只能看LB源码了(像LiquidBounce.moduleManager.getModule("killaura").target = null)。
Edit:以后没准会换成graalvm,那样的话就爽了 -
浏览器里和node.js里用的js解释器都是v8(Firefox 的是SpiderMonkey)。而LB目前的js解释器是nashorn,文档在这。要写給LB用的js只需要知道点js的语法和一些nashorn的特殊的地方,然后剩下的就是看示例,LB的源码和mc的源码了,前端教程没太大用。这个是mc里可以供你调用的东西,比如
mc.thePlayer.motionY = 0.42,如果你要用调用LB的某些东西估计就只能看LB源码了(像LiquidBounce.moduleManager.getModule("killaura").target = null)。
Edit:以后没准会换成graalvm,那样的话就爽了@commandblock2 谢谢大佬,磕头了
-
水影js涉及到的算法应该用不到前端js的高级货
你需要学习:
Minecraft自带函数、数据包类等;
js的一些基础知识;
(可选)算法知识;
全部学完=大神√ -
水影js涉及到的算法应该用不到前端js的高级货
你需要学习:
Minecraft自带函数、数据包类等;
js的一些基础知识;
(可选)算法知识;
全部学完=大神√ -
水影js涉及到的算法应该用不到前端js的高级货
你需要学习:
Minecraft自带函数、数据包类等;
js的一些基础知识;
(可选)算法知识;
全部学完=大神√ -
@NinjaMaki 那是您不是我呜呜呜
-
This post is deleted!
-
@Baier Minecraft类文档在这:scriptapi.liquidbounce.net
-
@Baier Minecraft类文档在这:scriptapi.liquidbounce.net
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