This commit is contained in:
feldenr
2025-02-22 11:00:21 +01:00
parent 4c2b1787ff
commit 6780fc8f78
282 changed files with 453893 additions and 20335 deletions
+15
View File
@@ -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
Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

+6
View File
@@ -0,0 +1,6 @@
// priority: 0
// Visit the wiki for more info - https://kubejs.com/
console.info('Hello, World! (Loaded client scripts)')
+16
View File
@@ -0,0 +1,16 @@
#KubeJS Client Properties
#Fri Feb 21 23:14:38 CET 2025
backgroundColor=2E3440
barBorderColor=ECEFF4
exportAtlases=false
menuBackgroundBrightness=64
disableRecipeBook=false
title=
barColor=ECEFF4
overrideColors=false
fmlLogColor=ECEFF4
showTagNames=false
fmlMemoryColor=ECEFF4
menuBackgroundScale=32.0
blurScaledPackIcon=true
menuInnerBackgroundBrightness=32
+13
View File
@@ -0,0 +1,13 @@
#KubeJS Common Properties
#Fri Feb 21 23:14:38 CET 2025
matchJsonRecipes=true
allowAsyncStreams=true
announceReload=true
startupErrorGUI=true
serverOnly=false
hideServerScriptErrors=false
saveDevPropertiesInConfig=false
packmode=
ignoreCustomUniqueRecipeIds=false
creativeModeTabIcon=minecraft\:purple_dye
startupErrorReportUrl=
@@ -0,0 +1,4 @@
{
"type": "minecraft:no_op",
"config": {}
}
+6
View File
@@ -0,0 +1,6 @@
// priority: 0
// Visit the wiki for more info - https://kubejs.com/
console.info('Hello, World! (Loaded server scripts)')
+6
View File
@@ -0,0 +1,6 @@
// priority: 0
// Visit the wiki for more info - https://kubejs.com/
console.info('Hello, World! (Loaded startup scripts)')
+54
View File
@@ -0,0 +1,54 @@
// priority: 0
WorldgenEvents.add(event => {
// Fonction pour ajouter des minerais avec des paramètres personnalisés
function addOreGeneration(biomeTypes, oreBlock, veinSize, veinsPerChunk, minHeight, maxHeight) {
event.addOre(ore => {
ore.block = oreBlock
ore.spawnsIn.tags = biomeTypes
ore.veinSize = veinSize
ore.veinsPerChunk = veinsPerChunk
ore.minHeight = minHeight
ore.maxHeight = maxHeight
})
}
// Définition des types de biomes
const hotBiomes = [
'minecraft:desert',
'minecraft:savanna',
'minecraft:jungle'
]
const moderateBiomes = [
'minecraft:plains',
'minecraft:forest',
'minecraft:birch_forest',
'minecraft:flower_forest'
]
const coldBiomes = [
'minecraft:mountains',
'minecraft:snowy_tundra',
'minecraft:snowy_mountains',
'minecraft:ice_spikes'
]
// Génération pour Biomes Chauds
addOreGeneration(hotBiomes, 'minecraft:copper_ore', 9, 20, 0, 96)
addOreGeneration(hotBiomes, 'minecraft:gold_ore', 9, 30, 0, 64)
addOreGeneration(hotBiomes, 'minecraft:iron_ore', 9, 25, 0, 72)
addOreGeneration(hotBiomes, 'minecraft:redstone_ore', 8, 15, 0, 16)
// Génération pour Biomes Modérés
addOreGeneration(moderateBiomes, 'minecraft:iron_ore', 9, 30, 0, 72)
addOreGeneration(moderateBiomes, 'minecraft:coal_ore', 17, 25, 0, 128)
addOreGeneration(moderateBiomes, 'minecraft:gold_ore', 9, 10, 0, 32)
addOreGeneration(moderateBiomes, 'minecraft:copper_ore', 9, 15, 0, 96)
// Génération pour Biomes Froids
addOreGeneration(coldBiomes, 'minecraft:diamond_ore', 8, 15, 0, 16)
addOreGeneration(coldBiomes, 'minecraft:iron_ore', 9, 20, 0, 64)
addOreGeneration(coldBiomes, 'minecraft:coal_ore', 17, 25, 0, 128)
addOreGeneration(coldBiomes, 'minecraft:lapis_ore', 7, 10, 0, 32)
})