···11+Find more info on the website: https://kubejs.com/
22+33+Directory information:
44+55+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
66+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
77+88+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!)
99+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)
1010+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)
1111+1212+config - KubeJS config storage. This is also the only directory that scripts can access other than world directory
1313+exported - Data dumps like texture atlases end up here
1414+1515+You can find type-specific logs in logs/kubejs/ directory
···11+// priority: 0
22+33+console.info('Hello, World! (You will only see this line once in console, during startup)')
44+55+onEvent('item.registry', event => {
66+ // Register new items here
77+ // event.create('example_item').displayName('Example Item')
88+})
99+1010+onEvent('block.registry', event => {
1111+ // Register new blocks here
1212+ // event.create('example_block').material('wood').hardness(1.0).displayName('Example Block')
1313+})
···11-public function removeAndHide(item as crafttweaker.api.item.IItemStack) as void {
22- craftingTable.remove(item);
33- mods.jei.JEI.hideIngredient(item);
44-}