promotional bannermobile promotional banner
premium banner
Some practical methods, and a bit of black magic.

Description

UtilJS adds some practical utilities to KubeJS, such as the Assert class and the use of Minecraft’s Executor.
It also draws inspiration from Kotlin by implementing fully safe methods like runCatching, let, also, and others.
Additionally, UtilJS extends common classes with a wrap method, allowing you to conveniently call let, also, and similar functions—just like in Kotlin.

wiki: https://github.com/Tki-sor/UtilJS/wiki