Tags
Creators
Details
1.0.0
Compatibility
Changes
skLambda 1.0.0
Supports: Paper 1.21.1+ · Skript 2.15+
New expressions
List loops can now be written as one-line operations instead of Skript loop blocks. Each one runs a lambda or predicate over a list.
- Mapped:
%objects% mapped with %lambda%turns every element into something new. - Filtered:
%objects% filtered where %predicate% passeskeeps only the elements that pass. - Reduced:
%objects% reduced with %lambda%folds the whole list down to a single value. - Sorted:
%objects% sorted by %lambda%sorts the list using a key pulled from each element. - Count Where:
count of %objects% where %predicate% passescounts how many elements pass. - First Where:
first element of %objects% where %predicate% passesreturns the first element that passes. - End Reason:
end reasonreports why a listener stopped, so you can branch on it. Comes with its own type.
New functions
- Constant predicates:
always()andnever()are drop-in predicates.always()always passes andnever()never passes.
New listener options
These go inside a listen section.
owner:: ties a listener to an owner (for example a player). When the owner disconnects, the listener unregisters itself.on end:: a callback that always runs no matter how the listener stops (completion, timeout, cancel, unregister, or owner disconnect). One single cleanup path.cooldown: %timespan%: debounces rapid re-triggers. A debounced event does not runon triggerand does not count towardtriggers:.every %timespan%:: a repeating timer callback that runs while the listener is active. It pauses and stops along with the listener.
New effect
- Unregister owned listeners:
unregister all listeners owned by %object%stops only the listeners tied to that owner, for scoped cleanup.
Update checker
- Startup check:
update-notificationsnow actually works (it used to be a reserved toggle that did nothing). On startup the plugin checks for newer releases and notifies op players when they join.
Improvements
/sklambdacommand: now has tab-completion, and/sklambda listenersshows owner info for each listener. The plugin link now points to Modrinth instead of GitHub.- Internal refactor: element registration was split into
LambdaModuleandListenerModule, trimming the mainSkLambdaclass by about 90 lines. - Examples:
example.skgained 5 new showcases (10to14) covering the features above. - Build: version bumped to
1.0.0.
Full Changelog: git... 1.0.0
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:eShwCZ4u"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:TmcZveKm:eShwCZ4u"
}

