From d7c7f785298ed4a7da5c39f580384bb06291e9dc Mon Sep 17 00:00:00 2001 From: Hannah Date: Mon, 4 May 2026 22:12:37 +0200 Subject: [PATCH] Init KubeJS --- kubejs/README.txt | 15 +++++++++++++++ kubejs/client_scripts/main.js | 3 +++ kubejs/config/client.json | 8 ++++++++ kubejs/config/common.json | 16 ++++++++++++++++ kubejs/config/web_server.json | 6 ++++++ kubejs/server_scripts/main.js | 3 +++ kubejs/startup_scripts/main.js | 3 +++ 7 files changed, 54 insertions(+) create mode 100644 kubejs/README.txt create mode 100644 kubejs/client_scripts/main.js create mode 100644 kubejs/config/client.json create mode 100644 kubejs/config/common.json create mode 100644 kubejs/config/web_server.json create mode 100644 kubejs/server_scripts/main.js create mode 100644 kubejs/startup_scripts/main.js diff --git a/kubejs/README.txt b/kubejs/README.txt new file mode 100644 index 0000000..5cf0fdf --- /dev/null +++ b/kubejs/README.txt @@ -0,0 +1,15 @@ +Find out 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/kubejs/client_scripts/main.js b/kubejs/client_scripts/main.js new file mode 100644 index 0000000..ff6d4b0 --- /dev/null +++ b/kubejs/client_scripts/main.js @@ -0,0 +1,3 @@ +// Visit the wiki for more info - https://kubejs.com/ +console.info('Hello, World! (Loaded client example script)') + diff --git a/kubejs/config/client.json b/kubejs/config/client.json new file mode 100644 index 0000000..500f234 --- /dev/null +++ b/kubejs/config/client.json @@ -0,0 +1,8 @@ +{ + "window_title": "", + "disable_recipe_book": false, + "export_atlases": false, + "blur_scaled_pack_icon": true, + "custom_stack_size_text": true, + "shrink_stack_size_text": true +} \ No newline at end of file diff --git a/kubejs/config/common.json b/kubejs/config/common.json new file mode 100644 index 0000000..fd69fc0 --- /dev/null +++ b/kubejs/config/common.json @@ -0,0 +1,16 @@ +{ + "hide_server_script_errors": false, + "server_only": false, + "announce_reload": true, + "packmode": "", + "save_dev_properties_in_config": false, + "allow_async_streams": true, + "match_json_recipes": true, + "ignore_custom_unique_recipe_ids": false, + "startup_error_gui": true, + "startup_error_report_url": "", + "remove_slot_limit": false, + "default_max_stack_size": 0, + "creative_mode_tab_icon": {}, + "creative_mode_tab_name": null +} \ No newline at end of file diff --git a/kubejs/config/web_server.json b/kubejs/config/web_server.json new file mode 100644 index 0000000..3242055 --- /dev/null +++ b/kubejs/config/web_server.json @@ -0,0 +1,6 @@ +{ + "enabled": true, + "port": 61423, + "public_address": "", + "auth": "Nygm5jQruGmCyNNPl8YKU-fHA-OSPnhPX_jkNcxEqQK7" +} \ No newline at end of file diff --git a/kubejs/server_scripts/main.js b/kubejs/server_scripts/main.js new file mode 100644 index 0000000..32d5996 --- /dev/null +++ b/kubejs/server_scripts/main.js @@ -0,0 +1,3 @@ +// Visit the wiki for more info - https://kubejs.com/ +console.info('Hello, World! (Loaded server example script)') + diff --git a/kubejs/startup_scripts/main.js b/kubejs/startup_scripts/main.js new file mode 100644 index 0000000..d0a5c2b --- /dev/null +++ b/kubejs/startup_scripts/main.js @@ -0,0 +1,3 @@ +// Visit the wiki for more info - https://kubejs.com/ +console.info('Hello, World! (Loaded startup example script)') +