Loxoz / MindustryJSPlugin

A Mindustry Plugin to support Javascript scripts as sub-plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MindustryJSPlugin

A Mindustry Plugin to support Javascript scripts as sub-plugins

👉🏻 Please note that this project is in early alpha, do not expect to see anything working for now, and it's subject to major changes

PRs are welcome ;)

Installing

Simply place the .jar file you downloaded in the releases tab or you built in your server's config/mods directory and restart the server. List your currently installed plugins by running the mods command.

Wiki

coming feature

for 0.1.0 pre version and above you can do:
/js <javascript code> -> sends result (both player and console can do that for now)

Example:

example
🚧 Warning: It has a little support of ES6 fow now (ECMAScript 6)
➡ Actually only const and let are supported
See all ES6 features: https://github.com/lukehoban/es6features/blob/master/README.md

I'm still looking for solutions like running the new https://www.graalvm.org/

Download

Go to the releases tab here

Building

gradlew jar / ./gradlew jar

Output jar should be in build/libs.

Hope you ❤️ Enjoy my work, Leave a ⭐️ Star if you found this useful to support me and this project

About

A Mindustry Plugin to support Javascript scripts as sub-plugins

License:MIT License


Languages

Language:Java 69.0%Language:JavaScript 31.0%