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

  • Player Database
  • Skin Browser
  • Cape Gallery
  • Community Hub
  • Seed Vault

Database

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

Tools

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

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
JS Runner
PluginCC-BY-SA-4.0

JS Runner

The plugin aims to add the ability to run JavaScript files in a Minecraft server.

23
Downloads
0
Followers
7 months ago
Updated
📦
3
Versions
librarytechnologyutilitypaper
Download Latestv1.2View on Modrinth

📖About JS Runner

Description

This project was inspired by ScriptCraft. ScriptCraft is a plugin that allows JavaScript files to be ran on a Minecraft server, but sadly ScriptCraft is no longer being updated and only supports 1.8. This plugin aims to bring the function of ScriptCraft back to modern day Minecraft. This project includes custom JavaScript API to interact with the game server.

Setup

Put the .jar file into the server plugins folder and restart it. A new folder will pop up with the name: "JSRunner" and inside that folder will be another folder named: "scripts." You can put .js files into the scripts folder and use the appropriate command to execute it.

Commands

/js run <filename>

runs a Javascript file located in JSRunner/Scripts

/js stop <filename>

stops a Javascript file

/js reload

stops all JavaScript files

JavaScript API

Server

server.log()

logs a message to the server console

server.command()

runs a command as the console

Timers

timers.setTimeout(fn, ticks)

run fn once after ticks

timers.setInterval(fn, ticks)

run fn repeatedly every ticks

timers.clear(id)

cancels a timeout/interval

timers.clearAll()

cancels all timers.

Events

events.on(event, callback)

listens for an event

playerJoin

parameter: PlayerWrapper

playerQuit

parameter: PlayerWrapper

blockBreak

BlockWrapper

Block Wrapper

getType()

returns block type as string

getX()

get X position

getY()

get Y position

getZ()

get Z position

getPlayerName()

name of the player who broke the block

Player Wrapper

getName()

gets the players name

getUUID()

gets the players UUID

Sample Code (Requires latest version to work)

This sample code welcomes a player who joined the server.

server.log("Hello from JSRunner!");

events.on("playerJoin", function(player) {
    server.log("Welcome " + player.getName());
});

var intervalId = timers.setInterval(function() {
    server.log("Repeating message every 100 ticks");
}, 100);

This sample code clears the invenory of a player who breaks bedrock with their hands (not TNT).

events.on("blockBreak", function(block) {
    if (block.getType() === "BEDROCK") {
        server.command("clear " + block.getPlayerName());
        server.command("tell " + block.getPlayerName() + " Your inventory was cleared!");
    }
});

👥 Team & Contributors

B
BunnykingOwner

⚙️ Compatibility

Environment
🖥️ Server-side
Loaders
paper
Minecraft Versions
1.211.21.11.21.21.21.31.21.41.21.51.21.61.21.7+4 more

🔗 Links

Modrinth Page