skLambda

Addon skLambda 1.1.1

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

eult

be like eult
Supporter +
May 28, 2022
202
18
18
eult submitted a new resource:

skLambda - skLambda is a Skript addon that adds lambda functions and listeners to Skript.

skLambda


A Skript addon that adds two things:
  1. Lambdas — small functions you can save in a variable and run later.
  2. The listen section — a short way to make a temporary event listener with a timer, a hit count, and what to do at the end.

Example: same task, two ways​

The task: tell the player to mine 10 stone in 30 seconds...

Read more about this resource...
 
eult updated skLambda with a new update entry:

Changelog 0.0.3-alpha

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, which acts as a predicate returning true/false, or an effect, which runs and returns nothing. Parameters become locals like {_p}.
  • Function Lambda...

Read the rest of this update entry...
 
eult updated skLambda with a new update entry:

1.0.0

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% passes keeps only the elements that pass...

Read the rest of this update entry...
 
eult updated skLambda with a new update entry:

1.1.0

skLambda 1.1.0
Supports: Paper 1.21.1+ · Skript 2.15+

New expressions
  • Highest / Lowest By: highest of %objects% by %lambda% and lowest of %objects% by %lambda% give you back the one item with the biggest or smallest value. You write a small lambda that scores each item, and it hands you the winning item itself. Ties keep the first one; an empty list gives nothing. You can also say...

Read the rest of this update entry...
 
eult updated skLambda with a new update entry:

1.1.1

This addon is no longer maintained. As of 1.1.1, skLambda will not receive further updates. The source stays available, but there are no planned releases, fixes, or support going forward. Feel free to fork it.

skLambda 1.1.1
Supports: Paper 1.21.1+ · Skript 2.15+

Removed
  • Duplicate list expressions: %objects% filtered where %objects% passes, count of %objects% where %objects%...

Read the rest of this update entry...