Tags
Creators
Details
All versions
2.0.0
Release
JavaSkript 2.0.02 months ago 20
Compatibility
Minecraft: Java Edition
26.2
26.1.x
1.21.x
Platforms
Folia
Paper
Purpur
Changes
v2.0.0
New Features
- Addon API: Public gateway (
JavaSkript.getAPI()) and custom field injectors (registerInjector) - Shared Variables: Thread-safe global cache with atomic math and persistent disk storage
- Custom EventBus: Inter-script pub/sub events (
events.fire/events.onCustom) - Async HTTP & Discord: 1-line async Discord embed webhooks and REST requests with zero dependencies
- Display Holograms: 1.21 Text, Item, and Block Display Entities with auto-cleanup
- Persistent Economy: Built-in SQLite balance engine with automatic Vault fallback
- Interactive Chat: Clickable actions, hover tooltips, confirmation prompts, and chat pagers
- Command Builder: Nested subcommands, typed arguments, and tab-completion without plugin.yml
- Inventory Menus: Component-based GUI builder with pagination and sound feedback
- Items & PDC: Fluent ItemBuilder and PersistentDataContainer helpers for items, entities, and blocks
- Sounds Helper: Preset sound effects, pitch variance, and multi-note chords
- Dialogs API: Modern 1.21.4+ notice and confirmation dialog prompts
- Profiler & Benchmarks: Nanosecond CPU execution profiler (
/js profile) and throughput benchmarks (/js benchmark) - Lifecycle Events: Standard Bukkit events for script load, unload, reload, and compilation
- JitPack Publishing: Available on JitPack (
com.github.mukulx:JavaSkript:2.0.0) for addon developers
Improvements
- Clean Stack Traces: Replaced 60-line JVM reflection noise with exact script file and line numbers
- Trace Config Toggle: Added
errors.clean-stack-tracesin config.yml to toggle clean vs raw traces - Reload Isolation: Complete classloader and task cleanup preventing memory leaks on reload
- Folia Optimization: Automatic routing to Folia regional threads and global schedulers
- Updated Docs: Comprehensive documentation across 12 dedicated guides in
docs/
Bug Fixes
- Fixed unhandled script exceptions getting masked behind generic reflection errors
- Fixed classloader memory leaks by detaching listeners, tasks, and databases on unload
- Fixed Folia regional tasks properly cancelling when scripts reload
- Fixed null pointer exceptions when handling empty persistent data or item meta
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:DYqeyxbi:df5s9GT9"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:DYqeyxbi:df5s9GT9"
}

