Skip to content

Commit

Permalink
Update anthracite/lignite veins (#1139)
Browse files Browse the repository at this point in the history
* commit

* add oredict

* add crushing/forge hammer recipes

* registering ore

* refactor: rename ore vein files

* fix: fix wrong recipe & hide ore materials

---------

Co-authored-by: planetme <87911459+planetme@users.noreply.github.com>
Co-authored-by: MCTian-mi <35869948+MCTian-mi@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 17, 2024
1 parent 8976aed commit b8121ed
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 66 deletions.
43 changes: 43 additions & 0 deletions config/gregtech/worldgen/vein/beneath/anthracite_deposit_vein.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"weight": 60,
"density": 1,
"max_height": 255,
"min_height": 0,
"dimension_filter": ["dimension_id:10"],
"generator": {
"type": "layered",
"radius": [
25,
25
]
},
"filler": {
"type": "layered",
"values": [
{
"primary": {
"block":"susy:resource_block_1",
"variant":"anthracite"
}
},
{
"secondary": {
"block":"susy:resource_block_1",
"variant":"anthracite"
}
},
{
"between": {
"block":"susy:resource_block_1",
"variant":"anthracite"
}
},
{
"sporadic": {
"block":"susy:resource_block_1",
"variant":"anthracite"
}
}
]
}
}
31 changes: 0 additions & 31 deletions config/gregtech/worldgen/vein/beneath/anthracite_vein.json

This file was deleted.

46 changes: 46 additions & 0 deletions config/gregtech/worldgen/vein/overworld/lignite_deposit_vein.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"weight": 180,
"density": 1,
"max_height": 255,
"min_height": 60,
"vein_populator": {
"type": "surface_rock",
"material": "lignite"
},
"generator": {
"type": "layered",
"radius": [
20,
20
]
},
"filler": {
"type": "layered",
"values": [
{
"primary": {
"block":"susy:resource_block_1",
"variant":"lignite"
}
},
{
"secondary": {
"block":"susy:resource_block_1",
"variant":"lignite"
}
},
{
"between": {
"block":"susy:resource_block_1",
"variant":"lignite"
}
},
{
"sporadic": {
"block":"susy:resource_block_1",
"variant":"lignite"
}
}
]
}
}
34 changes: 0 additions & 34 deletions config/gregtech/worldgen/vein/overworld/lignite_vein.json

This file was deleted.

12 changes: 12 additions & 0 deletions groovy/material/OreMaterials.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -621,5 +621,17 @@ public class OreMaterials{
.flags(NO_UNIFICATION)
.color(0xbb5f09)
.build();

AnthraciteDeposit = new Material.Builder(7084, SuSyUtility.susyId("anthracite_deposit"))
.ore()
.flags(NO_UNIFICATION)
.color(0x241212)
.build();

LigniteDeposit = new Material.Builder(7085, SuSyUtility.susyId("lignite_deposit"))
.ore()
.flags(NO_UNIFICATION)
.color(0x644646)
.build();
}
}
2 changes: 2 additions & 0 deletions groovy/material/SuSyMaterials.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ class SuSyMaterials {
public static Material MagmaticHydrothermalDeposit;
public static Material CoalDeposit;
public static Material NativeCopperDeposit;
public static Material AnthraciteDeposit;
public static Material LigniteDeposit;

// Roasted Ores

Expand Down
26 changes: 25 additions & 1 deletion groovy/postInit/gameplay/Ores.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,31 @@ def RedundantOreRemovals = [
ore('dustPureNativeCopperDeposit'),
ore('dustNativeCopperDeposit'),
ore('dustSmallNativeCopperDeposit'),
ore('dustTinyNativeCopperDeposit')
ore('dustTinyNativeCopperDeposit'),

item('gregtech:ore_anthracite_deposit_0'),
ore('oreNetherrackAnthraciteDeposit'),
ore('oreEndstoneAnthraciteDeposit'),
ore('crushedAnthraciteDeposit'),
ore('crushedPurifiedAnthraciteDeposit'),
ore('crushedCentrifugedAnthraciteDeposit'),
ore('dustImpureAnthraciteDeposit'),
ore('dustPureAnthraciteDeposit'),
ore('dustAnthraciteDeposit'),
ore('dustSmallAnthraciteDeposit'),
ore('dustTinyAnthraciteDeposit'),

item('gregtech:ore_lignite_deposit_0'),
ore('oreNetherrackLigniteDeposit'),
ore('oreEndstoneLigniteDeposit'),
ore('crushedLigniteDeposit'),
ore('crushedPurifiedLigniteDeposit'),
ore('crushedCentrifugedLigniteDeposit'),
ore('dustImpureLigniteDeposit'),
ore('dustPureLigniteDeposit'),
ore('dustLigniteDeposit'),
ore('dustSmallLigniteDeposit'),
ore('dustTinyLigniteDeposit')
]

for (entry in RedundantOreRemovals) {
Expand Down
28 changes: 28 additions & 0 deletions groovy/postInit/mod/GregTech.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,34 @@ mods.gregtech.macerator.recipeBuilder()
.EUt(7)
.buildAndRegister();

mods.gregtech.forge_hammer.recipeBuilder()
.inputs(item('susy:resource_block_1', 1))
.outputs(metaitem('gemAnthracite') * 8)
.duration(10)
.EUt(16)
.buildAndRegister();

mods.gregtech.macerator.recipeBuilder()
.inputs(item('susy:resource_block_1', 1))
.outputs(metaitem('dustAnthracite') * 8)
.duration(240)
.EUt(7)
.buildAndRegister();

mods.gregtech.forge_hammer.recipeBuilder()
.inputs(item('susy:resource_block_1', 2))
.outputs(metaitem('gemLignite') * 8)
.duration(10)
.EUt(16)
.buildAndRegister();

mods.gregtech.macerator.recipeBuilder()
.inputs(item('susy:resource_block_1', 2))
.outputs(metaitem('dustLignite') * 8)
.duration(240)
.EUt(7)
.buildAndRegister();

mods.gregtech.macerator.recipeBuilder()
.inputs(metaitem('native_copper'))
.outputs(metaitem('dustCopper'))
Expand Down
2 changes: 2 additions & 0 deletions groovy/prePostInit/oreDict.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ ore('oreBauxite').add(item('susy:resource_block:0'))
ore('oreSulfur').add(item('susy:resource_block:14'))
ore('oreCoalDeposit').add(item('susy:resource_block:15'))
ore('oreNativeCopperDeposit').add(item('susy:resource_block_1:0'))
ore('oreAnthraciteDeposit').add(item('susy:resource_block_1:1'))
ore('oreLigniteDeposit').add(item('susy:resource_block_1:2'))

ore('oreOrthomagmaticDeposit').add(item('susy:deposit_block:0'))
ore('oreMetamorphicDeposit').add(item('susy:deposit_block:1'))
Expand Down
2 changes: 2 additions & 0 deletions resources/langfiles/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,8 @@ item.susy.material.alluvial_deposit.ore=Alluvial Deposit
item.susy.material.magmatic_hydrothermal_deposit.ore=Magmatic Hydrothermal Deposit
item.susy.material.coal_deposit.ore=Coal Deposit
item.susy.material.native_copper_deposit.ore=Native Copper Deposit
item.susy.material.anthracite_deposit.ore=Anthracite Deposit
item.susy.material.lignite_deposit.ore=Lignite Deposit

susy.material.orthomagmatic_deposit=Orthomagmatic Deposit
susy.material.metamorphic_deposit=Metamorphic Deposit
Expand Down

0 comments on commit b8121ed

Please sign in to comment.