mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Update config to include comments (#108)
* Add comments to configs * Removed unused options * Added a few of the newer options mainline Mekanism supports * Also list the default values in the MekanismConfig class for easier comparision * Change spacing slightly for tools config in code * Add some of the missing generator config comments * Config comments for tiers, and add missing comment for MinerSilkMultiplier * Config comments for rest of generators module * Fix which stick to sawdust recipe * Config comments for tools * Config comments for armor * Add warning to DM radius comment, and fix a couple things addressed in PR comments
This commit is contained in:
1 parent
1b6cfd37e9
commit
5a67067f07
18 files changed
+751
-480
No files matched your search
@@ -162,119 +162,193 @@ public class CommonProxy implements IGuiProvider {
|
||||
* Set and load the mod's common configuration properties.
|
||||
*/
|
||||
public void loadConfiguration() {
|
||||
general.updateNotifications = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "UpdateNotifications", true).getBoolean();
|
||||
general.controlCircuitOreDict = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "ControlCircuitOreDict", true).getBoolean();
|
||||
general.logPackets = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "LogPackets", false)
|
||||
.get(Configuration.CATEGORY_GENERAL, "ControlCircuitOreDict", true,
|
||||
"Enables recipes using Control Circuits to use OreDict'd Control Circuits from other mods.")
|
||||
.getBoolean();
|
||||
general.logPackets = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "LogPackets", false, "Log Mekanica packet names. Debug setting.")
|
||||
.getBoolean();
|
||||
general.dynamicTankEasterEgg = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "DynamicTankEasterEgg", false).getBoolean();
|
||||
.get(Configuration.CATEGORY_GENERAL, "DynamicTankEasterEgg", false, "Audible sparkles.").getBoolean();
|
||||
general.cardboardSpawners = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "AllowSpawnerBoxPickup", true).getBoolean();
|
||||
.get(Configuration.CATEGORY_GENERAL, "AllowSpawnerBoxPickup", true,
|
||||
"Allows vanilla spawners to be moved with a Cardboard Box.").getBoolean();
|
||||
general.enableWorldRegeneration = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "EnableWorldRegeneration", false).getBoolean();
|
||||
.get(Configuration.CATEGORY_GENERAL, "EnableWorldRegeneration", false,
|
||||
"Allows chunks to retrogen Mekanica ore blocks.").getBoolean();
|
||||
general.spawnBabySkeletons = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "SpawnBabySkeletons", true).getBoolean();
|
||||
general.obsidianTNTDelay = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ObsidianTNTDelay", 100)
|
||||
.get(Configuration.CATEGORY_GENERAL, "SpawnBabySkeletons", true,
|
||||
"Enable the spawning of baby skeletons. Think baby zombies but skeletons.")
|
||||
.getBoolean();
|
||||
general.obsidianTNTDelay = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "ObsidianTNTDelay", 100, "Fuse time for Obsidian TNT.")
|
||||
.getInt();
|
||||
general.obsidianTNTBlastRadius = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "ObsidianTNTBlastRadius", 12).getInt();
|
||||
general.UPDATE_DELAY = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ClientUpdateDelay", 10)
|
||||
.get(Configuration.CATEGORY_GENERAL, "ObsidianTNTBlastRadius", 12,
|
||||
"Radius of the explosion of Obsidian TNT.").getInt();
|
||||
general.UPDATE_DELAY = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ClientUpdateDelay", 10,
|
||||
"How many ticks must pass until a block's active state can sync with the client.")
|
||||
.getInt();
|
||||
general.osmiumPerChunk = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "OsmiumPerChunk", 12)
|
||||
general.osmiumPerChunk = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "OsmiumPerChunk", 12, "Chance that osmium generates in a chunk.", 0,
|
||||
Integer.MAX_VALUE).getInt();
|
||||
general.osmiumMaxVeinSize = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "OsmiumVeinSize", 8, "Max number of blocks in an osmium vein.", 1,
|
||||
Integer.MAX_VALUE)
|
||||
.getInt();
|
||||
general.copperPerChunk = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "CopperPerChunk", 16)
|
||||
general.copperPerChunk = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "CopperPerChunk", 16, "Chance that copper generates in a chunk.", 0,
|
||||
Integer.MAX_VALUE)
|
||||
.getInt();
|
||||
general.tinPerChunk = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "TinPerChunk", 14).getInt();
|
||||
general.saltPerChunk = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "SaltPerChunk", 2).getInt();
|
||||
general.userWorldGenVersion = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "WorldRegenVersion", 0)
|
||||
general.copperMaxVeinSize = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "CopperVeinSize", 8, "Max number of blocks in a copper vein.", 1,
|
||||
Integer.MAX_VALUE)
|
||||
.getInt();
|
||||
general.FROM_IC2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "JoulesToEU", 10D).getDouble();
|
||||
general.TO_IC2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EUToJoules", .1D).getDouble();
|
||||
general.FROM_RF = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "JoulesToRF", 2.5D).getDouble();
|
||||
general.TO_RF = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "RFToJoules", 0.4D).getDouble();
|
||||
general.FROM_TESLA = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "JoulesToTesla", 2.5D)
|
||||
general.tinPerChunk = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "TinPerChunk", 14, "Chance that tin generates in a chunk.", 0,
|
||||
Integer.MAX_VALUE).getInt();
|
||||
general.tinMaxVeinSize = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "TinVeinSize", 8, "Max number of blocks in a tin vein.", 1,
|
||||
Integer.MAX_VALUE).getInt();
|
||||
general.saltPerChunk = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "SaltPerChunk", 2, "Chance that salt generates in a chunk.", 0,
|
||||
Integer.MAX_VALUE).getInt();
|
||||
general.saltMaxVeinSize = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "SaltVeinSize", 6, "Max number of blocks in a salt vein.", 1,
|
||||
Integer.MAX_VALUE).getInt();
|
||||
general.userWorldGenVersion = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "WorldRegenVersion", 0,
|
||||
"Change this value to cause Mekanica to regen its ore in all loaded chunks.")
|
||||
.getInt();
|
||||
general.FROM_IC2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "JoulesToEU", 10D,
|
||||
"Conversion multiplier from EU to Joules (EU * JoulesToEU = Joules)").getDouble();
|
||||
general.TO_IC2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EUToJoules", .1D,
|
||||
"Conversion multiplier from Joules to EU (Joules * EUToJoules = EU)").getDouble();
|
||||
general.FROM_RF = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "JoulesToRF", 2.5D,
|
||||
"Conversion multiplier from RF to Joules (RF * JoulesToRF = Joules)").getDouble();
|
||||
general.TO_RF = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "RFToJoules", 0.4D,
|
||||
"Conversion multiplier from Joules to RF (Joules * RFToJoules = RF)").getDouble();
|
||||
general.FROM_TESLA = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "JoulesToTesla", 2.5D,
|
||||
"Conversion multiplier from Tesla to Joules (Tesla * JoulesToTesla = Joules)")
|
||||
.getDouble();
|
||||
general.TO_TESLA = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "TeslaToJoules", 0.4D)
|
||||
general.TO_TESLA = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "TeslaToJoules", 0.4D,
|
||||
"Conversion multiplier from Joules to Tesla (Joules * TeslaToJoules = Tesla)")
|
||||
.getDouble();
|
||||
general.FROM_FORGE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "JoulesToForge", 2.5D)
|
||||
general.FROM_FORGE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "JoulesToForge", 2.5D,
|
||||
"Conversion multiplier from Forge Energy to Joules (FE * JoulesToForge = Joules)")
|
||||
.getDouble();
|
||||
general.TO_FORGE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ForgeToJoules", 0.4D)
|
||||
general.TO_FORGE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ForgeToJoules", 0.4D,
|
||||
"Conversion multiplier from Joules to Forge Energy (Joules * ForgeToJoules = FE)")
|
||||
.getDouble();
|
||||
general.FROM_H2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "HydrogenEnergyDensity", 200D,
|
||||
"Determines Electrolytic Separator usage").getDouble();
|
||||
general.ETHENE_BURN_TIME = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EthyleneBurnTime", 40)
|
||||
.getInt();
|
||||
"How much energy is produced per mB of Hydrogen, also affects Electrolytic Separator usage, Ethylene burn rate and Gas generator energy capacity")
|
||||
.getDouble();
|
||||
general.ETHENE_BURN_TIME = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EthyleneBurnTime", 40,
|
||||
"Burn time for Ethylene (1mB hydrogen + 2*bioFuel/tick*200ticks/100mB * 20x efficiency bonus).").getInt();
|
||||
general.ENERGY_PER_REDSTONE = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "EnergyPerRedstone", 10000D).getDouble();
|
||||
.get(Configuration.CATEGORY_GENERAL, "EnergyPerRedstone", 10000D,
|
||||
"How much energy (Joules) a piece of redstone gives in machines.").getDouble();
|
||||
general.DISASSEMBLER_USAGE = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "DisassemblerEnergyUsage", 10).getInt();
|
||||
.get(Configuration.CATEGORY_GENERAL, "DisassemblerEnergyUsage", 10,
|
||||
"Base Energy (Joules) usage of the Atomic Disassembler.").getInt();
|
||||
//If this is less than 1, upgrades make machines worse. If less than 0, I don't even know.
|
||||
general.maxUpgradeMultiplier = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "UpgradeModifier", 10, null, 1, Integer.MAX_VALUE).getInt();
|
||||
.get(Configuration.CATEGORY_GENERAL, "UpgradeModifier", 10,
|
||||
"Base factor for working out machine performance with upgrades - UpgradeModifier * (UpgradesInstalled/UpgradesPossible).",
|
||||
1, Integer.MAX_VALUE).getInt();
|
||||
general.minerSilkMultiplier = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "MinerSilkMultiplier", 6).getDouble();
|
||||
.get(Configuration.CATEGORY_GENERAL, "MinerSilkMultiplier", 6,
|
||||
"Energy multiplier for using silk touch mode with the Digital Miner.").getDouble();
|
||||
general.prefilledGasTanks = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "PrefilledGasTanks", true).getBoolean();
|
||||
.get(Configuration.CATEGORY_GENERAL, "PrefilledGasTanks", true,
|
||||
"Add filled creative gas tanks to creative/JEI.").getBoolean();
|
||||
general.armoredJetpackDamageRatio = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "ArmoredJetpackDamageRatio", 0.8).getDouble();
|
||||
.get(Configuration.CATEGORY_GENERAL, "ArmoredJetpackDamageRatio", 0.8,
|
||||
"Damage absorb ratio of the Armored Jetpack.").getDouble();
|
||||
general.armoredJetpackDamageMax = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "ArmoredJepackDamageMax", 115).getInt();
|
||||
.get(Configuration.CATEGORY_GENERAL, "ArmoredJepackDamageMax", 115,
|
||||
"Max damage the Armored Jetpack can absorb.").getInt();
|
||||
general.aestheticWorldDamage = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "AestheticWorldDamage", true).getBoolean();
|
||||
.get(Configuration.CATEGORY_GENERAL, "AestheticWorldDamage", true,
|
||||
"If enabled, lasers can break blocks and the flamethrower starts fires.").getBoolean();
|
||||
general.opsBypassRestrictions = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "OpsBypassRestrictions", false).getBoolean();
|
||||
general.thermalEvaporationSpeed = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "ThermalEvaporationSpeed", 1.0D).getDouble();
|
||||
general.maxJetpackGas = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "MaxJetpackGas", 24000)
|
||||
.get(Configuration.CATEGORY_GENERAL, "OpsBypassRestrictions", false,
|
||||
"Ops can bypass the block security restrictions if enabled.").getBoolean();
|
||||
general.maxJetpackGas = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "MaxJetpackGas", 24000, "Jetpack Gas Tank capacity in mB.")
|
||||
.getInt();
|
||||
general.maxScubaGas = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "MaxScubaGas", 24000, "Scuba Tank Gas Tank capacity in mB.")
|
||||
.getInt();
|
||||
general.maxScubaGas = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "MaxScubaGas", 24000).getInt();
|
||||
general.maxFlamethrowerGas = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "MaxFlamethrowerGas", 24000).getInt();
|
||||
general.maxPumpRange = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "MaxPumpRange", 80).getInt();
|
||||
general.pumpWaterSources = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "PumpWaterSources", false)
|
||||
.get(Configuration.CATEGORY_GENERAL, "MaxFlamethrowerGas", 24000, "Flamethrower Gas Tank capacity in mB.")
|
||||
.getInt();
|
||||
general.maxPumpRange = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "MaxPumpRange", 80,
|
||||
"Maximum block distance to pull fluid from for the Electric Pump.").getInt();
|
||||
general.pumpWaterSources = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "PumpWaterSources", false,
|
||||
"If enabled makes Water and Heavy Water blocks be removed from the world on pump.")
|
||||
.getBoolean();
|
||||
general.maxPlenisherNodes = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "MaxPlenisherNodes", 4000).getInt();
|
||||
.get(Configuration.CATEGORY_GENERAL, "MaxPlenisherNodes", 4000,
|
||||
"Fluidic Plenisher stops after this many blocks.").getInt();
|
||||
general.evaporationHeatDissipation = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "EvaporationHeatDissipation", 0.02D).getDouble();
|
||||
.get(Configuration.CATEGORY_GENERAL, "EvaporationHeatDissipation", 0.02D,
|
||||
"Thermal Evaporation Tower heat loss per tick.").getDouble();
|
||||
general.evaporationTempMultiplier = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "EvaporationTempMultiplier", 0.1D).getDouble();
|
||||
.get(Configuration.CATEGORY_GENERAL, "EvaporationTempMultiplier", 0.1D,
|
||||
"Temperature to amount produced ratio for Thermal Evaporation Tower.").getDouble();
|
||||
general.evaporationSolarMultiplier = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "EvaporationSolarMultiplier", 0.2D).getDouble();
|
||||
.get(Configuration.CATEGORY_GENERAL, "EvaporationSolarMultiplier", 0.2D,
|
||||
"Heat to absorb per Solar Panel array of Thermal Evaporation Tower.").getDouble();
|
||||
general.evaporationMaxTemp = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "EvaporationMaxTemp", 3000D).getDouble();
|
||||
general.energyPerHeat = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EnergyPerHeat", 1000D)
|
||||
.get(Configuration.CATEGORY_GENERAL, "EvaporationMaxTemp", 3000D,
|
||||
"Max Temperature of the Thermal Evaporation Tower.").getDouble();
|
||||
general.energyPerHeat = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EnergyPerHeat", 1000D,
|
||||
"Joules required by the Resistive Heater to produce one unit of heat. Also affects Thermoelectric Boiler's Water->Steam rate.")
|
||||
.getDouble();
|
||||
general.maxEnergyPerSteam = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "MaxEnergyPerSteam", 100D).getDouble();
|
||||
.get(Configuration.CATEGORY_GENERAL, "MaxEnergyPerSteam", 100D,
|
||||
"Maximum Joules per mB of Steam. Also affects Thermoelectric Boiler.").getDouble();
|
||||
general.superheatingHeatTransfer = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "SuperheatingHeatTransfer", 10000D).getDouble();
|
||||
general.heatPerFuelTick = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "HeatPerFuelTick", 4D)
|
||||
.get(Configuration.CATEGORY_GENERAL, "SuperheatingHeatTransfer", 10000D,
|
||||
"Amount of heat each Boiler heating element produces.").getDouble();
|
||||
general.heatPerFuelTick = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "HeatPerFuelTick", 4D,
|
||||
"Amount of heat produced per fuel tick of a fuel's burn time in the Fuelwood Heater.")
|
||||
.getDouble();
|
||||
general.allowTransmitterAlloyUpgrade = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "AllowTransmitterAlloyUpgrade", true).getBoolean();
|
||||
.get(Configuration.CATEGORY_GENERAL, "AllowTransmitterAlloyUpgrade", true,
|
||||
"Allow right clicking on Cables/Pipes/Tubes with alloys to upgrade the tier.").getBoolean();
|
||||
general.allowChunkloading = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "AllowChunkloading", true).getBoolean();
|
||||
general.allowProtection = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "AllowProtection", true)
|
||||
.get(Configuration.CATEGORY_GENERAL, "AllowChunkloading", true,
|
||||
"Disable to make the anchor upgrade not do anything.").getBoolean();
|
||||
general.allowProtection = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "AllowProtection", true,
|
||||
"Enable the security system for players to prevent others from accessing their machines. Does NOT affect Frequencies.")
|
||||
.getBoolean();
|
||||
general.portableTeleporterDelay = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "PortableTeleporterDelay", 0).getInt();
|
||||
.get(Configuration.CATEGORY_GENERAL, "PortableTeleporterDelay", 0,
|
||||
"Delay in ticks before a player is teleported after clicking the Teleport button in the portable teleporter.")
|
||||
.getInt();
|
||||
general.quantumEntangloporterEnergyTransfer = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "QuantumEntangloporterEnergyTransfer", 16000000D).getDouble();
|
||||
.get(Configuration.CATEGORY_GENERAL, "QuantumEntangloporterEnergyTransfer", 16000000D,
|
||||
"Maximum buffer of an Entangoloporter frequency.").getDouble();
|
||||
|
||||
general.blacklistIC2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "BlacklistIC2Power", false,
|
||||
"Disables IC2 power integration. Requires world restart (server-side option in SMP)").getBoolean();
|
||||
general.blacklistRF = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "BlacklistRFPower", false)
|
||||
"Disables IC2 power integration. Requires world restart (server-side option in SMP).").getBoolean();
|
||||
general.blacklistRF = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "BlacklistRFPower", false,
|
||||
"Disables Thermal Expansion RedstoneFlux power integration. Requires world restart (server-side option in SMP).")
|
||||
.getBoolean();
|
||||
general.blacklistTesla = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "BlacklistTeslaPower", false).getBoolean();
|
||||
.get(Configuration.CATEGORY_GENERAL, "BlacklistTeslaPower", false,
|
||||
"Disables Tesla power integration. Requires world restart (server-side option in SMP).")
|
||||
.getBoolean();
|
||||
general.blacklistForge = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "BlacklistForgePower", false).getBoolean();
|
||||
.get(Configuration.CATEGORY_GENERAL, "BlacklistForgePower", false,
|
||||
"Disables Forge Energy (FE,IF,uF,CF) power integration. Requires world restart (server-side option in SMP).")
|
||||
.getBoolean();
|
||||
|
||||
String s = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "EnergyType", "RF", null, new String[]{"J", "RF", "EU", "T"})
|
||||
.get(Configuration.CATEGORY_GENERAL, "EnergyType", "RF", "Displayed energy type in Mekanica GUIs.",
|
||||
new String[]{"J", "RF", "EU", "T"})
|
||||
.getString().trim().toLowerCase();
|
||||
|
||||
switch (s) {
|
||||
@@ -293,7 +367,8 @@ public class CommonProxy implements IGuiProvider {
|
||||
}
|
||||
|
||||
s = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "Temperature Units", "K", null, new String[]{"K", "C", "R", "F"})
|
||||
.get(Configuration.CATEGORY_GENERAL, "Temperature Units", "K",
|
||||
"Displayed temperature unit in Mekanica GUIs.", new String[]{"K", "C", "R", "F"})
|
||||
.getString();
|
||||
|
||||
if (s != null) {
|
||||
@@ -312,53 +387,100 @@ public class CommonProxy implements IGuiProvider {
|
||||
}
|
||||
}
|
||||
|
||||
general.laserRange = Mekanism.configuration.get("general", "LaserRange", 64).getInt();
|
||||
general.laserEnergyNeededPerHardness = Mekanism.configuration.get("general", "LaserDiggingEnergy", 100000)
|
||||
general.laserRange = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "LaserRange", 64, "How far (in blocks) a laser can travel.")
|
||||
.getInt();
|
||||
general.destroyDisabledBlocks = Mekanism.configuration.get("general", "DestroyDisabledBlocks", true)
|
||||
general.laserEnergyNeededPerHardness = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "LaserDiggingEnergy", 100000,
|
||||
"Energy needed to destroy or attract blocks with a Laser (per block hardness level).")
|
||||
.getInt();
|
||||
general.destroyDisabledBlocks = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "DestroyDisabledBlocks", true,
|
||||
"If machine is disabled in config, do we set its block to air if it is found in world?")
|
||||
.getBoolean();
|
||||
general.digitalMinerMaxRadius = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "DigitalMinerMaxRadius", 32,
|
||||
"Maximum radius in blocks that the Digital Miner can reach. "
|
||||
+ "(Increasing this may have negative effects on stability and/or performance. "
|
||||
+ "We strongly recommend you leave it at the default value.)",
|
||||
1, Integer.MAX_VALUE).getInt();
|
||||
|
||||
for (MachineType type : BlockStateMachine.MachineType.getValidMachines()) {
|
||||
general.machinesManager.setEntry(type.blockName,
|
||||
Mekanism.configuration.get("machines", type.blockName + "Enabled", true).getBoolean());
|
||||
Mekanism.configuration.get("machines", type.blockName + "Enabled", true,
|
||||
"Allow " + type.blockName + " to be used/crafted.").getBoolean());
|
||||
}
|
||||
|
||||
usage.enrichmentChamberUsage = Mekanism.configuration.get("usage", "EnrichmentChamberUsage", 50D).getDouble();
|
||||
usage.osmiumCompressorUsage = Mekanism.configuration.get("usage", "OsmiumCompressorUsage", 100D).getDouble();
|
||||
usage.combinerUsage = Mekanism.configuration.get("usage", "CombinerUsage", 50D).getDouble();
|
||||
usage.crusherUsage = Mekanism.configuration.get("usage", "CrusherUsage", 50D).getDouble();
|
||||
usage.metallurgicInfuserUsage = Mekanism.configuration.get("usage", "MetallurgicInfuserUsage", 50D).getDouble();
|
||||
usage.purificationChamberUsage = Mekanism.configuration.get("usage", "PurificationChamberUsage", 200D)
|
||||
general.sawdustChancePlank = Mekanism.configuration
|
||||
.get(Configuration.CATEGORY_GENERAL, "SawdustChancePlank", 0.25D,
|
||||
"Chance of producing sawdust per operation in the precision sawmill when turning planks into sticks.")
|
||||
.getDouble();
|
||||
usage.energizedSmelterUsage = Mekanism.configuration.get("usage", "EnergizedSmelterUsage", 50D).getDouble();
|
||||
usage.digitalMinerUsage = Mekanism.configuration.get("usage", "DigitalMinerUsage", 100D).getDouble();
|
||||
usage.electricPumpUsage = Mekanism.configuration.get("usage", "ElectricPumpUsage", 100D).getDouble();
|
||||
usage.rotaryCondensentratorUsage = Mekanism.configuration.get("usage", "RotaryCondensentratorUsage", 50D)
|
||||
general.sawdustChanceLog = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "SawdustChanceLog", 1D,
|
||||
"Chance of producing sawdust per operation in the precision sawmill when turning logs into planks.")
|
||||
.getDouble();
|
||||
usage.oxidationChamberUsage = Mekanism.configuration.get("usage", "OxidationChamberUsage", 200D).getDouble();
|
||||
usage.chemicalInfuserUsage = Mekanism.configuration.get("usage", "ChemicalInfuserUsage", 200D).getDouble();
|
||||
usage.chemicalInjectionChamberUsage = Mekanism.configuration.get("usage", "ChemicalInjectionChamberUsage", 400D)
|
||||
|
||||
usage.enrichmentChamberUsage = Mekanism.configuration
|
||||
.get("usage", "EnrichmentChamberUsage", 50D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.osmiumCompressorUsage = Mekanism.configuration
|
||||
.get("usage", "OsmiumCompressorUsage", 100D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.combinerUsage = Mekanism.configuration
|
||||
.get("usage", "CombinerUsage", 50D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.crusherUsage = Mekanism.configuration
|
||||
.get("usage", "CrusherUsage", 50D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.metallurgicInfuserUsage = Mekanism.configuration
|
||||
.get("usage", "MetallurgicInfuserUsage", 50D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.purificationChamberUsage = Mekanism.configuration
|
||||
.get("usage", "PurificationChamberUsage", 200D, "Energy per operation tick (Joules).")
|
||||
.getDouble();
|
||||
usage.precisionSawmillUsage = Mekanism.configuration.get("usage", "PrecisionSawmillUsage", 50D).getDouble();
|
||||
usage.energizedSmelterUsage = Mekanism.configuration
|
||||
.get("usage", "EnergizedSmelterUsage", 50D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.digitalMinerUsage = Mekanism.configuration
|
||||
.get("usage", "DigitalMinerUsage", 100D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.electricPumpUsage = Mekanism.configuration
|
||||
.get("usage", "ElectricPumpUsage", 100D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.rotaryCondensentratorUsage = Mekanism.configuration
|
||||
.get("usage", "RotaryCondensentratorUsage", 50D, "Energy per operation tick (Joules).")
|
||||
.getDouble();
|
||||
usage.oxidationChamberUsage = Mekanism.configuration
|
||||
.get("usage", "OxidationChamberUsage", 200D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.chemicalInfuserUsage = Mekanism.configuration
|
||||
.get("usage", "ChemicalInfuserUsage", 200D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.chemicalInjectionChamberUsage = Mekanism.configuration
|
||||
.get("usage", "ChemicalInjectionChamberUsage", 400D, "Energy per operation tick (Joules).")
|
||||
.getDouble();
|
||||
usage.precisionSawmillUsage = Mekanism.configuration
|
||||
.get("usage", "PrecisionSawmillUsage", 50D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.chemicalDissolutionChamberUsage = Mekanism.configuration
|
||||
.get("usage", "ChemicalDissolutionChamberUsage", 400D).getDouble();
|
||||
usage.chemicalWasherUsage = Mekanism.configuration.get("usage", "ChemicalWasherUsage", 200D).getDouble();
|
||||
usage.chemicalCrystallizerUsage = Mekanism.configuration.get("usage", "ChemicalCrystallizerUsage", 400D)
|
||||
usage.chemicalWasherUsage = Mekanism.configuration
|
||||
.get("usage", "ChemicalWasherUsage", 200D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.chemicalCrystallizerUsage = Mekanism.configuration
|
||||
.get("usage", "ChemicalCrystallizerUsage", 400D, "Energy per operation tick (Joules).")
|
||||
.getDouble();
|
||||
usage.seismicVibratorUsage = Mekanism.configuration.get("usage", "SeismicVibratorUsage", 50D).getDouble();
|
||||
usage.pressurizedReactionBaseUsage = Mekanism.configuration.get("usage", "PressurizedReactionBaseUsage", 5D)
|
||||
usage.seismicVibratorUsage = Mekanism.configuration
|
||||
.get("usage", "SeismicVibratorUsage", 50D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.pressurizedReactionBaseUsage = Mekanism.configuration
|
||||
.get("usage", "PressurizedReactionBaseUsage", 5D, "Energy per operation tick (Joules).")
|
||||
.getDouble();
|
||||
usage.fluidicPlenisherUsage = Mekanism.configuration.get("usage", "FluidicPlenisherUsage", 100D).getDouble();
|
||||
usage.laserUsage = Mekanism.configuration.get("usage", "LaserUsage", 5000D).getDouble();
|
||||
usage.gasCentrifugeUsage = Mekanism.configuration.get("usage", "GasCentrifugeUsage", 100D).getDouble();
|
||||
usage.heavyWaterElectrolysisUsage = Mekanism.configuration.get("usage", "HeavyWaterElectrolysisUsage", 800D)
|
||||
usage.fluidicPlenisherUsage = Mekanism.configuration
|
||||
.get("usage", "FluidicPlenisherUsage", 100D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.laserUsage = Mekanism.configuration
|
||||
.get("usage", "LaserUsage", 5000D, "Energy per operation tick (Joules).").getDouble();
|
||||
usage.heavyWaterElectrolysisUsage = Mekanism.configuration.get("usage", "HeavyWaterElectrolysisUsage", 800D,
|
||||
"Energy needed for one [recipe unit] of heavy water production (Joules).")
|
||||
.getDouble();
|
||||
usage.formulaicAssemblicatorUsage = Mekanism.configuration.get("usage", "FormulaicAssemblicatorUsage", 100D)
|
||||
usage.formulaicAssemblicatorUsage = Mekanism.configuration
|
||||
.get("usage", "FormulaicAssemblicatorUsage", 100D, "Energy per operation tick (Joules).")
|
||||
.getDouble();
|
||||
usage.teleporterBaseUsage = Mekanism.configuration.get("usage", "TeleporterBaseUsage", 1000).getInt();
|
||||
usage.teleporterDistanceUsage = Mekanism.configuration.get("usage", "TeleporterDistanceUsage", 10).getInt();
|
||||
usage.teleporterDimensionPenalty = Mekanism.configuration.get("usage", "TeleporterDimensionPenalty", 10000)
|
||||
usage.teleporterBaseUsage = Mekanism.configuration
|
||||
.get("usage", "TeleporterBaseUsage", 1000, "Base Joules cost for a teleportation.")
|
||||
.getInt();
|
||||
usage.teleporterDistanceUsage = Mekanism.configuration.get("usage", "TeleporterDistanceUsage", 10,
|
||||
"Joules per unit of distance travelled during teleportation - sqrt(xDiff^2 + yDiff^2 + zDiff^2).")
|
||||
.getInt();
|
||||
usage.teleporterDimensionPenalty = Mekanism.configuration
|
||||
.get("usage", "TeleporterDimensionPenalty", 10000,
|
||||
"Flat additional cost for interdimensional teleportation.").getInt();
|
||||
|
||||
Tier.loadConfig();
|
||||
|
||||
|
||||
@@ -123,10 +123,11 @@ public final class Tier {
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
if (this != CREATIVE) {
|
||||
maxEnergy = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "EnergyCubeMaxEnergy", baseMaxEnergy).getDouble();
|
||||
output = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "EnergyCubeOutput", baseOutput).getDouble();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
maxEnergy = Mekanism.configuration.get("tier", name + "EnergyCubeMaxEnergy", baseMaxEnergy,
|
||||
"Maximum number of Joules a " + name + " energy cube can store.").getDouble();
|
||||
output = Mekanism.configuration.get("tier", name + "EnergyCubeOutput", baseOutput,
|
||||
"Output rate in Joules of a " + name + " energy cube.").getDouble();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,8 +178,9 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
maxEnergy = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "InductionCellMaxEnergy", baseMaxEnergy).getDouble();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
maxEnergy = Mekanism.configuration.get("tier", name + "InductionCellMaxEnergy", baseMaxEnergy,
|
||||
"Maximum number of Joules a " + name + " induction cell can store.").getDouble();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -212,8 +214,9 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
output = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "InductionProviderOutput", baseOutput).getDouble();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
output = Mekanism.configuration.get("tier", name + "InductionProviderOutput", baseOutput,
|
||||
"Maximum number of Joules a " + name + " induction provider can output or accept.").getDouble();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -291,8 +294,9 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
cableCapacity = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "CableCapacity", baseCapacity).getInt();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
cableCapacity = Mekanism.configuration.get("tier", name + "CableCapacity", baseCapacity,
|
||||
"Internal buffer in Joules of each " + name + " universal cable.").getInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -339,10 +343,11 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
pipeCapacity = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "PipeCapacity", baseCapacity).getInt();
|
||||
pipePullAmount = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "PipePullAmount", basePull).getInt();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
pipeCapacity = Mekanism.configuration.get("tier", name + "PipeCapacity", baseCapacity,
|
||||
"Capacity of " + name + " mechanical pipe in mB.").getInt();
|
||||
pipePullAmount = Mekanism.configuration.get("tier", name + "PipePullAmount", basePull,
|
||||
"Pump rate of " + name + " mechanical pipe in mB/t.").getInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -391,10 +396,11 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
tubeCapacity = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "TubeCapacity", baseCapacity).getInt();
|
||||
tubePullAmount = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "TubePullAmount", basePull).getInt();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
tubeCapacity = Mekanism.configuration.get("tier", name + "TubeCapacity", baseCapacity,
|
||||
"Capacity of " + name + " pressurized tube in mB.").getInt();
|
||||
tubePullAmount = Mekanism.configuration.get("tier", name + "TubePullAmount", basePull,
|
||||
"Pump rate of " + name + " pressurized tube in mB/t.").getInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -443,10 +449,11 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
pullAmount = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "TransporterPullAmount", basePull).getInt();
|
||||
speed = Mekanism.configuration.get("tier", getBaseTier().getSimpleName() + "TransporterSpeed", baseSpeed)
|
||||
.getInt();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
pullAmount = Mekanism.configuration.get("tier", name + "TransporterPullAmount", basePull,
|
||||
"Item throughput rate of " + name + " logistical transporter in items/s.").getInt();
|
||||
speed = Mekanism.configuration.get("tier", name + "TransporterSpeed", baseSpeed,
|
||||
"Five times travel speed of " + name + " logistical transporter.").getInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -501,14 +508,14 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
inverseConduction = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "ConductorInverseConduction", baseConduction)
|
||||
.getDouble();
|
||||
inverseHeatCapacity = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "ConductorHeatCapacity", baseHeatCapacity).getDouble();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
inverseConduction = Mekanism.configuration.get("tier", name + "ConductorInverseConduction", baseConduction,
|
||||
"Conduction value of " + name + " thermodynamic conductor.").getDouble();
|
||||
inverseHeatCapacity = Mekanism.configuration.get("tier", name + "ConductorHeatCapacity", baseHeatCapacity,
|
||||
"Heat capacity of " + name + " thermodynamic conductor.").getDouble();
|
||||
inverseConductionInsulation = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "ConductorConductionInsulation",
|
||||
baseConductionInsulation).getDouble();
|
||||
.get("tier", name + "ConductorConductionInsulation", baseConductionInsulation,
|
||||
"Insulation value of " + name + " thermodynamic conductor.").getDouble();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -550,10 +557,11 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
storage = Mekanism.configuration
|
||||
.get("tier", getBaseTier().getSimpleName() + "FluidTankStorage", baseStorage).getInt();
|
||||
output = Mekanism.configuration.get("tier", getBaseTier().getSimpleName() + "FluidTankOutput", baseOutput)
|
||||
.getInt();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
storage = Mekanism.configuration.get("tier", name + "FluidTankStorage", baseStorage,
|
||||
"Storage size of " + name + " gas tank in mB.").getInt();
|
||||
output = Mekanism.configuration.get("tier", name + "FluidTankOutput", baseOutput,
|
||||
"Output rate of " + name + " gas tank in mB.").getInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -593,10 +601,11 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
storage = Mekanism.configuration.get("tier", getBaseTier().getSimpleName() + "GasTankStorage", baseStorage)
|
||||
.getInt();
|
||||
output = Mekanism.configuration.get("tier", getBaseTier().getSimpleName() + "GasTankOutput", baseOutput)
|
||||
.getInt();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
storage = Mekanism.configuration.get("tier", name + "GasTankStorage", baseStorage,
|
||||
"Storage size of " + name + " gas tank in mB.").getInt();
|
||||
output = Mekanism.configuration.get("tier", name + "GasTankOutput", baseOutput,
|
||||
"Output rate of " + name + " gas tank in mB.").getInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -638,8 +647,9 @@ public final class Tier {
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
storage = Mekanism.configuration.get("tier", getBaseTier().getSimpleName() + "BinStorage", baseStorage)
|
||||
.getInt();
|
||||
String name = getBaseTier().getSimpleName();
|
||||
storage = Mekanism.configuration.get("tier", name + "BinStorage", baseStorage,
|
||||
"The number of items a " + name + " bin can store.").getInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -10,7 +10,6 @@ public class MekanismConfig {
|
||||
|
||||
public static TypeConfigManager machinesManager = new TypeConfigManager();
|
||||
|
||||
public static boolean updateNotifications = true;
|
||||
public static boolean controlCircuitOreDict = true;
|
||||
public static boolean logPackets = false;
|
||||
public static boolean dynamicTankEasterEgg = false;
|
||||
@@ -19,9 +18,13 @@ public class MekanismConfig {
|
||||
public static boolean spawnBabySkeletons = true;
|
||||
public static int obsidianTNTBlastRadius = 12;
|
||||
public static int osmiumPerChunk = 12;
|
||||
public static int osmiumMaxVeinSize = 8;
|
||||
public static int copperPerChunk = 16;
|
||||
public static int copperMaxVeinSize = 8;
|
||||
public static int tinPerChunk = 14;
|
||||
public static int tinMaxVeinSize = 8;
|
||||
public static int saltPerChunk = 2;
|
||||
public static int saltMaxVeinSize = 6;
|
||||
public static int obsidianTNTDelay = 100;
|
||||
public static int UPDATE_DELAY = 10;
|
||||
public static int maxUpgradeMultiplier = 10;
|
||||
@@ -31,35 +34,35 @@ public class MekanismConfig {
|
||||
public static double DISASSEMBLER_USAGE = 10;
|
||||
public static EnergyType energyUnit = EnergyType.J;
|
||||
public static TempType tempUnit = TempType.K;
|
||||
public static double TO_IC2;
|
||||
public static double TO_RF;
|
||||
public static double TO_TESLA;
|
||||
public static double TO_FORGE;
|
||||
public static double FROM_H2;
|
||||
public static double FROM_IC2;
|
||||
public static double FROM_RF;
|
||||
public static double FROM_TESLA;
|
||||
public static double FROM_FORGE;
|
||||
public static int laserRange;
|
||||
public static double laserEnergyNeededPerHardness;
|
||||
public static double TO_IC2 = 0.1;
|
||||
public static double TO_RF = 0.4;
|
||||
public static double TO_TESLA = 0.4;
|
||||
public static double TO_FORGE = 0.4;
|
||||
public static double FROM_H2 = 200;
|
||||
public static double FROM_IC2 = 10;
|
||||
public static double FROM_RF = 2.5;
|
||||
public static double FROM_TESLA = 2.5;
|
||||
public static double FROM_FORGE = 2.5;
|
||||
public static int laserRange = 64;
|
||||
public static double laserEnergyNeededPerHardness = 100000;
|
||||
public static double minerSilkMultiplier = 6;
|
||||
public static boolean blacklistIC2;
|
||||
public static boolean blacklistRF;
|
||||
public static boolean blacklistTesla;
|
||||
public static boolean blacklistForge;
|
||||
public static boolean destroyDisabledBlocks;
|
||||
public static boolean prefilledGasTanks;
|
||||
public static double armoredJetpackDamageRatio;
|
||||
public static int armoredJetpackDamageMax;
|
||||
public static boolean aestheticWorldDamage;
|
||||
public static boolean opsBypassRestrictions;
|
||||
public static double thermalEvaporationSpeed;
|
||||
public static int maxJetpackGas;
|
||||
public static int maxScubaGas;
|
||||
public static int maxFlamethrowerGas;
|
||||
public static int maxPumpRange;
|
||||
public static boolean pumpWaterSources;
|
||||
public static int maxPlenisherNodes;
|
||||
public static boolean blacklistIC2 = false;
|
||||
public static boolean blacklistRF = false;
|
||||
public static boolean blacklistTesla = false;
|
||||
public static boolean blacklistForge = false;
|
||||
public static boolean destroyDisabledBlocks = true;
|
||||
public static int digitalMinerMaxRadius = 32;
|
||||
public static boolean prefilledGasTanks = true;
|
||||
public static double armoredJetpackDamageRatio = 0.8;
|
||||
public static int armoredJetpackDamageMax = 115;
|
||||
public static boolean aestheticWorldDamage = true;
|
||||
public static boolean opsBypassRestrictions = false;
|
||||
public static int maxJetpackGas = 24000;
|
||||
public static int maxScubaGas = 24000;
|
||||
public static int maxFlamethrowerGas = 24000;
|
||||
public static int maxPumpRange = 80;
|
||||
public static boolean pumpWaterSources = false;
|
||||
public static int maxPlenisherNodes = 4000;
|
||||
public static double evaporationHeatDissipation = 0.02;
|
||||
public static double evaporationTempMultiplier = 0.1;
|
||||
public static double evaporationSolarMultiplier = 0.2;
|
||||
@@ -68,89 +71,88 @@ public class MekanismConfig {
|
||||
public static double maxEnergyPerSteam = 100;
|
||||
public static double superheatingHeatTransfer = 10000;
|
||||
public static double heatPerFuelTick = 4;
|
||||
public static boolean allowTransmitterAlloyUpgrade;
|
||||
public static boolean allowChunkloading;
|
||||
public static boolean allowTransmitterAlloyUpgrade = true;
|
||||
public static boolean allowChunkloading = true;
|
||||
public static boolean allowProtection = true;
|
||||
public static int portableTeleporterDelay;
|
||||
public static double quantumEntangloporterEnergyTransfer;
|
||||
public static int portableTeleporterDelay = 0;
|
||||
public static double quantumEntangloporterEnergyTransfer = 16000000;
|
||||
public static double sawdustChancePlank = 0.25;
|
||||
public static double sawdustChanceLog = 1;
|
||||
}
|
||||
|
||||
public static class client {
|
||||
|
||||
public static boolean enablePlayerSounds = true;
|
||||
public static boolean enableMachineSounds = true;
|
||||
public static boolean holidays = true;
|
||||
public static boolean holidays = true;//Was going to remove?
|
||||
public static float baseSoundVolume = 1F;
|
||||
public static boolean machineEffects = true;
|
||||
public static boolean oldTransmitterRender = false;
|
||||
public static boolean replaceSoundsWhenResuming = true;
|
||||
public static boolean enableAmbientLighting;
|
||||
public static int ambientLightingLevel;
|
||||
public static int ambientLightingLevel = 15;
|
||||
public static boolean opaqueTransmitters = false;
|
||||
public static boolean allowConfiguratorModeScroll;
|
||||
public static boolean allowConfiguratorModeScroll = true;
|
||||
public static boolean enableMultiblockFormationParticles = true;
|
||||
}
|
||||
|
||||
public static class usage {
|
||||
|
||||
public static double enrichmentChamberUsage;
|
||||
public static double osmiumCompressorUsage;
|
||||
public static double combinerUsage;
|
||||
public static double crusherUsage;
|
||||
public static double metallurgicInfuserUsage;
|
||||
public static double purificationChamberUsage;
|
||||
public static double energizedSmelterUsage;
|
||||
public static double digitalMinerUsage;
|
||||
public static double electricPumpUsage;
|
||||
public static double rotaryCondensentratorUsage;
|
||||
public static double oxidationChamberUsage;
|
||||
public static double chemicalInfuserUsage;
|
||||
public static double chemicalInjectionChamberUsage;
|
||||
public static double precisionSawmillUsage;
|
||||
public static double chemicalDissolutionChamberUsage;
|
||||
public static double chemicalWasherUsage;
|
||||
public static double chemicalCrystallizerUsage;
|
||||
public static double seismicVibratorUsage;
|
||||
public static double pressurizedReactionBaseUsage;
|
||||
public static double fluidicPlenisherUsage;
|
||||
public static double laserUsage;
|
||||
public static double gasCentrifugeUsage;
|
||||
public static double heavyWaterElectrolysisUsage;
|
||||
public static double formulaicAssemblicatorUsage;
|
||||
public static int teleporterBaseUsage;
|
||||
public static int teleporterDistanceUsage;
|
||||
public static int teleporterDimensionPenalty;
|
||||
public static double enrichmentChamberUsage = 50;
|
||||
public static double osmiumCompressorUsage = 100;
|
||||
public static double combinerUsage = 50;
|
||||
public static double crusherUsage = 50;
|
||||
public static double metallurgicInfuserUsage = 50;
|
||||
public static double purificationChamberUsage = 200;
|
||||
public static double energizedSmelterUsage = 50;
|
||||
public static double digitalMinerUsage = 100;
|
||||
public static double electricPumpUsage = 100;
|
||||
public static double rotaryCondensentratorUsage = 50;
|
||||
public static double oxidationChamberUsage = 200;
|
||||
public static double chemicalInfuserUsage = 200;
|
||||
public static double chemicalInjectionChamberUsage = 400;
|
||||
public static double precisionSawmillUsage = 50;
|
||||
public static double chemicalDissolutionChamberUsage = 400;
|
||||
public static double chemicalWasherUsage = 200;
|
||||
public static double chemicalCrystallizerUsage = 400;
|
||||
public static double seismicVibratorUsage = 50;
|
||||
public static double pressurizedReactionBaseUsage = 5;
|
||||
public static double fluidicPlenisherUsage = 100;
|
||||
public static double laserUsage = 5000;
|
||||
public static double heavyWaterElectrolysisUsage = 800;
|
||||
public static double formulaicAssemblicatorUsage = 100;
|
||||
public static int teleporterBaseUsage = 1000;
|
||||
public static int teleporterDistanceUsage = 10;
|
||||
public static int teleporterDimensionPenalty = 10000;
|
||||
}
|
||||
|
||||
public static class generators {
|
||||
|
||||
public static TypeConfigManager generatorsManager = new TypeConfigManager();
|
||||
|
||||
public static double advancedSolarGeneration;
|
||||
public static double bioGeneration;
|
||||
public static double heatGeneration;
|
||||
public static double heatGenerationLava;
|
||||
public static double heatGenerationNether;
|
||||
public static double solarGeneration;
|
||||
public static double advancedSolarGeneration = 300;
|
||||
public static double bioGeneration = 350;
|
||||
public static double heatGeneration = 150;
|
||||
public static double heatGenerationLava = 5;
|
||||
public static double heatGenerationNether = 100;
|
||||
public static double solarGeneration = 50;
|
||||
|
||||
public static double windGenerationMin;
|
||||
public static double windGenerationMax;
|
||||
public static double windGenerationMin = 60;
|
||||
public static double windGenerationMax = 480;
|
||||
|
||||
public static int windGenerationMinY;
|
||||
public static int windGenerationMaxY;
|
||||
public static int windGenerationMinY = 24;
|
||||
public static int windGenerationMaxY = 255;
|
||||
|
||||
public static Set<Integer> windGenerationDimBlacklist;
|
||||
|
||||
public static int turbineBladesPerCoil;
|
||||
public static double turbineVentGasFlow;
|
||||
public static double turbineDisperserGasFlow;
|
||||
public static int condenserRate;
|
||||
public static int turbineBladesPerCoil = 4;
|
||||
public static double turbineVentGasFlow = 16000;
|
||||
public static double turbineDisperserGasFlow = 640;
|
||||
public static int condenserRate = 32000;
|
||||
|
||||
public static double energyPerFusionFuel;
|
||||
public static double energyPerFusionFuel = 5E6;
|
||||
}
|
||||
|
||||
public static class tools {
|
||||
|
||||
public static double armorSpawnRate;
|
||||
public static double armorSpawnRate = 0.03;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@ import mekanism.common.Mekanism;
|
||||
import mekanism.common.MekanismFluids;
|
||||
import mekanism.common.MekanismItems;
|
||||
import mekanism.common.Resource;
|
||||
import mekanism.common.config.MekanismConfig.general;
|
||||
import mekanism.common.recipe.RecipeHandler;
|
||||
import mekanism.common.recipe.RecipeHandler.Recipe;
|
||||
import mekanism.common.util.MekanismUtils;
|
||||
@@ -40,7 +41,14 @@ public final class OreDictManager {
|
||||
ItemStack plank = StackUtils.size(ore, 1);
|
||||
if (!Recipe.PRECISION_SAWMILL.containsRecipe(plank)) {
|
||||
RecipeHandler.addPrecisionSawmillRecipe(plank, new ItemStack(Items.STICK, 6),
|
||||
new ItemStack(MekanismItems.Sawdust), 0.25);
|
||||
new ItemStack(MekanismItems.Sawdust), general.sawdustChancePlank);
|
||||
}
|
||||
}
|
||||
|
||||
for (ItemStack ore : OreDictionary.getOres("stickWood")) {
|
||||
ItemStack stick = StackUtils.size(ore, 1);
|
||||
if (!Recipe.PRECISION_SAWMILL.containsRecipe(stick)) {
|
||||
RecipeHandler.addPrecisionSawmillRecipe(stick, new ItemStack(MekanismItems.Sawdust));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -326,25 +334,21 @@ public final class OreDictManager {
|
||||
for (ItemStack logEntry : registeredOres) {
|
||||
if (logEntry.getItemDamage() == OreDictionary.WILDCARD_VALUE) {
|
||||
for (int j = 0; j < 16; j++) {
|
||||
ItemStack log = new ItemStack(logEntry.getItem(), 1, j);
|
||||
tempCrafting.setInventorySlotContents(0, log);
|
||||
ItemStack resultEntry = MekanismUtils.findMatchingRecipe(tempCrafting, null);
|
||||
|
||||
if (!resultEntry.isEmpty()) {
|
||||
RecipeHandler.addPrecisionSawmillRecipe(log, StackUtils.size(resultEntry, 6),
|
||||
new ItemStack(MekanismItems.Sawdust), 1);
|
||||
}
|
||||
addSawmillLog(tempCrafting, new ItemStack(logEntry.getItem(), 1, j));
|
||||
}
|
||||
} else {
|
||||
ItemStack log = StackUtils.size(logEntry, 1);
|
||||
tempCrafting.setInventorySlotContents(0, log);
|
||||
ItemStack resultEntry = MekanismUtils.findMatchingRecipe(tempCrafting, null);
|
||||
|
||||
if (!resultEntry.isEmpty()) {
|
||||
RecipeHandler.addPrecisionSawmillRecipe(log, StackUtils.size(resultEntry, 6),
|
||||
new ItemStack(MekanismItems.Sawdust), 1);
|
||||
}
|
||||
addSawmillLog(tempCrafting, StackUtils.size(logEntry, 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void addSawmillLog(InventoryCrafting tempCrafting, ItemStack log) {
|
||||
tempCrafting.setInventorySlotContents(0, log);
|
||||
ItemStack resultEntry = MekanismUtils.findMatchingRecipe(tempCrafting, null);
|
||||
|
||||
if (!resultEntry.isEmpty()) {
|
||||
RecipeHandler.addPrecisionSawmillRecipe(log, StackUtils.size(resultEntry, 6),
|
||||
new ItemStack(MekanismItems.Sawdust), general.sawdustChanceLog);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,7 +59,6 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
dataStream.writeInt(general.armoredJetpackDamageMax);
|
||||
dataStream.writeBoolean(general.aestheticWorldDamage);
|
||||
dataStream.writeBoolean(general.opsBypassRestrictions);
|
||||
dataStream.writeDouble(general.thermalEvaporationSpeed);
|
||||
dataStream.writeInt(general.maxJetpackGas);
|
||||
dataStream.writeInt(general.maxScubaGas);
|
||||
dataStream.writeInt(general.maxFlamethrowerGas);
|
||||
@@ -103,7 +102,6 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
dataStream.writeDouble(usage.chemicalCrystallizerUsage);
|
||||
dataStream.writeDouble(usage.seismicVibratorUsage);
|
||||
dataStream.writeDouble(usage.fluidicPlenisherUsage);
|
||||
dataStream.writeDouble(usage.gasCentrifugeUsage);
|
||||
dataStream.writeDouble(usage.heavyWaterElectrolysisUsage);
|
||||
dataStream.writeDouble(usage.formulaicAssemblicatorUsage);
|
||||
dataStream.writeInt(usage.teleporterBaseUsage);
|
||||
@@ -154,7 +152,6 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
general.armoredJetpackDamageMax = dataStream.readInt();
|
||||
general.aestheticWorldDamage = dataStream.readBoolean();
|
||||
general.opsBypassRestrictions = dataStream.readBoolean();
|
||||
general.thermalEvaporationSpeed = dataStream.readDouble();
|
||||
general.maxJetpackGas = dataStream.readInt();
|
||||
general.maxScubaGas = dataStream.readInt();
|
||||
general.maxFlamethrowerGas = dataStream.readInt();
|
||||
@@ -198,7 +195,6 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
usage.chemicalCrystallizerUsage = dataStream.readDouble();
|
||||
usage.seismicVibratorUsage = dataStream.readDouble();
|
||||
usage.fluidicPlenisherUsage = dataStream.readDouble();
|
||||
usage.gasCentrifugeUsage = dataStream.readDouble();
|
||||
usage.heavyWaterElectrolysisUsage = dataStream.readDouble();
|
||||
usage.formulaicAssemblicatorUsage = dataStream.readDouble();
|
||||
usage.teleporterBaseUsage = dataStream.readInt();
|
||||
|
||||
@@ -25,6 +25,7 @@ import mekanism.common.base.IUpgradeTile;
|
||||
import mekanism.common.block.states.BlockStateMachine;
|
||||
import mekanism.common.capabilities.Capabilities;
|
||||
import mekanism.common.chunkloading.IChunkLoader;
|
||||
import mekanism.common.config.MekanismConfig.general;
|
||||
import mekanism.common.config.MekanismConfig.usage;
|
||||
import mekanism.common.content.miner.MItemStackFilter;
|
||||
import mekanism.common.content.miner.MOreDictFilter;
|
||||
@@ -319,7 +320,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
double ret = energyUsage;
|
||||
|
||||
if (silkTouch) {
|
||||
ret *= 6F;
|
||||
ret *= general.minerSilkMultiplier;
|
||||
}
|
||||
|
||||
int baseRad = Math.max(radius - 10, 0);
|
||||
@@ -603,7 +604,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
}
|
||||
|
||||
private void readBasicData(ByteBuf dataStream) {
|
||||
radius = dataStream.readInt();
|
||||
radius = dataStream.readInt();//client allowed to use whatever server sends
|
||||
minY = dataStream.readInt();
|
||||
maxY = dataStream.readInt();
|
||||
doEject = dataStream.readBoolean();
|
||||
@@ -646,7 +647,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
reset();
|
||||
break;
|
||||
case 6:
|
||||
radius = dataStream.readInt();
|
||||
radius = Math.min(dataStream.readInt(), general.digitalMinerMaxRadius);
|
||||
break;
|
||||
case 7:
|
||||
minY = dataStream.readInt();
|
||||
@@ -1037,7 +1038,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
return new Object[]{"Invalid parameters."};
|
||||
}
|
||||
|
||||
radius = ((Double) arguments[0]).intValue();
|
||||
radius = Math.min(((Double) arguments[0]).intValue(), general.digitalMinerMaxRadius);
|
||||
} else if (method == 1) {
|
||||
if (arguments.length != 1 || !(arguments[0] instanceof Double)) {
|
||||
return new Object[]{"Invalid parameters."};
|
||||
@@ -1166,7 +1167,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
|
||||
@Override
|
||||
public void setConfigurationData(NBTTagCompound nbtTags) {
|
||||
radius = nbtTags.getInteger("radius");
|
||||
radius = Math.min(nbtTags.getInteger("radius"), general.digitalMinerMaxRadius);
|
||||
minY = nbtTags.getInteger("minY");
|
||||
maxY = nbtTags.getInteger("maxY");
|
||||
doEject = nbtTags.getBoolean("doEject");
|
||||
@@ -1213,7 +1214,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I
|
||||
@Override
|
||||
public void readSustainedData(ItemStack itemStack) {
|
||||
if (ItemDataUtils.hasData(itemStack, "hasMinerConfig")) {
|
||||
radius = ItemDataUtils.getInt(itemStack, "radius");
|
||||
radius = Math.min(ItemDataUtils.getInt(itemStack, "radius"), general.digitalMinerMaxRadius);
|
||||
minY = ItemDataUtils.getInt(itemStack, "minY");
|
||||
maxY = ItemDataUtils.getInt(itemStack, "maxY");
|
||||
doEject = ItemDataUtils.getBoolean(itemStack, "doEject");
|
||||
|
||||
@@ -23,21 +23,21 @@ public class GenHandler implements IWorldGenerator {
|
||||
for (int i = 0; i < general.osmiumPerChunk; i++) {
|
||||
BlockPos pos = new BlockPos(chunkX * 16 + random.nextInt(16), random.nextInt(60),
|
||||
(chunkZ * 16) + random.nextInt(16));
|
||||
new WorldGenMinable(MekanismBlocks.OreBlock.getStateFromMeta(0), 8, BlockMatcher.forBlock(Blocks.STONE))
|
||||
new WorldGenMinable(MekanismBlocks.OreBlock.getStateFromMeta(0), general.osmiumMaxVeinSize, BlockMatcher.forBlock(Blocks.STONE))
|
||||
.generate(world, random, pos);
|
||||
}
|
||||
|
||||
for (int i = 0; i < general.copperPerChunk; i++) {
|
||||
BlockPos pos = new BlockPos(chunkX * 16 + random.nextInt(16), random.nextInt(60),
|
||||
(chunkZ * 16) + random.nextInt(16));
|
||||
new WorldGenMinable(MekanismBlocks.OreBlock.getStateFromMeta(1), 8, BlockMatcher.forBlock(Blocks.STONE))
|
||||
new WorldGenMinable(MekanismBlocks.OreBlock.getStateFromMeta(1), general.copperMaxVeinSize, BlockMatcher.forBlock(Blocks.STONE))
|
||||
.generate(world, random, pos);
|
||||
}
|
||||
|
||||
for (int i = 0; i < general.tinPerChunk; i++) {
|
||||
BlockPos pos = new BlockPos(chunkX * 16 + random.nextInt(16), random.nextInt(60),
|
||||
(chunkZ * 16) + random.nextInt(16));
|
||||
new WorldGenMinable(MekanismBlocks.OreBlock.getStateFromMeta(2), 8, BlockMatcher.forBlock(Blocks.STONE))
|
||||
new WorldGenMinable(MekanismBlocks.OreBlock.getStateFromMeta(2), general.tinMaxVeinSize, BlockMatcher.forBlock(Blocks.STONE))
|
||||
.generate(world, random, pos);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public class GenHandler implements IWorldGenerator {
|
||||
int randPosX = (chunkX * 16) + random.nextInt(16) + 8;
|
||||
int randPosZ = (chunkZ * 16) + random.nextInt(16) + 8;
|
||||
BlockPos pos = world.getTopSolidOrLiquidBlock(new BlockPos(randPosX, 60, randPosZ));
|
||||
new WorldGenSalt(6).generate(world, random, pos);
|
||||
new WorldGenSalt(general.saltMaxVeinSize).generate(world, random, pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user