
OpenJavascript
Create custom menus, commands, plugins, systems, basically anything with scripts in Javascript! With multithreading and Folia support! Everything is fully documented in the documentation!
Оцените первым
1.8K
25
OpenJavascript 1.5.0 (NEW Vscode extension)
Release29.07.2026
Список изменений
Important changes:
- task.repeat(delay, period): period has been changed from ticks to seconds. A new ticks() method has been added, to use ticks instead of seconds, wrap the value like
task.repeat(delay, ticks(period)). - The
ticks()method can be used in any task method that takes seconds as an argument, letting you pass tick values instead. - all minecraft versions below 1.18 are no longer supported!
Welcome OpenJS Intellisense!
!Replace this with a description
- You can now download the extension in VSCode and get full autocompletion for OpenJS scripts!
- Simply run
/oj generatetypesin the server console and follow the steps shown after the types have been generated. - Search for "OpenJS IntelliSense" in the Extensions marketplace on VSCode, or download it directly from the marketplace page.
Compatibility & Multi-Version Support
- Added support for Minecraft version 26.X, including full compatibility testing for the Dialog and Inventory APIs.
- Fixed Cardboard incompatibility.
- Fixed Minecraft version detection breaking on Spigot.
- Fixed the Inventory API being broken on 26.X and on Spigot
Task API
- Rewrote Folia scheduling to use the Folia scheduler directly, reducing check calls and improving performance.
- Fixed task overflow after ~27 days of uptime
- Allowed 0-second delays for the task API on Folia servers.
- Added
ticks(ticks), letting all task API methods work in ticks instead of seconds. - Fixed a memory leak in
task.latch.listener()where listeners were never garbage collected without a held reference.
Dialog API
- Added tooltip support for dialog buttons:
Dialog.baseButton.tooltip(text)andDialog.setTooltip(buttonId, text). - Added a new serverScreen dialog for showing dialogs when a player joins the server.
- Added the ability to pass an
Audienceintodialog.show()to support serverScreen dialogs.
Dependency Management
- Added
downloadDependency(), letting scripts pull in dependencies directly from Maven repositories. - Downloaded dependencies are now cached and usable via
importClass(). - Added
loadDependency(folder)to load a dependency directly from any local path. - Imported libraries and dependencies can now also be loaded through
importClass()andJava.type().
Intellisense Extension
- Fixed type generation issues in the extension's Typegen.
- Removed the leftover
$placeholder from generated types. - Added the
pluginglobal to intellisense. - Added a
Typegenentry to the in-game help command. - Added more detailed error logging for the type generator.
- Included missing
java.langclass types in Typegen, complete with generated Javadocs. - Added a progress bar for Javadoc generation, since it can take a while.
- Extension now uses the newly imported
java.langclasses instead of relying on pre-built dummy classes. - Generated types now live in
plugins/OpenJS/scripts/.openjs-types/generated, and the extension automatically detects and applies them - Added a new "Auto Apply Definitions" command to simplify type detection without needing to open a workspace.
- Enabled type checking so the extension can now catch errors, not just autocomplete.
- Fixed
importClass("")autocomplete not triggering when the quotes were already typed. - Fixed
FileManagerservice methods not autocompleting for existing files.
Performance & Internal Refactoring
- Scripts now get force-compiled, with compiled code cached to disk and reloaded on server restart, reducing script load times.
- Reduced plugin file size after removing the old Folia scheduler and rewriting it.
- Refactored script globals into a unified
ScriptGlobalsclass. - Fixed 5 separate memory leaks, including one in the
FoliaSupportclass. - Improved overall main-thread performance.
- Fixed debug logs not appearing during server initialization.
- Added Bstats as a dependency.
The goal of this update was to make the plugin more stable and reliable, so there are no more weird crashes or memory leaks. The documentation is still being updated to reflect the changes in this release. Thanks for your patience, everyone. This update took a while, mostly because of the VSCode extension.
Файлы
openjs-1.5.0.jar(2.40 MiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.5.0
Загрузчики
FoliaPaperPurpur
Версии игры
1.18–26.2
Загрузок
40
Дата публикации
29.07.2026
