Skip to content

Commit

Permalink
Merge branch '1.13.5' into master-ceu
Browse files Browse the repository at this point in the history
  • Loading branch information
planetme committed Dec 9, 2024
2 parents bc79ef5 + 97ef010 commit 88d28b8
Show file tree
Hide file tree
Showing 86 changed files with 4,220 additions and 2,161 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"chance": 0,
"depleted_yield": 400
},
"fluid": "natural_gas"
"fluid": "crude_natural_gas"
}
40 changes: 40 additions & 0 deletions config/gregtech/worldgen/vein/overworld/kieselguhr_deposit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"weight": 30,
"density": 0.9,
"max_height": 70,
"min_height": 58,
"block": "minecraft:sand",
"vein_populator": {
"type": "surface_rock",
"material": "diatomite"
},
"biome_modifier": {
"type": "biome_map",
"desert": 400,
"river": 300
},
"generator": {
"type": "layered",
"radius": [
20,
20
]
},
"filler": {
"type": "layered",
"values": [
{
"primary": "ore:diatomite"
},
{
"secondary": "ore:diatomite"
},
{
"between": "ore:diatomite"
},
{
"sporadic": "ore:diatomite"
}
]
}
}
1 change: 0 additions & 1 deletion config/immersiverailroading.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ general {
# Note: Naphtha of Thermal Foundation is internally registered as 'refined oil'. #
##################################################################################
dieselFuels {
I:fuel_oil=500
I:diesel=500
I:midgrade_gasoline=600
I:syngas=500
Expand Down
6 changes: 5 additions & 1 deletion groovy/classes/ChangeFlags.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ class ChangeFlags {
setupFluidType(Selenium, FluidStorageKeys.LIQUID, 494)
//setupFluidType(Iron3Chloride, FluidStorageKeys.GAS, 590)

setupFluidType(CarbonDioxide, SusyFluidStorageKeys.SUPERCRITICAL, 304)
setupFluidType(Propane, SusyFluidStorageKeys.SUPERCRITICAL, 370)

Polybenzimidazole.setProperty(SuSyPropertyKey.FIBER, new FiberProperty(false, true, true))
Polytetrafluoroethylene.setProperty(SuSyPropertyKey.FIBER, new FiberProperty(false, true, false))
Polydimethylsiloxane.setProperty(PropertyKey.FLUID, new FluidProperty(FluidStorageKeys.LIQUID, new FluidBuilder()));
Expand Down Expand Up @@ -125,7 +128,7 @@ class ChangeFlags {
Titanium.addFlags("generate_foil", "generate_spring", "generate_spring_small");
Lead.addFlags("generate_round");
Aluminium.addFlags("generate_round");
Nickel.addFlags("generate_rod");
Nickel.addFlags("generate_rod", "generate_foil");
Tungsten.addFlags("generate_fine_wire");
Molybdenum.addFlags("generate_fine_wire");
Tantalum.addFlags("generate_rod");
Expand All @@ -138,6 +141,7 @@ class ChangeFlags {
Alumina.addFlags("generate_catalyst_bed");
Silver.addFlags("generate_catalyst_bed");
Nickel.addFlags("generate_catalyst_bed");
Magnesia.addFlags("generate_catalyst_bed");
Brass.addFlags("generate_ring");
Indium.addFlags("generate_plate");
BisphenolA.addFlags("no_unification");
Expand Down
2 changes: 1 addition & 1 deletion groovy/classes/ICryoGas.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package classes

class ICryoGas{
class ICryoGas {

public String normal_gas;
public String hot_high_pressure_gas;
Expand Down
55 changes: 55 additions & 0 deletions groovy/classes/ISupercriticalFluid.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package classes

class ISupercriticalFluid {

public String supercritical_fluid;
public String starting_gas;
public int critical_temp;
public int EUt;
public int duration;

public static void main(String[] args){
//this is needed for some reason, otherwise it will error
}

public ISupercriticalFluid() {
//this is needed for some reason, otherwise it will error
}

public ISupercriticalFluid(String gas_starting, String fluid_supercritical) {
this.starting_gas = gas_starting;
this.supercritical_fluid = fluid_supercritical;
}

public String getSupercriticalFluid() {
return supercritical_fluid;
}

public String getStartingGas() {
return starting_gas;
}

public int getCriticalTemperature() {
return critical_temp;
}

public int getPowerToCompress() {
return EUt;
}

public int getDurationToCompress() {
return duration;
}

public void setCriticalTemperature(int temp){
critical_temp = temp;
}

public void setPowerToCompress(int power) {
EUt = power;
}

public void setDurationToCompress(int time) {
duration = time;
}
}
4 changes: 4 additions & 0 deletions groovy/globals/CarbonGlobals.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ class CarbonGlobals {
duration = 2
pyrolysis_product = 'dustCarbon'
},
new CarbonSource('dustGreenCoke', 100, 'dustTinyAsh').withTraits(HighPurityCombustible, Pyrolyzable).tap {
duration = 2
pyrolysis_product = 'dustCarbon'
},
new CarbonSource('gemAnthracite', 90, 'dustTinyAsh').withTraits(Combustible, Pyrolyzable).tap {
duration = 2
pyrolysis_product = 'gemCoke'
Expand Down
176 changes: 176 additions & 0 deletions groovy/globals/Petrochemistry.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
package globals

class Petrochemistry {

public static void main (String[] args) {}

public static class Oil {
String name
String brine

Oil(String name, String brine) {
this.name = name
this.brine = brine
}

def getDiluted(int amount) {
return fluid('diluted_' + this.name) * amount
}

def getDesalted(int amount) {
return fluid('desalted_' + this.name) * amount
}

def getHeated(int amount) {
return fluid('heated_' + this.name) * amount
}

def getBrine(int amount) {
return fluid(this.brine) * amount
}

def get(int amount) {
return fluid(this.name) * amount
}
}

trait CatalyticCrackable {
boolean catalytic_crackable = true

def getCatalyticallyCracked(int amount) {
return fluid('catalytically_cracked_' + this.name) * amount
}

def getCrudeCatalyticallyCracked(int amount) {
return fluid('crude_catalytically_cracked_' + this.name) * amount
}
}

trait ThermalCrackable {
boolean thermal_crackable = true

def getThermallyCracked(int amount) {
return fluid('thermally_cracked_' + this.name) * amount
}

def getQuenched(int amount) {
return fluid('quenched_' + this.name) * amount
}
}

trait HydroCrackable {
boolean hydro_crackable = true
int hydrogen_consumed
int gas_produced

def getHydro(int amount) {
return fluid('hydrocracked_' + this.name) * amount
}
}

trait SteamCrackable {
boolean steam_crackable = true

def getSteam(int amount) {
return fluid('steamcracked_' + this.name) * amount
}
}

trait Heatable {
def getHeated(int amount) {
return fluid('heated_' + this.name) * amount
}
}

trait Sulfuric {
boolean sulfuric = true

def getTreatedSulfuric(int amount) {
return fluid('treated_sulfuric_' + this.name) * amount
}

def getSulfuric(int amount) {
return fluid('sulfuric_' + this.name) * amount
}
}

trait Crude {
def getCrude(int amount) {
return fluid('crude_' + this.name) * amount
}
}

trait Strippable extends Crude {
boolean strippable = true
}

public static class OilFraction {
String name
boolean strippable = false
boolean sulfuric = false

OilFraction(String name) {
this.name = name
}

def get(int amount) {
return fluid(this.name) * amount
}
}

public static class Crackable {
String name
boolean thermal_crackable = false
boolean hydro_crackable = false
boolean steam_crackable = false
boolean catalytic_crackable = false

Crackable(String name) {
this.name = name
}

def get(int amount) {
return fluid(this.name) * amount
}
}

/* Data on fractions
- Fuel gas: 3.56 carbons per mol 51.8 g/mol
- Light naphtha: 5.5 carbons per mol 77 g/mol
- Full naphtha: 6.5 carbons per mol 91 g/mol
- Heavy naphtha: 9 carbons per mol 126 g/mol
- Kerosene: 11.5 carbons per mol 161.6 g/mol
- Light gas oil: 15.5 carbons per mol 215.6 g/mol
- Heavy gas oil: 20 carbons per mol 274.5 g/mol
- Atm. residuum: 40 carbons per mol 547.6 g/mol
- Vac. residuum: 45 carbons per mol 603.0 g/mol
- Light cycle oil: 12 carbons per mol 163.5 g/mol
*/

public static fractions = [
heavy_gas_oil : new OilFraction('heavy_gas_oil').withTraits(Sulfuric, Heatable, Strippable),
light_gas_oil : new OilFraction('light_gas_oil').withTraits(Sulfuric, Heatable, Strippable),
kerosene : new OilFraction('kerosene').withTraits(Sulfuric, Heatable, Strippable),
heavy_naphtha : new OilFraction('heavy_naphtha').withTraits(Sulfuric, Heatable),
light_cycle_oil : new OilFraction('light_cycle_oil').withTraits(Sulfuric, Heatable),
naphtha : new OilFraction('naphtha').withTraits(Crude),
light_naphtha : new OilFraction('light_naphtha').withTraits(Sulfuric, Heatable),
]

public static crackables = [
vacuum_oil_residue : new Crackable('vacuum_oil_residue').withTraits(CatalyticCrackable, HydroCrackable, ThermalCrackable).tap { hydrogen_consumed = 3560; gas_produced = 550 },
atmospheric_oil_residue : new Crackable('atmospheric_oil_residue').withTraits(CatalyticCrackable, HydroCrackable, ThermalCrackable).tap { hydrogen_consumed = 3540; gas_produced = 610 },
light_gas_oil : new Crackable('light_gas_oil').withTraits(HydroCrackable, SteamCrackable).tap { hydrogen_consumed = 880; gas_produced = 1790 },
heavy_gas_oil : new Crackable('heavy_gas_oil').withTraits(CatalyticCrackable, HydroCrackable, SteamCrackable).tap { hydrogen_consumed = 1490; gas_produced = 1020 },
ethane : new Crackable('ethane').withTraits(SteamCrackable),
propane : new Crackable('propane').withTraits(SteamCrackable),
butane : new Crackable('butane').withTraits(SteamCrackable),
light_cycle_oil : new Crackable('light_cycle_oil').withTraits(HydroCrackable).tap { hydrogen_consumed = 1130; gas_produced = 1290 }
]

public static oils = [
oil: new Oil('oil', 'oily_brine'),
oil_light: new Oil('oil_light', 'light_oily_brine'),
oil_heavy: new Oil('oil_heavy', 'heavy_oily_brine')
]
}
4 changes: 1 addition & 3 deletions groovy/globals/SinteringGlobals.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class SinteringGlobals {
new Combustible('methane', false, 10, 50, 'carbon_dioxide', 5),
new Combustible('syngas', false, 10, 50, 'carbon_dioxide', 5),
new Combustible('natural_gas', false, 10, 50, 'carbon_dioxide', 5),
new Combustible('refinery_gas', false, 10, 50, 'carbon_dioxide', 5),
new Combustible('plasma.helium', true, 10, 5, 'helium', 10)
]

Expand All @@ -68,8 +67,7 @@ class SinteringGlobals {
public static rotary_kiln_fuels = [
new Combustible('methane', false, 25, 50, 'carbon_dioxide', 25),
new Combustible('natural_gas', false, 8, 50, 'carbon_dioxide', 25),
new Combustible('refinery_gas', false, 8, 50, 'carbon_dioxide', 25),
new Combustible('fuel_oil', false, 4, 50, 'carbon_dioxide', 25)
new Combustible('light_gas_oil', false, 4, 50, 'carbon_dioxide', 25),
]

public static rotary_kiln_comburents = [
Expand Down
Loading

0 comments on commit 88d28b8

Please sign in to comment.