Skip to content

Commit

Permalink
主世界矿石基本完成
Browse files Browse the repository at this point in the history
  • Loading branch information
DancingSnow0517 committed May 15, 2024
1 parent 4fce375 commit 1ccfedc
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 3 deletions.
7 changes: 7 additions & 0 deletions kubejs/assets/kubejs/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,15 @@
"tagprefix.mercury_stone": "Mercury Stone %s Ore",
"tagprefix.glacio_stone": "Glacio Stone %s Ore",
"tagprefix.holystone": "Holy Stone %s Ore",
"tagprefix.deimos_stone": "Deimos Stone %s Ore",
"tagprefix.ceres_stone": "Ceres Stone %s Ore",
"tagprefix.ganymede_stone": "Ganymede Stone %s Ore",
"tagprefix.io_stone": "IO Stone %s Ore",

"material.gtceu.steel_leaf": "Steel Leaf",
"material.gtceu.alumina": "Alumina",
"material.gtceu.vermiculite": "Vermiculite",
"material.gtceu.lignite": "Lignite Coal",

"biome.kubejs.space_wastelands": "Space Wastelands",
"biome.kubejs.io": "IO",
Expand Down
7 changes: 7 additions & 0 deletions kubejs/assets/kubejs/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,15 @@
"tagprefix.mercury_stone": "水星石%s矿石",
"tagprefix.glacio_stone": "霜原石%s矿石",
"tagprefix.holystone": "圣石%s矿石",
"tagprefix.deimos_stone": "火卫二地底岩石%s矿石",
"tagprefix.ceres_stone": "谷神星地底岩石%s矿石",
"tagprefix.ganymede_stone": "木卫三地底岩石%s矿石",
"tagprefix.io_stone": "木卫一地底岩石%s矿石",

"material.gtceu.steel_leaf": "钢叶",
"material.gtceu.alumina": "氧化铝",
"material.gtceu.vermiculite": "蛭石",
"material.gtceu.lignite": "褐煤",

