Getting Started
JSPrismarine plugin-development quick-start guide

Generating boiler-plate plugin using create-prismarine-plugin

Start by executing the following command which will guide you through a step-by-step process
1
$ npx @jsprismarine/create-prismarine-plugin
Copied!
You can contribute to create-prismarine-plugin by visting https://github.com/JSPrismarine/create-prismarine-plugin

Navigating the project structure

index.ts
package.json
1
import type { PluginApi } from '@jsprismarine/prismarine';
2
3
export default class PluginBase {
4
api: PluginApi;
5
6
constructor(api: PluginApi) {
7
this.api = api;
8
}
9
10
public async onEnable() { }
11
public async onDisable() { }
12
}
Copied!
1
{
2
...
3
"prismarine": {
4
"apiVersion": "${apiVersion}",
5
"displayName": "${displayName}"
6
},
7
...
8
}
Copied!
Last modified 7mo ago