Mineuniverse
Log in Register
Mods

CraftTweaker Java Library

Java libraries for crafttweaker
by Sixik
Download Claim this project
25,785 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Addons CraftTweaker Server Utility Utility & QoL

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());
}
ctjl-1.20.1-1.3.0.jar
MC 1.20.1, Forge, Server
Release 2024-05-10 Get
ctjl-1.20.1-1.0.0.jar
MC 1.20.1, Forge, Server
Beta 2024-05-06 Get

More from Sixik

SDM Engine Core
980,484
CraftTweaker Sixik Utils AOA3 (Nevermine) (Outdated)
9,537
CraftTweaker Sixik Utils Curios (Outdated)
9,455
SDM Loot Stages
8,665
SDM Market (Forge/Fabric)
773,883
Player Stages
67,409

You Might Also Like

Ender Tweaker
EnderIO + CraftTweaker
9,574,671
PackMode
Simple Mod-pack Utility to allow switching between PackModes
9,024,946
Zen Summoning
Allows for custom mob summoning with CraftTweaker
7,912,007
FTB Tweaks
This is a very simple mod that introduces the concept of game modes. For want of a better description this allows you to set up multiple minetweaker profiles and switch between them on the fly (no server restart required) This gives you the ability to...
7,191,034
CraftTweaker GUI
Allows editing and managing edited recipes for CraftTweaker
98,064
Fluid Interaction Tweaker
This is a CraftTweaker/GroovyScript addon that enables you to add more fluid interactions.
92,986