From f3364834dd544ea525fa6b7a7dbed6a0a72ba079 Mon Sep 17 00:00:00 2001 From: copygirl Date: Sat, 23 Jul 2022 10:45:13 +0200 Subject: [PATCH] Disable Little Logistics' train / rail content --- kubejs/client_scripts/hide/little_logistics.js | 9 +++++++++ kubejs/server_scripts/removal/little_logistics.js | 11 +++++++++++ kubejs/server_scripts/removal/quark_limestone.js | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 kubejs/client_scripts/hide/little_logistics.js create mode 100644 kubejs/server_scripts/removal/little_logistics.js diff --git a/kubejs/client_scripts/hide/little_logistics.js b/kubejs/client_scripts/hide/little_logistics.js new file mode 100644 index 0000000..5b61b7f --- /dev/null +++ b/kubejs/client_scripts/hide/little_logistics.js @@ -0,0 +1,9 @@ +// priority: 0 + +onEvent("jei.hide.items", event => { + event.hide(/^littlelogistics:.*_car$/); + event.hide(/^littlelogistics:.*_locomotive$/); + event.hide(/^littlelogistics:.*_rail$/); + event.hide(/^littlelogistics:.*_component$/); + event.hide("littlelogistics:locomotive_route"); +}); diff --git a/kubejs/server_scripts/removal/little_logistics.js b/kubejs/server_scripts/removal/little_logistics.js new file mode 100644 index 0000000..1492894 --- /dev/null +++ b/kubejs/server_scripts/removal/little_logistics.js @@ -0,0 +1,11 @@ +// priority: 0 + +onEvent("recipes", event => { + event.remove({ output: /^littlelogistics:.*_car$/ }); + event.remove({ output: /^littlelogistics:.*_locomotive$/ }); + event.remove({ output: /^littlelogistics:.*_rail$/ }); + event.remove({ output: /^littlelogistics:.*_component$/ }); + event.remove({ output: "littlelogistics:locomotive_route" }); + + event.replaceInput({ id: "littlelogistics:tug_route" }, "littlelogistics:transmitter_component", "minecraft:ender_pearl"); +}); diff --git a/kubejs/server_scripts/removal/quark_limestone.js b/kubejs/server_scripts/removal/quark_limestone.js index e8ba0f2..1c37a67 100644 --- a/kubejs/server_scripts/removal/quark_limestone.js +++ b/kubejs/server_scripts/removal/quark_limestone.js @@ -1,5 +1,5 @@ // priority: 0 onEvent("recipes", event => { - event.remove({ output: /^quark:.*limestone.*$/ }); + event.remove({ output: /^quark:.*limestone/ }); });