ModsJava
PaperScript
Minecraft plugins in JS/TS — GraalJS (1.18-1.21) + Nashorn legacy (1.12.2/1.16.5), typed API, hot reload.
⬇ Download on HangarOpen in MCModsHubGet it on Google Play →# PaperScript
Write **Minecraft server plugins in JavaScript/TypeScript**. A host plugin embeds a JS engine and loads scripts from a folder, exposing a small typed API (`ps`) with hot reload.
## Two lines, one API
| Minecraft | Java | Engine | Jar |
|-----------|------|--------|-----|
| Paper 1.18 - 1.21 | 17 / 21 | GraalJS | paperscript-host |
| Paper 1.12.2 / 1.16.5 | 8 / 11 | Nashorn | paperscript-legacy |
## Example
```ts
ps.onEnable(() => {
ps.commands.register('hello', (ctx) => {
ctx.sender.sendMessage('Hello, ' + ctx.sender.name + '!');
});
ps.events.onPlayerJoin((e) => e.player.sendMessage('Welcome!'));
});
```
- Typed SDK: `npm i -D @paperscript/sdk`, scaffold with `npx paperscript init`
- MiniMessage chat (modern) / legacy &-codes (legacy)
- Hot reload via `/ps reload ` — no server restart
- Sandboxed scripts: no Java.type, no host IO, main-thread only
Full docs: https://darkpix.ru/paperscript/docs
PaperScript is a free Minecraft Java mod. Compatible with Minecraft 1.12.2, 1.16.5, 1.18, 1.18.1 and newer. Downloaded 1 times (via Hangar). Download it and open it directly in the game.
Explore more