From edf2d0ed18c3e6b641e1c0168436ab14e8033730 Mon Sep 17 00:00:00 2001 From: Hexugory Date: Mon, 3 Jun 2024 16:19:25 -0500 Subject: [PATCH] restore the glorious hooks --- index.toml | 4 ++++ kubejs/server_scripts/tinkerhooks.js | 6 ++++++ pack.toml | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 kubejs/server_scripts/tinkerhooks.js diff --git a/index.toml b/index.toml index 0e01173..bfe5515 100644 --- a/index.toml +++ b/index.toml @@ -416,6 +416,10 @@ hash = "f17bdb6d5bd776179bc29b15b19dcccfe5b8a731ff81a28abfd4cfe02db4ee62" file = "kubejs/server_scripts/tinkerban.js" hash = "5c081cc05d652810a05e63bb0729a69abd3e1d440e6a448ede63b2acd02f919e" +[[files]] +file = "kubejs/server_scripts/tinkerhooks.js" +hash = "533058559f25ad96f1c58658b36f2eb9bef5a4b2e4ad09ce32dd7ef81b0afe86" + [[files]] file = "kubejs/startup_scripts/tinkermode.js" hash = "e36f278847bca8ce8115a39e7ded7838fc8e003fccc9016a2c18fb14ac7bcf1d" diff --git a/kubejs/server_scripts/tinkerhooks.js b/kubejs/server_scripts/tinkerhooks.js new file mode 100644 index 0000000..ae838fc --- /dev/null +++ b/kubejs/server_scripts/tinkerhooks.js @@ -0,0 +1,6 @@ +ServerEvents.recipes(event => { + event.replaceInput( + { input: 'minecraft:iron_pickaxe' }, + 'minecraft:iron_pickaxe', + Item.of('tconstruct:pick_head', '{Material:"tconstruct:iron"}').strongNBT()); +}); diff --git a/pack.toml b/pack.toml index ad6eea9..12a0c67 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "97ed9fc877e7757975d2f7d6999b27582f51b30a9166ecd22eb3873ed1e27371" +hash = "6b04d130a38a62e188305493becdd512a0eba3462914f159f1a4ea9b0443580f" [versions] forge = "43.3.13"