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 e49a67a commit 4fce375
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/worldstripper/stripper.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"minecraft:tuff",
"minecraft:glow_lichen",
"minecraft:infested_stone",
"minecraft:infested_deepslate"
"minecraft:infested_deepslate",
"minecraft:clay",
"minecraft:moss_block"
]
}
123 changes: 123 additions & 0 deletions kubejs/server_scripts/oreveins/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,127 @@ GTCEuServerEvents.oreVeins(event => {
.placement("above")
)
})
event.add('kubejs:coal', vein => {
vein.weight(80)
vein.clusterSize(60)
vein.density(1.3)
vein.layer('all')
vein.dimensions(OVERWORLD, TWILIGHT_FOREST)
vein.heightRangeUniform(-20, 80)
vein.veinedVeinGenerator(generator => generator
.oreBlock(GTMaterials.Coal, 3)
.rareBlock(GTMaterials.get('lignite'), 1)
.rareBlockChance(0.2)
.veininessThreshold(0.1)
.maxRichnessThreshold(0.175)
.minRichness(0.4)
.maxRichness(0.7)
.edgeRoundoffBegin(3)
.maxEdgeRoundoff(0.1)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Coal)
.placement("above")
)
})
event.add('kubejs:manganese', vein => {
vein.weight(20)
vein.clusterSize(40)
vein.density(0.8)
vein.layer('all')
vein.dimensions(OVERWORLD, CERES, IO)
vein.heightRangeUniform(-40, -10)
vein.dikeVeinGenerator(generator => generator
.withBlock(GTMaterials.Grossular, 2, -20, -10)
.withBlock(GTMaterials.Spessartine, 2, -30, -10)
.withBlock(GTMaterials.Pyrolusite, 2, -40, -20)
.withBlock(GTMaterials.Tantalite, 1, -40, -10)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Grossular)
.placement("above")
)
})
event.add('kubejs:redstone', vein => {
vein.weight(60)
vein.clusterSize(35)
vein.density(0.35)
vein.layer('all')
vein.dimensions(OVERWORLD, MARS, GANYMEDE, MERCURY, VENUS)
vein.heightRangeUniform(-60, -10)
vein.layeredVeinGenerator(generator => generator
.buildLayerPattern(patten => patten
.layer(l => l.weight(3).mat(GTMaterials.Redstone).size(2, 4))
.layer(l => l.weight(1).mat(GTMaterials.Ruby).size(1, 1))
.layer(l => l.weight(1).mat(GTMaterials.Cinnabar).size(1, 1))
)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Redstone)
.placement("above")
)
})
event.add('kubejs:mica', vein => {
vein.weight(20)
vein.clusterSize(25)
vein.density(0.25)
vein.layer('all')
vein.dimensions(OVERWORLD)
vein.heightRangeUniform(-40, 10)
vein.layeredVeinGenerator(generator => generator
.buildLayerPattern(patten => patten
.layer(l => l.weight(2).mat(GTMaterials.Kyanite).size(2, 4))
.layer(l => l.weight(2).mat(GTMaterials.Mica).size(1, 2))
.layer(l => l.weight(1).mat(GTMaterials.Cassiterite).size(1, 1))
.layer(l => l.weight(1).mat(GTMaterials.Pollucite).size(1, 1))
)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Mica)
.placement("above")
)
})
event.add('kubejs:copper', vein => {
vein.weight(80)
vein.clusterSize(50)
vein.density(1)
vein.layer('all')
vein.dimensions(OVERWORLD, END, MOON, CERES)
vein.heightRangeUniform(-60, 70)
vein.veinedVeinGenerator(generator => generator
.oreBlock(GTMaterials.Chalcopyrite, 3)
.oreBlock(GTMaterials.Pyrite, 2)
.oreBlock(GTMaterials.Iron, 1)
.rareBlock(GTMaterials.Copper, 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.Chalcopyrite)
.placement("above")
)
})
event.add('kubejs:talc', vein => {
vein.weight(40)
vein.clusterSize(35)
vein.density(1)
vein.layer('all')
vein.dimensions(OVERWORLD, TWILIGHT_FOREST, CERES)
vein.heightRangeUniform(10, 60)
vein.dikeVeinGenerator(generator => generator
.withBlock(GTMaterials.Soapstone, 2, 40, 60)
.withBlock(GTMaterials.Talc, 2, 25, 50)
.withBlock(GTMaterials.GlauconiteSand, 2, 10, 35)
.withBlock(GTMaterials.Pentlandite, 1, 10, 60)
)
vein.surfaceIndicatorGenerator(indicator => indicator
.surfaceRock(GTMaterials.Talc)
.placement("above")
)
})
})
6 changes: 6 additions & 0 deletions kubejs/startup_scripts/gtceu/material/materials.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ GTCEuStartupEvents.registry('gtceu:material', event => {
event.create('vermiculite')
.ore().dust().color(0xE7E088)
.components('3x iron', '10x alumina', '4x silicon', '4x water', '6x oxygen', '2x hydrogen')

event.create('lignite')
.gem(1, 1200).ore(2, 1).color(0x513939)
.iconSet(GTMaterialIconSet.LIGNITE)
.flags(GTMaterialFlags.FLAMMABLE, GTMaterialFlags.NO_SMASHING, GTMaterialFlags.MORTAR_GRINDABLE)
.components('3x carbon', '1x water')
})

0 comments on commit 4fce375

Please sign in to comment.