CurseForge · Minecraft mod
CraftTweaker Java Library
Java libraries for crafttweaker
Quick answer
Which CraftTweaker Java Library release should I use?
CraftTweaker Java Library ctjl-1.20.1-1.3.0.jar targets 1.20.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.
Where it goes
Is CraftTweaker Java Library required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does CraftTweaker Java Library ctjl-1.20.1-1.3.0.jar need?
ctjl-1.20.1-1.3.0.jar. Change the file and its required mods may change too.
Install CraftTweaker first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add CraftTweaker Java Library without breaking your instance.
Built for CraftTweaker Java Library ctjl-1.20.1-1.3.0.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use ctjl-1.20.1-1.3.0.jar. It targets 1.20.1 with Forge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install CraftTweaker first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside ctjl-1.20.1-1.3.0.jar. It opens that exact file at the source.
About this project
What does CraftTweaker Java Library add?
This mod was created in order to expand the capabilities of CraftTweaker for experienced users.
The mod offers java libraries for implementing more complex scenarios
The purpose of fashion
IO support
Network support
Asynchrony
Multithreading
And much more, but these are the initial tasks
Examples
Also, if you need to add specific functionality, you can write to me about it in my Discord
If you want to support me Boosty
MultiThread
val tread = thread.createTread(() => {
var i = 0;
while (i < 5000){
println("Thread 1: " + i);
i++;
}
});
thread.createRunThread(() => {
var i = 0;
while (i < 5000){
println("Thread 2: " + i);
i++;
}
});
tread.start();
Async
import stdlib.Exception;
import mods.ctjl.java.lang.ExecutionException;
import mods.ctjl.java.lang.InterruptedException;
var async_1 = async.supplyAsync(() => {
var i = 0;
println("Async 1 Start");
while(i < 2000){
println(i);
i++;
}
return 1;
});
var async_2 = async.runAsync(() => {
var i = 0;
println("Async 2 Start");
while(i < 2000){
println(i);
i++;
}
});
try {
async_1.getValue();
println("Async 1 End");
} catch ex as ExecutionException {
println(ex.toString());
} catch ex as InterruptedException {
println(ex.toString());
}
try {
async_2.getValue();
println("Async 2 End");
} catch ex as Exception {
println("Some Error");
println(ex.toString());
}
Project description from CurseForge.
Pick your setup
CraftTweaker Java Library by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.20.1
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
CraftTweaker Java Library versions and loaders
ctjl-1.20.1-1.3.0.jar
10 May 2024
ctjl-1.20.1-1.2.0.jar
7 May 2024
ctjl-1.20.1-1.1.0.jar
7 May 2024
ctjl-1.20.1-1.0.0.jar
6 May 2024
Looking for an older file? The official CurseForge project page is in Resources.