mirror of
https://git.fellies.tech/minecraft/fellies.git
synced 2021-02-13 10:18:48 +00:00
Add FTB Quests back in
This commit is contained in:
15
kubejs/README.txt
Normal file
15
kubejs/README.txt
Normal file
@ -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
|
8
kubejs/client_scripts/script.js
Normal file
8
kubejs/client_scripts/script.js
Normal file
@ -0,0 +1,8 @@
|
||||
// priority: 0
|
||||
|
||||
console.info('Hello, World! (You will see this line every time client resources reload)')
|
||||
|
||||
onEvent('jei.hide.items', event => {
|
||||
// Hide items in JEI here
|
||||
// event.hide('minecraft:cobblestone')
|
||||
})
|
13
kubejs/startup_scripts/script.js
Normal file
13
kubejs/startup_scripts/script.js
Normal file
@ -0,0 +1,13 @@
|
||||
// priority: 0
|
||||
|
||||
console.info('Hello, World! (You will only see this line once in console, during startup)')
|
||||
|
||||
onEvent('item.registry', event => {
|
||||
// Register new items here
|
||||
// event.create('example_item').displayName('Example Item')
|
||||
})
|
||||
|
||||
onEvent('block.registry', event => {
|
||||
// Register new blocks here
|
||||
// event.create('example_block').material('wood').hardness(1.0).displayName('Example Block')
|
||||
})
|
Reference in New Issue
Block a user