"biome.kubejs.space_wastelands": "太空荒地",
"biome.kubejs.io": "木卫一",
Expand Down
193 changes: 190 additions & 3 deletions kubejs/server_scripts/oreveins/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ GTCEuServerEvents.oreVeins(event => {
vein.dimensions(OVERWORLD)
vein.heightRangeUniform(80, 200)
vein.dikeVeinGenerator(generator => generator
.withBlock(GTMaterials.Brass, 3, 80, 200)
.withBlock(GTMaterials.Chalcocite, 3, 80, 200)
.withBlock(GTMaterials.get('vermiculite'), 2, 80, 200)
.withBlock(GTMaterials.Cassiterite, 2, 80, 200)
.withBlock(GTMaterials.Alunite, 1, 80, 200)
Expand Down Expand Up @@ -162,8 +162,8 @@ GTCEuServerEvents.oreVeins(event => {
})
event.add('kubejs:redstone', vein => {
vein.weight(60)
vein.clusterSize(35)
vein.density(0.35)
vein.clusterSize(30)
vein.density(0.25)
vein.layer('all')
vein.dimensions(OVERWORLD, MARS, GANYMEDE, MERCURY, VENUS)
vein.heightRangeUniform(-60, -10)
Expand Down Expand Up @@ -242,4 +242,191 @@ GTCEuServerEvents.oreVeins(event => {
.placement("above")
)
})
event.add('kubejs:gold', vein => {
vein.weight(160)
vein.clusterSize(40)
vein.density(0.9)
vein.layer('all')
vein.dimensions(OVERWORLD, TWILIGHT_FOREST, END, MARS)
vein.heightRangeUniform(-30, 70)
vein.veinedVeinGenerator(generator => generator
.oreBlock(GTMaterials.Magnetite, 3)
.oreBlock(GTMaterials.VanadiumMagnetite, 1)
.rareBlock(GTMaterials.Gold, 1)
.rareBlockChance(0.075)
.veininessThreshold(0.1)
.maxRichnessThreshold(0.175)
.minRichness(0.4)
.maxRichness(0.7)
.edgeRoundoffBegin(3)
.maxEdgeRoundoff(0.1)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Magnetite)
.placement("above")
)
})
event.add('kubejs:zeolite', vein => {
vein.weight(60)
vein.clusterSize(30)
vein.density(0.4)
vein.layer('all')
vein.dimensions(OVERWORLD)
vein.heightRangeUniform(40, 70)
vein.layeredVeinGenerator(generator => generator
.buildLayerPattern(patten => patten
.layer(l => l.weight(1).mat(GTMaterials.Zeolite).size(2, 4))
.layer(l => l.weight(1).mat(GTMaterials.FullersEarth).size(2, 4))
.layer(l => l.weight(1).mat(GTMaterials.GlauconiteSand).size(1, 1))
)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Zeolite)
.placement("above")
)
})
event.add('kubejs:lignite', vein => {
vein.weight(160)
vein.clusterSize(50)
vein.density(0.6)
vein.layer('all')
vein.dimensions(OVERWORLD)
vein.heightRangeUniform(80, 140)
vein.veinedVeinGenerator(generator => generator
.oreBlock(GTMaterials.get('lignite'), 3)
.rareBlock(GTMaterials.Coal, 1)
.rareBlockChance(0.1)
.veininessThreshold(0.1)
.maxRichnessThreshold(0.175)
.minRichness(0.4)
.maxRichness(0.7)
.edgeRoundoffBegin(3)
.maxEdgeRoundoff(0.1)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.get('lignite'))
.placement("above")
)
})
event.add('kubejs:apatite', vein => {
vein.weight(60)
vein.clusterSize(25)
vein.density(0.3)
vein.layer('all')
vein.dimensions(OVERWORLD, TWILIGHT_FOREST)
vein.heightRangeUniform(-10, 60)
vein.layeredVeinGenerator(generator => generator
.buildLayerPattern(patten => patten
.layer(l => l.weight(2).mat(GTMaterials.Apatite).size(2, 4))
.layer(l => l.weight(1).mat(GTMaterials.TricalciumPhosphate).size(2, 4))
.layer(l => l.weight(1).mat(GTMaterials.Pyrochlore).size(1, 1))
)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Apatite)
.placement("above")
)
})
event.add('kubejs:basaltic_mineral_sand', vein => {
vein.weight(80)
vein.clusterSize(30)
vein.density(0.3)
vein.layer('all')
vein.dimensions(OVERWORLD)
vein.heightRangeUniform(30, 60)
vein.layeredVeinGenerator(generator => generator
.buildLayerPattern(patten => patten
.layer(l => l.weight(2).mat(GTMaterials.BasalticMineralSand).size(2, 4))
.layer(l => l.weight(2).mat(GTMaterials.GraniticMineralSand).size(2, 4))
.layer(l => l.weight(1).mat(GTMaterials.FullersEarth).size(1, 2))
.layer(l => l.weight(1).mat(GTMaterials.Gypsum).size(1, 1))
)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.BasalticMineralSand)
.placement("above")
)
})
event.add('kubejs:magnetite', vein => {
vein.weight(160)
vein.clusterSize(40)
vein.density(0.9)
vein.layer('all')
vein.dimensions(OVERWORLD, TWILIGHT_FOREST, END, MARS)
vein.heightRangeUniform(50, 180)
vein.veinedVeinGenerator(generator => generator
.oreBlock(GTMaterials.Magnetite, 3)
.oreBlock(GTMaterials.Iron, 1)
.rareBlock(GTMaterials.VanadiumMagnetite, 1)
.rareBlockChance(0.075)
.veininessThreshold(0.1)
.maxRichnessThreshold(0.175)
.minRichness(0.4)
.maxRichness(0.7)
.edgeRoundoffBegin(3)
.maxEdgeRoundoff(0.1)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Magnetite)
.placement("above")
)
})
event.add('kubejs:garnet_sand', vein => {
vein.weight(80)
vein.clusterSize(30)
vein.density(0.3)
vein.layer('all')
vein.dimensions(OVERWORLD)
vein.heightRangeUniform(30, 60)
vein.layeredVeinGenerator(generator => generator
.buildLayerPattern(patten => patten
.layer(l => l.weight(2).mat(GTMaterials.GarnetSand).size(2, 4))
.layer(l => l.weight(2).mat(GTMaterials.Cassiterite).size(2, 4))
.layer(l => l.weight(1).mat(GTMaterials.Asbestos).size(1, 2))
.layer(l => l.weight(1).mat(GTMaterials.Diatomite).size(1, 1))
)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.GarnetSand)
.placement("above")
)
})
event.add('kubejs:salt', vein => {
vein.weight(50)
vein.clusterSize(30)
vein.density(0.4)
vein.layer('all')
vein.dimensions(OVERWORLD, TWILIGHT_FOREST, MARS)
vein.heightRangeUniform(40, 70)
vein.layeredVeinGenerator(generator => generator
.buildLayerPattern(patten => patten
.layer(l => l.weight(2).mat(GTMaterials.Salt).size(2, 4))
.layer(l => l.weight(2).mat(GTMaterials.RockSalt).size(2, 4))
.layer(l => l.weight(1).mat(GTMaterials.Lepidolite).size(1, 2))
.layer(l => l.weight(1).mat(GTMaterials.Spodumene).size(1, 1))
)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Salt)
.placement("above")
)
})
event.add('kubejs:cassiterite', vein => {
vein.weight(50)
vein.clusterSize(30)
vein.density(0.4)
vein.layer('all')
vein.dimensions(OVERWORLD, TWILIGHT_FOREST, END, MOON, IO, VENUS)
vein.heightRangeUniform(80, 220)
vein.layeredVeinGenerator(generator => generator
.buildLayerPattern(patten => patten
.layer(l => l.weight(2).mat(GTMaterials.Cassiterite).size(2, 4))
.layer(l => l.weight(1).mat(GTMaterials.Tin).size(1, 1))
)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Cassiterite)
.placement("above")
)
})
})

0 comments on commit 1ccfedc

Please sign in to comment.