JX - The jQuery of Minecraft
JX is a library of super-powers for developing ScriptCraft Minecraft plugins in JavaScript.
Use with Vanilla ScriptCraft
Pre-Requisites
- install the scriptcraft plugin on your server
- run the server once with the plugin installed to initialize it
Installation (Manual)
- download the repository as an archive
- we will refer to this downloaded archive as
<archive> and your server's root directory as <server>
- copy
<archive>/jx-master/ to <server>/jx/
- move
<server>/jx/!.js to <server>/scriptcraft/plugins/!.js
- execute
js refresh() from your server's console
- success
Use with MagikCraft
MagikCraft is a set of patches on ScriptCraft that adds support for NPM modules and unit testing, and also is friendly to TypeScript development.
Pre-Requisites
- Install the MagikCraft plugin on your server, or run a Dockerised Magikcraft server.
Using JX with MagikCraft
JX is a library that you can use to accelerate your own plugin development. It doesn't do anything by itself. So you would include it in a MagikCraft plugin.
Create your MagikCraft plugin using the Yeoman generator:
npm install -g yo
npm install -g generator-sma-plugin
yo sma-plugin