PixelScript docs
The modern, elegant and hot-reloading JavaScript runtime for Minecraft plugins.
Getting Started
What PixelScript is, how it fits into your Minecraft plugin workflow, and what to expect from the runtime.
Where to download PixelScript.
A concept guide for Java and Skript developers transitioning to PixelScript.
A step-by-step guide to setting up your development environment for PixelScript, including installing necessary tools and configuring your IDE.
A walkthrough of the PixelScript configuration options and how to customize them for your server setup.
A walkthrough of scripts, how they're loaded, and how to organize your script files.
Quirks & Features
Tips and tricks for working around limitations in Java's interop system.
Working with the PixelScript `.d.ts` type definition file to improve IDE support and type safety.
Built in utility commands available in PixelScript.
Working with java types for Java API's
Using the built-in timing functions to profile and optimize your PixelScript code.
API Spec
Direct access to the Bukkit server instance for advanced server interactions.
An overview of magic imports in PixelScript and how they facilitate module loading.
An overview of PixelScript's threading model and how it interacts with the Bukkit server thread.
The global Script API, used to load Java classes and manage script lifecycle.
Registering and managing commands through PixelScript.
Register event listeners to respond to Bukkit events in your scripts.
Schedule synchronous and asynchronous tasks to run on the server thread or in the background.
Execute SQL queries and manage database operations with automatic connection pooling and error handling.
Make HTTP requests to external APIs and web services with built-in error handling and JSON parsing.
Log messages, warnings, and errors to the server console for debugging and monitoring.
Parse and serialize JSON data for storage, API communication, and data interchange.
Share code between scripts using ES6-style named imports and exports.