From f12d2a845c9836186557c2eee8629c03361a4849 Mon Sep 17 00:00:00 2001 From: Electrolyte220 Date: Wed, 24 Jan 2024 23:19:31 -0500 Subject: [PATCH] ProbeJS config updates & disabling phantoms --- kubejs/config/probejs.json | 23 +++++++++++------------ kubejs/jsconfig.json | 9 ++++++++- kubejs/server_scripts/Gamerules.js | 3 +++ 3 files changed, 22 insertions(+), 13 deletions(-) create mode 100644 kubejs/server_scripts/Gamerules.js diff --git a/kubejs/config/probejs.json b/kubejs/config/probejs.json index 118050a8..d309318d 100644 --- a/kubejs/config/probejs.json +++ b/kubejs/config/probejs.json @@ -1,14 +1,13 @@ { - "firstLoad": false, - "noAggressiveProbing": true, - "docsTimestamp": 1694524116376, - "allowRegistryObjectDumps": false, - "allowRegistryLiteralDumps": true, - "requireSingleAndPerm": true, - "enabled": true, - "modChanged": false, - "disableRecipeJsonDump": false, - "dumpJSONIntermediates": false, - "pullSchema": false, - "version": 1 + "version": 2, + "Is ProbeJS Loaded for First Time in the Modpack - Configured by ProbeJS Itself": false, + "The Timestamp of ProbeJS Remote Documents - Configured by ProbeJS Itself": 1704370339573, + "Disable Aggressive Mode for ProbeJS Dumps": true, + "Allow ProbeJS to Resolve Classes from Registries Like Item Classes or Block Classes": true, + "Allow ProbeJS to Generate Literal Types for Item/Block/etc. IDs": true, + "Should ProbeJS Only Show Command in Single Player and with Cheat Enabled": true, + "Should ProbeJS be Generally Enabled": true, + "Disable the Recipe JSON Snippet Generation for ProbeJS triggered by `#`": true, + "Should ProbeJS Generate Intermediate JSON Representation of Documents - Mostly for Debugging": false, + "Should ProbeJS Download Schema Scripts from Github for Mods without Addon Supports": false } \ No newline at end of file diff --git a/kubejs/jsconfig.json b/kubejs/jsconfig.json index 7d535205..772d67bb 100644 --- a/kubejs/jsconfig.json +++ b/kubejs/jsconfig.json @@ -8,6 +8,13 @@ "./probe/generated", "./probe/user" ], - "target": "ES2015" + "target": "ES2015", + "rootDirs": [ + "probe/generated", + "probe/user", + "server_scripts", + "startup_scripts", + "client_scripts" + ] } } \ No newline at end of file diff --git a/kubejs/server_scripts/Gamerules.js b/kubejs/server_scripts/Gamerules.js new file mode 100644 index 00000000..5abfd471 --- /dev/null +++ b/kubejs/server_scripts/Gamerules.js @@ -0,0 +1,3 @@ +ServerEvents.loaded(e => { + e.server.runCommand("gamerule doInsomnia false") +}) \ No newline at end of file