SewingKit is a rewrite of CraftTweaker for Fabric, it has very limited support, and is a very watered down version.
Available commands:
logger.logInfo(String msg);
logger.logCommand(String msg);
logger.logInfo(String msg);
logger.logWarning(String msg);
logger.logError(String msg);
recipes.addShapelessRecipe(String name, MCItemStack output, IIngredient[] inputs);
recipes.addShapedRecipe(String name, MCItemStack output, IIngredient[][] inputs);
recipes.removeRecipe(String name);
recipes.removeRecipe(MCItemStack stack);
furnace.addRecipe(String name, MCItemStack output, IIngredient inputs, float xp, int cookTime);
furnace.removeRecipe(String name);
furnace.removeRecipe(MCItemStack stack);
blasting.addRecipe(String name, MCItemStack output, IIngredient inputs, float xp, int cookTime);
blasting.removeRecipe(String name);
blasting.removeRecipe(MCItemStack stack);
campfire.addRecipe(String name, MCItemStack output, IIngredient inputs, float xp, int cookTime);
campfire.removeRecipe(String name);
campfire.removeRecipe(MCItemStack stack);
smoking.addRecipe(String name, MCItemStack output, IIngredient inputs, float xp, int cookTime);
smoking.removeRecipe(String name);
smoking.removeRecipe(MCItemStack stack);
stoneCutter.addRecipe(String name, MCItemStack output, IIngredient inputs);
stoneCutter.removeRecipe(String name);
stoneCutter.removeRecipe(MCItemStack stack);
print(String msg)
Commands:
/skhand - prints the current held item, and it's tags to chat and the SewingKit.log file.
Brackets:
<item:modid:modname> * amount
<tag:minecraft:wool>
This version is VERY alpha, may not work on servers (never tested, so let me know)
The /skhand command consistently crashes my server
It'd be nice if you posted a working example of a .zs file adding recipes because I've had no success following other ZenScript examples. If it's not a 1:1 port of CraftTweaker and the syntax is not ZenScript, you should clarify this and provide better documentation.
So far I've been able to muddle my way through most of 1.14 but I cAnNoT gEt ThIs To RUN. Not in 1.14.1, 1.14.2. I've tried different Fabric.api versions.
---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 3/06/19 9:30 PM
Description: Initializing game
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors!
at net.fabricmc.loader.entrypoint.hooks.EntrypointUtils.logErrors(EntrypointUtils.java:45)
at net.fabricmc.loader.entrypoint.hooks.EntrypointClient.start(EntrypointClient.java:34)
at net.minecraft.class_310.method_1503(class_310.java)
at net.minecraft.class_310.method_1514(class_310.java:395)
at net.minecraft.client.main.Main.main(Main.java:154)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:170)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:129)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
Suppressed: java.lang.BootstrapMethodError: java.lang.IllegalAccessError: no such method: com.blamejared.sewingkit.CommandHand.register(CommandDispatcher)void/invokeStatic
at com.blamejared.sewingkit.SewingKit.onInitialize(SewingKit.java:20)
at net.fabricmc.loader.entrypoint.hooks.EntrypointUtils.lambda$logErrors$0(EntrypointUtils.java:38)
at java.util.ArrayList.forEach(Unknown Source)
at net.fabricmc.loader.entrypoint.hooks.EntrypointUtils.logErrors(EntrypointUtils.java:36)
... 19 more
Caused by: java.lang.IllegalAccessError: no such method: com.blamejared.sewingkit.CommandHand.register(CommandDispatcher)void/invokeStatic
at java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(Unknown Source)
... 23 more
Caused by: java.lang.NoClassDefFoundError: net/minecraft/text/TextComponent
at java.lang.invoke.MethodHandleNatives.resolve(Native Method)
at java.lang.invoke.MemberName$Factory.resolve(Unknown Source)
at java.lang.invoke.MemberName$Factory.resolveOrFail(Unknown Source)
at java.lang.invoke.MethodHandles$Lookup.resolveOrFail(Unknown Source)
at java.lang.invoke.MethodHandles$Lookup.linkMethodHandleConstant(Unknown Source)
... 24 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.text.TextComponent
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at net.fabricmc.loader.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 29 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at net.fabricmc.loader.entrypoint.hooks.EntrypointUtils.logErrors(EntrypointUtils.java:45)
at net.fabricmc.loader.entrypoint.hooks.EntrypointClient.start(EntrypointClient.java:34)
at net.minecraft.class_310.method_1503(class_310.java)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.class_310.method_1514(class_310.java:395)
at net.minecraft.client.main.Main.main(Main.java:154)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:170)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:129)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
-- System Details --
Details:
Minecraft Version: 1.14.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_211, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 825276776 bytes (787 MB) / 1189609472 bytes (1134 MB) up to 5846335488 bytes (5575 MB)
JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms512m -Xmx6272m
Fabric Mods:
fabric: Fabric API 0.3.0+build.175
fabric-api-base: fabric-api-base 0.1.0+59147463
fabric-commands-v0: fabric-commands-v0 0.1.1+25fd0c52
fabric-containers-v0: fabric-containers-v0 0.1.2+25fd0c52
fabric-content-registries-v0: fabric-content-registries-v0 0.1.1+45e1a1c8
fabric-crash-report-info-v1: fabric-crash-report-info-v1 0.1.0+59147463
fabric-events-interaction-v0: fabric-events-interaction-v0 0.1.0+59147463
fabric-events-lifecycle-v0: fabric-events-lifecycle-v0 0.1.0+59147463
fabric-item-groups-v0: fabric-item-groups-v0 0.1.0+59147463
fabric-keybindings-v0: fabric-keybindings-v0 0.1.0+59147463
fabric-mining-levels-v0: fabric-mining-levels-v0 0.1.0+59147463
fabric-models-v0: fabric-models-v0 0.1.0+59147463
fabric-networking-blockentity-v0: fabric-networking-blockentity-v0 0.1.1+25fd0c52
fabric-networking-v0: fabric-networking-v0 0.1.2+200eb5c2
fabric-object-builders-v0: fabric-object-builders-v0 0.1.1+9fe2f882
fabric-registry-sync-v0: fabric-registry-sync-v0 0.2.1+4d26f9ba
fabric-renderer-api-v1: fabric-renderer-api-v1 0.1.0+02a46d5b
fabric-renderer-indigo: fabric-renderer-indigo 0.1.4+620b4d61
fabric-rendering-data-attachment-v1: fabric-rendering-data-attachment-v1 0.1.0+02a46d5b
fabric-rendering-fluids-v1: fabric-rendering-fluids-v1 0.1.0+dc4c57c2
fabric-rendering-v0: fabric-rendering-v0 0.1.0+59147463
fabric-resource-loader-v0: fabric-resource-loader-v0 0.1.1+59147463
fabric-tag-extensions-v0: fabric-tag-extensions-v0 0.1.0+59147463
fabric-textures-v0: fabric-textures-v0 0.1.4+792c1c35
fabricloader: Fabric Loader 0.4.8+build.154
sewingkit: Sewing Kit 1.0.0
Launched Version: MultiMC5
LWJGL: 3.2.1 build 12
OpenGL: NO CONTEXT
GL Caps:
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'fabric'
Type: Client (map_client.txt)
Resource Packs: ~~ERROR~~ NullPointerException: null
Current Language: ~~ERROR~~ NullPointerException: null
CPU: <unknown>
#@!@# Game crashed! Crash report saved to: #@!@# D:\Games\Minecraft\MultiMC\instances\1.14.2\.minecraft\crash-reports\crash-2019-06-03_21.30.24-client.txt
Process exited with code -1.
Please, good sir(s), what am I missing? What are the dependencies?
does this work with NBT recipes?
By all means, please make it possible to add recipes by providing JSON files! Otherwise, you're locking out many custom mod recipes, especially in 1.13+.
Yes please zenscript is so much more eaiser than 1000x Json files thank you so much Jared for bringing the joy of CT to Fabric we are so lucky to have it!
👌👀👌👀👌👀👌👀👌👀