Tags
Creators
Details
All versions
0.0.3-alpha
Alpha
skLambda 0.0.3-alpha5 months ago 17
Compatibility
Minecraft: Java Edition
26.1.x
1.21.x
Platforms
Paper
Purpur
Required content
Unavailable version
Changes
skLambda 0.0.3-alpha
Supports: Paper 1.21.1+ · Skript 2.15+
New expressions
- Inline Lambda: write a lambda on one line:
lambda (p: player): {_p} is op. The body is either a condition (a predicate that returnstrue/false) or an effect (runs and returns nothing). Parameters become locals like{_p}. - Function Lambda:
function lambda "name"wraps an existing Skriptfunctionin a lambda you can store, pass around, and call like any other lambda. - Call Lambda (new forms): alongside
call/invoke lambda, you can now writecalling lambda %lambda% [with ...]andthe result of calling lambda %lambda% [with ...].
New condition
- Predicate Passes: treat a lambda as a yes/no test:
%lambdas% pass[es] [for %values%](also reads asmatches/holds). With a list of lambdas, a quantifier decides how many must pass:all of(the default),any of, ornone of. Negate withdoesn't passor a leadingnot. Works insidelisten ... where, too.
New effects
- Unregister All Listeners :
unregister all listenersstops every active listener on the server (across all scripts). - Unregister Last Listener:
unregister the last created listenerstops the most recently created one still active. Neither fireson completionoron timeout.
New command
- /sklambda: shows the version and GitHub link.
/sklambda listenerslists every active listener (where it was created, the event it watches, and how long it has been alive). Alias/skl. Guarded by thesklambda.adminpermission (default: op).
Configuration
- config.yml added. Toggle features with
lambdaandlistener: a disabled feature registers no syntax at all (both default totrue). - Listener leak detector (
notifier): optional console warnings about listeners that stay registered longer thanwarn-after, repeated everywarn-every, with a customizablemessage(placeholders{location},{event},{duration}). Off by default. update-notificationstoggle reserved for a future update check.
Improvements
- Type hints: lambda and saved-listener variables now register a Skript type hint, so misuse is caught at parse time when a script opts into Skript's experimental
using type hints. - Listener effects and conditions (
register,unregister,pause,resume, and the registered/paused/running checks) now take a%listener%instead of%object%, for clearer errors. remaining triggersandremaining countdownshare a common base and now report0correctly once a listener has finished.- Website link now points to GitHub.
Full Changelog: https://github.com/ahmadmsaleem/skLambda/compare/pre-release...0.0.3-alpha
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:TmcZveKm:TsMVFRSA"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:TmcZveKm:TsMVFRSA"
}

