From ca03361da4a6e6bb995048a61a351b1d2661603e Mon Sep 17 00:00:00 2001 From: copygirl Date: Sat, 30 Jul 2022 21:00:28 +0200 Subject: [PATCH] Filled eccentric tome is now a separate recipe --- kubejs/server_scripts/eccentric_tome.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kubejs/server_scripts/eccentric_tome.js b/kubejs/server_scripts/eccentric_tome.js index 1842113..e79ee26 100644 --- a/kubejs/server_scripts/eccentric_tome.js +++ b/kubejs/server_scripts/eccentric_tome.js @@ -24,8 +24,12 @@ let FILLED_ECCENTRIC_TOME = Item.of("eccentrictome:tome", '{' + '}}'); onEvent("recipes", event => { - // Replace the default crafting recipe for the Eccentric Tome to give a filled one. - event.replaceOutput({ id: "eccentrictome:tome" }, "eccentrictome:tome", FILLED_ECCENTRIC_TOME); + // Add an additional recipe that crafts a filled eccentric tome. + event.shapeless(FILLED_ECCENTRIC_TOME, [ + "minecraft:book", + "#forge:bookshelves", + "minecraft:gold_ingot", + ]); }); onEvent("player.logged_in", event => {