
loop-lib
Adds easy looping for minecraft datapacks!
How to use it?
To create a loop run the ll:create_loop function. It requires the following arguments:
- id: Type string, the id of the loop
- loops: Type int, the number of loops to do
- function: Type string, the fucntion to run every loop
- args: Type object, any arguments for the function
NOTE The function also gets passed the id of the loop and its current loop index
IMPORTANT The loop index counts down rather than counting up
NOTE For examples check the sample folder inside the datapack, you can also run them to see how they work
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21.6, 1.21.7, 1.21.8
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
Verified by MCModsHub
- Downloads as Loop Lib v1.zip
- Download size: 21 KB
- Download link checked 23 Aug 2026 — working
These come from our own check of the pack file, not from the source page.