From 3abaf321a711ef38407422cde483992328c83b5e Mon Sep 17 00:00:00 2001 From: copygirl Date: Sun, 24 Jul 2022 09:20:42 +0200 Subject: [PATCH] Unify Ender (Pearl) Dust --- .../hide/unification/ender_pearl_dust.js | 5 +++++ kubejs/server_scripts/unification/ender_pearl_dust.js | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 kubejs/client_scripts/hide/unification/ender_pearl_dust.js create mode 100644 kubejs/server_scripts/unification/ender_pearl_dust.js diff --git a/kubejs/client_scripts/hide/unification/ender_pearl_dust.js b/kubejs/client_scripts/hide/unification/ender_pearl_dust.js new file mode 100644 index 0000000..4ed9d64 --- /dev/null +++ b/kubejs/client_scripts/hide/unification/ender_pearl_dust.js @@ -0,0 +1,5 @@ +// priority: 0 + +onEvent("jei.hide.items", event => { + event.hide("ae2:ender_dust"); +}); diff --git a/kubejs/server_scripts/unification/ender_pearl_dust.js b/kubejs/server_scripts/unification/ender_pearl_dust.js new file mode 100644 index 0000000..2b3b701 --- /dev/null +++ b/kubejs/server_scripts/unification/ender_pearl_dust.js @@ -0,0 +1,11 @@ +// priority: 0 + +onEvent("recipes", event => { + event.remove({ output: "ae2:ender_dust" }); + event.recipes.createMilling([ "thermal:ender_pearl_dust" ], "minecraft:ender_pearl"); + event.recipes.createCrushing([ "thermal:ender_pearl_dust", Item.of("thermal:ender_pearl_dust").withChance(0.25) ], "minecraft:ender_pearl"); +}); + +onEvent("item.tags", event => { + event.removeAllTagsFrom("ae2:ender_dust"); +});