From 00e029e9d695e4b2f80ec0dbccbea825a280ba9e Mon Sep 17 00:00:00 2001 From: endigma Date: Sun, 1 May 2022 19:20:37 -0300 Subject: [PATCH] remove stick properly --- .packwizignore | 1 + index.toml | 8 ++++---- kubejs/README.txt | 15 +++++++++++++++ .../server_scripts/script.js | 4 ++++ pack.toml | 2 +- 5 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 .packwizignore create mode 100644 kubejs/README.txt rename scripts/remove-unbalanced.js => kubejs/server_scripts/script.js (61%) diff --git a/.packwizignore b/.packwizignore new file mode 100644 index 0000000..8012c39 --- /dev/null +++ b/.packwizignore @@ -0,0 +1 @@ +kubejs/README.txt \ No newline at end of file diff --git a/index.toml b/index.toml index 78c72ab..fc4c44d 100644 --- a/index.toml +++ b/index.toml @@ -128,6 +128,10 @@ hash = "0328551a975daba1d595c7657f70eb003c1a444e071e0fdb3a0754cc5a7d7815" file = "config/yosbr/options.txt" hash = "8e981e0a3fe5ec96b79be185991a401b54ed6c4352f52475b85c172668992c35" +[[files]] +file = "kubejs/server_scripts/script.js" +hash = "798e234f669f96a2f8c0220f295e81fea487b9fcb0aef441eca88f2d1b721756" + [[files]] file = "mods/addadd.toml" hash = "5aaa96444fe4ef2d6e723493d1d5f8727929f588f55fcbaea966dd33545f8082" @@ -1116,7 +1120,3 @@ metafile = true [[files]] file = "resourcepacks/Better-Leaves-6.2-1.13+.zip" hash = "583ba4e4328a27b7c81353edf9aa1943143d12780f41316038aa7071a744865f" - -[[files]] -file = "scripts/remove-unbalanced.js" -hash = "0fcb62e8c988ab0ca6e661a1e84260d9141df5bc19728e2593952d37ff05d6ac" diff --git a/kubejs/README.txt b/kubejs/README.txt new file mode 100644 index 0000000..665a708 --- /dev/null +++ b/kubejs/README.txt @@ -0,0 +1,15 @@ +Find more info on the website: https://kubejs.com/ + +Directory information: + +assets - Acts as a resource pack, you can put any client resources in here, like textures, models, etc. Example: assets/kubejs/textures/item/test_item.png +data - Acts as a datapack, you can put any server resources in here, like loot tables, functions, etc. Example: data/kubejs/loot_tables/blocks/test_block.json + +startup_scripts - Scripts that get loaded once during game startup - Used for adding items and other things that can only happen while the game is loading (Can be reloaded with /kubejs reload_startup_scripts, but it may not work!) +server_scripts - Scripts that get loaded every time server resources reload - Used for modifying recipes, tags, loot tables, and handling server events (Can be reloaded with /reload) +client_scripts - Scripts that get loaded every time client resources reload - Used for JEI events, tooltips and other client side things (Can be reloaded with F3+T) + +config - KubeJS config storage. This is also the only directory that scripts can access other than world directory +exported - Data dumps like texture atlases end up here + +You can find type-specific logs in logs/kubejs/ directory \ No newline at end of file diff --git a/scripts/remove-unbalanced.js b/kubejs/server_scripts/script.js similarity index 61% rename from scripts/remove-unbalanced.js rename to kubejs/server_scripts/script.js index c7c0a11..d9e43ae 100644 --- a/scripts/remove-unbalanced.js +++ b/kubejs/server_scripts/script.js @@ -1,3 +1,7 @@ +// priority: 0 + +console.info('fuck stick') + onEvent('recipes', event => { event.remove({output: 'minecraft:stick'}) }) \ No newline at end of file diff --git a/pack.toml b/pack.toml index 0ac001f..19b93fe 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.0.0" [index] file = "index.toml" hash-format = "sha256" -hash = "00c0a43762f6e9d297a4f5e7e900a50e97e19ea6ab4b975aa7efd1af338617c9" +hash = "e9183c85da77f3b109b4ddc3e8aa321d9eee76ac19dc5fa98306414d80d6bc65" [versions] fabric = "0.13.3"