Compatibility
Minecraft: Java Edition
1.21.4–1.21.5
1.20–1.20.4
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed MIT
Published last year
Updated 19 hours ago
Changelog
LuaLink V2
LuaLink V2 has been completely rewritten from scratch. It now makes use of LuaJava with LuaJIT (previously LuaJ). Previous scripts made with V1 will need some changes. Below is a list of some of the documented breaking changes
Breaking Changes
Function's renamed
import
->java.import
script.onLoad
->script:onLoad
script.onUnload
->script:onUnload
script.hook
->script:registerListener
script.registerSimpleCommand
->script:registerCommand
script.getServer
- >server
Functions removed:
utils.instanceOf
- Use Java's native Class.isInstance() method instead
-- Old way (v1) if not utils.instanceOf(causer, "org.bukkit.entity.Player") then return end -- New way (v2) local Player = java.import("org.bukkit.entity.Player") -- This would usually go at the top of your script. if not Player.class:isInstance(causer) then return end
- Use Java's native Class.isInstance() method instead
Please see the docs for more info on creating scripts
Files
Metadata
Release channel
ReleaseVersion number
1.21.4-1Loaders
Game versions
1.21.4Downloads
6Publication date
April 13, 2025 at 4:39 AMPublisher
Saturn
Owner