[Script] mumyKillAura3Remake (development legacy)
-
Author : mumy
E-mail : [email protected]
QQ : 956172670 -
@CookieChinese wait what Nashorn supports es6 since java 9 even if it was deprecated by that time? That's cool!
However, why tf are you creating values in api v2 way, then actually creating AdaptedValues using LB's api v1 compatibility, that essentially converts them back to how you wrote them?
EDIT:
It seems that ES6 compatibility is very limited, I only got let and const to work.
Nashorn reportedly received larger ES6 support in final Java JDK 9 release and later, with evidence of arrow functions and such working. LB therefore uses some older Nashorn version that isn't fully finished? -
@Ali00035 No, Java version doesn't influence Nashorn because it is built into LB. You can just put
///api_version=2 ///engine_flags=--language=es6
at start of a script to enable let and const and perhaps other things.
Latest nashorn supports more ES6 stuff but it isn't compatible with Java 8, so this couldn't just be solved by upgrading Nashorn. -
@9000miles @CzechHek
Final version: mumyKillAura3Remake.js (final) -
@CookieChinese I found another bug(s) related to autoblock. https://streamable.com/jssndl
It also blocks when the hurttime is lower than 20 (when autoblock is off)