Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Skin Browser
  • Cape Gallery
  • Seed Vault
  • Blog
  • Guides

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

Site & Legal

  • About
  • Authors
  • Editorial Policy
  • Corrections
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA
  • Sitemap

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
JsPig
PluginLicenseRef-All-Rights-Reserved

JsPig

JsPig provides complete access to the Bukkit API via GraalVM, allowing developers to efficiently create and manage Minecraft plugins using JavaScript's flexibility and simplicity.

72
Downloads
2
Followers
1 years ago
Updated
📦
2
Versions
game-mechanicsmanagementoptimizationbukkitpaperspigot
Download Latestv1.1-SNAPSHOTView on Modrinth

📖About JsPig

Description

JsPig provides complete access to the Bukkit API via GraalVM, allowing developers to efficiently create and manage Minecraft plugins using JavaScript's flexibility and simplicity.

Getting Started

Before you start, please use GraalVM JDK 21 as your development environment and the environment for running Java programs.

  1. Place the plugin in the plugins folder of your bukkit-series server.
  2. Start the server, and the plugin will automatically generate a folder with the same name as the plugin in the plugins directory. Enter the command JsPig declare in the console to generate the declaration file global.d.ts.
  3. Open the plugin's data folder with VSCode to start writing JavaScript plugins.

Advanced Features

  • Create a new folder in the plugin's data directory, naming it according to general naming conventions. Within this folder, create a package.json file and include the following code:
{
  "main": "./block.js",
  "modules": [
    "registry",
    "scripts-manager",
    "console",
    "timer"
  ]
}
  • Then, create a file named block.js in the folder to enable advanced plugin development.

block.js is just an example file; you can name it anything.

Configurable Options in modules:

  • registry for event registration.
  • scripts-manager for script management.
  • console for logging.
  • timer for precise timing, adding support for setTimeout, setInterval, clearTimeout, and clearInterval.

Custom Commands

Each package.json in a folder can define custom commands. An example configuration is as follows:

{
  "command": {
    "command": "list",
    "description": "List all subcommands",
    "usage": "Use /<main command> list",
    "permission": "JsPig.JsExtend.List",
    "permissionMessage": "You do not have permission to use this command."
  }
}
// JsExtend.list corresponds to "command": "list". JsExtend. is a fixed prefix and is case-sensitive.
registry.on("JsExtend.list", (sender, command, args) => {

})

Note: A package.json can only define one command.

To allow players to use the command correctly, such as the list command above, you need a permission management plugin like LuckPerms-Bukkit.

Add a permission node like JsPig.JsExtend.List (case-insensitive), set the value of the permission node to true, and reload permissions on the server. Players will then be able to use the command.

In the game, enter the command: /jsextend list or /jse list.

If your custom command has additional options, use /jse <command> <command option> <option>. You can retrieve these options via args.

Below is the full package.json configuration for using a custom command:

{
  "main": "./block.js",
  "modules": [
    "registry"
  ],
  "command": {
    "command": "list",
    "description": "List all subcommands",
    "usage": "Use /<main command> list",
    "permission": "JsPig.JsExtend.List",
    "permissionMessage": "You do not have permission to use this command."
  }
}

plugin Commands

permission: JsPig.op

default: op

  • jspig reload
  • jspig load
  • jspig unload
  • jspig list
  • jspig declare

permission: JsPig.JsExtend

default: default

  • jse

Example

github

👥 Team & Contributors

I-Mortals
I-MortalsOwner

⚙️ Compatibility

Environment
🖥️ Server-side
Loaders
bukkitpaperspigot
Minecraft Versions
1.20.1

🔗 Links

Modrinth Page