Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devdyna/glowberry
Kubejs script base with recipe schemas and globalized utils
https://github.com/devdyna/glowberry
kubejs kubejs-script kubejs-scripts
Last synced: about 1 month ago
JSON representation
Kubejs script base with recipe schemas and globalized utils
- Host: GitHub
- URL: https://github.com/devdyna/glowberry
- Owner: DevDyna
- License: mit
- Created: 2024-05-02T11:23:13.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-01T17:27:03.000Z (7 months ago)
- Last Synced: 2024-06-01T19:56:42.444Z (7 months ago)
- Topics: kubejs, kubejs-script, kubejs-scripts
- Language: JavaScript
- Homepage:
- Size: 90.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GlowBerry
Originally made for Ironberry ModpackKUBEJS script-base
How to use:
## Startup Side
[`Direct link`](https://github.com/DevDyna/GlowBerry/blob/main/startup_scripts/HowToUse.js)## Server Side
[`Direct link`](https://github.com/DevDyna/GlowBerry/blob/main/server_scripts/HowToUse.js)## Client Side
[`NotYetCompleted`]## GitHub Side
### How to make a custom Schema
- Open [startup scripts](https://github.com/DevDyna/GlowBerry/blob/main/startup_scripts/base/global.js)
- Add a new field on [global.startup.mods](https://github.com/DevDyna/GlowBerry/blob/main/startup_scripts/base/global.js#L4) based on **mod name** equal `Boolean`
- Add a new field on [global.server.recipes.compat](https://github.com/DevDyna/GlowBerry/blob/main/startup_scripts/base/global.js#L25) based on **json type name** equal `Function`
- Clone [line 94](https://github.com/DevDyna/GlowBerry/blob/main/startup_scripts/base/global.js#L94) removing slash comment and replace `modname` and `mod-id` based on previous **mod name**- Clone .exampleSchema.js.disabled on [server scripts](https://github.com/DevDyna/GlowBerry/blob/main/server_scripts/base/compat/schemas/.exampleSchema.js.disabled)
- Change `modname` with your **mod name** on [line 9](https://github.com/DevDyna/GlowBerry/blob/main/server_scripts/base/compat/schemas/.exampleSchema.js.disabled#L9)
- Change `modname` with your **mod name** and `functionName` with your **json type name** on [line 11](https://github.com/DevDyna/GlowBerry/blob/main/server_scripts/base/compat/schemas/.exampleSchema.js.disabled#L11)
- Insert all parameters inside the brackets on [line 11](https://github.com/DevDyna/GlowBerry/blob/main/server_scripts/base/compat/schemas/.exampleSchema.js.disabled#L11)
- Insert your code on [line 13](https://github.com/DevDyna/GlowBerry/blob/main/server_scripts/base/compat/schemas/.exampleSchema.js.disabled#L13)
- (Optional) If you are using VScode you can use **@param** to add a preview of what was the input parameters [example](https://github.com/DevDyna/GlowBerry/blob/main/server_scripts/base/compat/schemas/ae2.js#L10)
- To add multiple **json types** you can repeat same process as before
**note: if modname still same isn't need to recreate!**
### Do you want contribute? Send it as pull request on GITHUB!