-
Notifications
You must be signed in to change notification settings - Fork 0
Scripting: beginning
As you may have already realized, JointJS adds a JavaScript interpreter to minecraft, thus allowing you to make it faster and easier to develop plugins. So let me explain to you how to start writing plugins in JointJS.
The installation process for JointJS is exactly
the same as for other plugins for Spigot:
Download the jar file of the plugin from here
and drop it into the plugins folder in the root of your server.
All right, when you have installed the plugin on
your server, you need to install bun.sh - it will
compile your TypeScript code. Then install npm.
After installing npm, go to the root folder of your server,
then create and open folder with name joint-js
open a terminal and type the following command into it:
npm initthen run:
npm install @joint-js/modulesGo to the joint-js/plugins folder (create it if it doesn't exist)
in the root folder of your server.
Create a folder with the name of your plugin in it.
Inside the newly created folder, create the plugin.ts file.
plugin.ts is the entrypoint of your plugin.
In it you can write your code.