Skip to content

Instantly share code, notes, and snippets.

@kindlich
kindlich / teeto.zs
Last active February 25, 2018 20:23
import mods.modularmachinery.RecipePrimer;
import mods.modularmachinery.RecipeBuilder;
import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;
import crafttweaker.liquid.ILiquidStack;
import crafttweaker.oredict.IOreDictEntry;
import crafttweaker.data.IData;
/*
import crafttweaker.data.IData;
import crafttweaker.item.IItemStack;
val goldBlock=<minecraft:gold_block>;
val sideItems = {
efficiency: <minecraft:potion>.withTag({Potion: "minecraft:strong_swiftness"}),
unbreaking: <minecraft:potion>.withTag({Potion: "minecraft:strong_strength"})
} as IItemStack[string];
@kindlich
kindlich / Skytest.class
Created January 21, 2018 14:58
Sky PartType
public class SkyTest implements Runnable {
public static void __script__() {
IPartType var1 = CTMaterialSystem.createPartType("crafting_tool", new ZenClass0());
IPartDataPiece var3 = CTMaterialSystem.createPartDataPiece("maxDamage", false);
var1.setData(new IPartDataPiece[]{var3});
IPart var5 = CTMaterialSystem.getPartBuilder().setName("saw").setPartType(var1).build();
IMaterial var7 = CTMaterialSystem.getMaterialBuilder().setName("Pyure Cobalt").setColor(18347).build();
IMaterial var9 = CTMaterialSystem.getMaterialBuilder().setName("Pyure Tin").setColor(10275286).build();
var7.registerPart(var5);
var9.registerPart(var5);
---- Minecraft Crash Report ----
WARNING: coremods are present:
FMLPlugin (elulib-0.1.11.jar)
Contact their authors BEFORE contacting forge
// Ouch. That hurt :(
Time: 1/20/18 4:57 PM
Description: Exception in server tick loop
@kindlich
kindlich / crafttweaker.log
Created January 17, 2018 18:42
More ZS funciton stuff
[PREINITIALIZATION][CLIENT][INFO] Loading scripts
[PREINITIALIZATION][CLIENT][INFO] [contenttweaker | SIDE_CLIENT]: Skipping file {[0:crafttweaker]: fun.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [contenttweaker | SIDE_CLIENT]: Skipping file {[0:crafttweaker]: funCalling.zs} as we are currently loading with a different loader
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Building registry
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Successfully built item registry
[INITIALIZATION][CLIENT][INFO] Loading scripts
[INITIALIZATION][CLIENT][INFO] [crafttweaker | SIDE_CLIENT]: Loading Script: {[0:crafttweaker]: fun.zs}
[INITIALIZATION][CLIENT][INFO] [crafttweaker | SIDE_CLIENT]: Loading Script: {[0:crafttweaker]: funCalling.zs}
[INITIALIZATION][CLIENT][INFO] I was called as 1 time this item: Iron Ingot
@kindlich
kindlich / htwchts.zs
Created January 14, 2018 12:41
ModTweaker #586
import crafttweaker.item.IIngredient;
import crafttweaker.liquid.ILiquidStack;
import crafttweaker.item.IItemStack;
print("TRYING TO REMOVE LIQUIDS FROM MELTER");
var metalItems as IIngredient[string][string] = {
iron: {
block: <minecraft:iron_block>,
dust: <immersiveengineering:metal:18>,
@kindlich
kindlich / crafttweaker.log
Created January 14, 2018 09:37
Function Variables
[PREINITIALIZATION][CLIENT][INFO] Loading scripts
[PREINITIALIZATION][CLIENT][INFO] Debug Preprocessor found in {[0:crafttweaker]: fun.zs}, enabling debugmode
[PREINITIALIZATION][CLIENT][INFO] Debug Preprocessor found in {[0:crafttweaker]: xdis.zs}, enabling debugmode
[PREINITIALIZATION][CLIENT][INFO] [contenttweaker | SIDE_CLIENT]: Skipping file {[999:crafttweaker]: fun.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [contenttweaker | SIDE_CLIENT]: Skipping file {[0:crafttweaker]: xdis.zs} as we are currently loading with a different loader
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Building registry
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Successfully built item registry
[INITIALIZATION][CLIENT][INFO] Loading scripts
[INITIALIZATION][CLIENT][INFO] Debug Preprocessor found in {[0:crafttweaker]: fun.zs}, enabling debugmode
[INITIALIZATION][CLIENT][INFO] Debug Preprocessor found in {[0:crafttweaker]: xdis.zs}, enabling debugmode
@kindlich
kindlich / crafttweaker.log
Created January 13, 2018 14:20
ZS functions
[PREINITIALIZATION][CLIENT][INFO] Loading scripts
[PREINITIALIZATION][CLIENT][INFO] Debug Preprocessor found in {[0:crafttweaker]: fun.zs}, enabling debugmode
[PREINITIALIZATION][CLIENT][INFO] [contenttweaker | SIDE_CLIENT]: Skipping file {[0:crafttweaker]: fun.zs} as we are currently loading with a different loader
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Building registry
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Successfully built item registry
[INITIALIZATION][CLIENT][INFO] Loading scripts
[INITIALIZATION][CLIENT][INFO] Debug Preprocessor found in {[0:crafttweaker]: fun.zs}, enabling debugmode
[INITIALIZATION][CLIENT][INFO] [crafttweaker | SIDE_CLIENT]: Loading Script: {[0:crafttweaker]: fun.zs}
[INITIALIZATION][CLIENT][INFO] if this is pritned functions might work!
[INITIALIZATION][CLIENT][INFO] testttt
import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;
import crafttweaker.oredict.IOreDict;
import crafttweaker.oredict.IOreDictEntry;
import crafttweaker.data.IData;
BulkOreDict("DEBUG", [<minecraft:iron_ingot>, <minecraft:grass>, <minecraft:dirt>], 2,3,3,false);
BulkOreDict("DEBU2", [<minecraft:gold_ingot>, <minecraft:bow>, <minecraft:redstone>], 3,3,3,false);
/*
import crafttweaker.data.IData;
import crafttweaker.item.IItemStack;
import mods.jei.JEI;
global attributeMap as IData = {
maxHealth : {
name : "generic.maxHealth",