Merge pull request #36 from DrParadox7/1.7.10-CommunityEdition

A cleaner merge of my changes
This commit is contained in:
maggi373 2022-09-13 16:44:57 +02:00 committed by GitHub
commit 6160b5b135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 51 additions and 20 deletions

View file

@ -30,6 +30,7 @@ public class MekanismConfig
public static int userWorldGenVersion = 0; public static int userWorldGenVersion = 0;
public static double ENERGY_PER_REDSTONE = 10000; public static double ENERGY_PER_REDSTONE = 10000;
public static int ETHENE_BURN_TIME = 40; public static int ETHENE_BURN_TIME = 40;
public static int METHANE_BURN_TIME = 10;
public static double DISASSEMBLER_USAGE = 10; public static double DISASSEMBLER_USAGE = 10;
public static EnergyType energyUnit = EnergyType.J; public static EnergyType energyUnit = EnergyType.J;
public static TempType tempUnit = TempType.K; public static TempType tempUnit = TempType.K;
@ -87,6 +88,8 @@ public class MekanismConfig
public static boolean enableAmbientLighting; public static boolean enableAmbientLighting;
public static int ambientLightingLevel; public static int ambientLightingLevel;
public static boolean opaqueTransmitters = false; public static boolean opaqueTransmitters = false;
public static boolean doMultiblockSparkle = true;
public static int multiblockSparkleIntensity = 6;
} }
public static class machines public static class machines
@ -140,6 +143,8 @@ public class MekanismConfig
public static double heatGeneration; public static double heatGeneration;
public static double heatGenerationLava; public static double heatGenerationLava;
public static double heatGenerationNether; public static double heatGenerationNether;
public static int heatGenerationFluidRate;
public static boolean heatGenEnable;
public static double solarGeneration; public static double solarGeneration;
public static double windGenerationMin; public static double windGenerationMin;

View file

@ -231,6 +231,8 @@ public class ClientProxy extends CommonProxy
client.enableAmbientLighting = Mekanism.configuration.get("client", "EnableAmbientLighting", true).getBoolean(); client.enableAmbientLighting = Mekanism.configuration.get("client", "EnableAmbientLighting", true).getBoolean();
client.ambientLightingLevel = Mekanism.configuration.get("client", "AmbientLightingLevel", 15).getInt(); client.ambientLightingLevel = Mekanism.configuration.get("client", "AmbientLightingLevel", 15).getInt();
client.opaqueTransmitters = Mekanism.configuration.get("client", "OpaqueTransmitterRender", false).getBoolean(); client.opaqueTransmitters = Mekanism.configuration.get("client", "OpaqueTransmitterRender", false).getBoolean();
client.doMultiblockSparkle = Mekanism.configuration.get("client", "DoMultiblockSparkle", true).getBoolean();
client.multiblockSparkleIntensity = Mekanism.configuration.get("client", "MultiblockSparkleIntesity", 6).getInt();
if(Mekanism.configuration.hasChanged()) if(Mekanism.configuration.hasChanged())
{ {
@ -567,6 +569,7 @@ public class ClientProxy extends CommonProxy
@Override @Override
public void doMultiblockSparkle(final TileEntityMultiblock<?> tileEntity) public void doMultiblockSparkle(final TileEntityMultiblock<?> tileEntity)
{ {
if(client.doMultiblockSparkle == true){
new SparkleAnimation(tileEntity, new INodeChecker() { new SparkleAnimation(tileEntity, new INodeChecker() {
@Override @Override
public boolean isNode(TileEntity tile) public boolean isNode(TileEntity tile)
@ -575,6 +578,7 @@ public class ClientProxy extends CommonProxy
} }
}).run(); }).run();
} }
}
@Override @Override
public void loadUtilities() public void loadUtilities()

View file

@ -6,6 +6,7 @@ import java.util.Set;
import mekanism.api.Coord4D; import mekanism.api.Coord4D;
import mekanism.api.MekanismConfig.general; import mekanism.api.MekanismConfig.general;
import mekanism.api.MekanismConfig.client;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.common.util.ForgeDirection;
@ -46,10 +47,11 @@ public class SparkleAnimation
public void run() public void run()
{ {
World world = pointer.getWorldObj(); World world = pointer.getWorldObj();
int count = client.multiblockSparkleIntensity;
for(Coord4D coord : iteratedNodes) for(Coord4D coord : iteratedNodes)
{ {
for(int i = 0; i < 6; i++) for(int i = 0; i < count; i++)
{ {
world.spawnParticle("reddust", coord.xCoord + random.nextDouble(), coord.yCoord + -.01, coord.zCoord + random.nextDouble(), 0, 0, 0); world.spawnParticle("reddust", coord.xCoord + random.nextDouble(), coord.yCoord + -.01, coord.zCoord + random.nextDouble(), 0, 0, 0);
world.spawnParticle("reddust", coord.xCoord + random.nextDouble(), coord.yCoord + 1.01, coord.zCoord + random.nextDouble(), 0, 0, 0); world.spawnParticle("reddust", coord.xCoord + random.nextDouble(), coord.yCoord + 1.01, coord.zCoord + random.nextDouble(), 0, 0, 0);

View file

@ -114,6 +114,7 @@ public class MekanismRenderer
GasRegistry.getGas("tritium").setIcon(event.map.registerIcon("mekanism:liquid/LiquidTritium")); GasRegistry.getGas("tritium").setIcon(event.map.registerIcon("mekanism:liquid/LiquidTritium"));
GasRegistry.getGas("fusionFuelDT").setIcon(event.map.registerIcon("mekanism:liquid/LiquidDT")); GasRegistry.getGas("fusionFuelDT").setIcon(event.map.registerIcon("mekanism:liquid/LiquidDT"));
GasRegistry.getGas("lithium").setIcon(event.map.registerIcon("mekanism:liquid/LiquidLithium")); GasRegistry.getGas("lithium").setIcon(event.map.registerIcon("mekanism:liquid/LiquidLithium"));
GasRegistry.getGas("methane").setIcon(event.map.registerIcon("mekanism:liquid/LiquidMethane"));
for(Gas gas : GasRegistry.getRegisteredGasses()) for(Gas gas : GasRegistry.getRegisteredGasses())
{ {

View file

@ -270,6 +270,7 @@ public class CommonProxy implements IGuiProvider
general.TO_TE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "RFToJoules", 0.4D).getDouble(); general.TO_TE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "RFToJoules", 0.4D).getDouble();
general.FROM_H2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "HydrogenEnergyDensity", 200D, "Determines Electrolytic Separator usage").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(); general.ETHENE_BURN_TIME = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EthyleneBurnTime", 40).getInt();
general.METHANE_BURN_TIME = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "MethaneBurnTime", 10).getInt();
general.ENERGY_PER_REDSTONE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EnergyPerRedstone", 10000D).getDouble(); general.ENERGY_PER_REDSTONE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EnergyPerRedstone", 10000D).getDouble();
general.DISASSEMBLER_USAGE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "DisassemblerEnergyUsage", 10).getInt(); general.DISASSEMBLER_USAGE = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "DisassemblerEnergyUsage", 10).getInt();
general.VOICE_PORT = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "VoicePort", 36123, null, 1, 65535).getInt(); general.VOICE_PORT = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "VoicePort", 36123, null, 1, 65535).getInt();

View file

@ -1168,6 +1168,7 @@ public class Mekanism
GasRegistry.register(new Gas("tritium")).registerFluid(); GasRegistry.register(new Gas("tritium")).registerFluid();
GasRegistry.register(new Gas("fusionFuelDT")).registerFluid(); GasRegistry.register(new Gas("fusionFuelDT")).registerFluid();
GasRegistry.register(new Gas("lithium")).registerFluid(); GasRegistry.register(new Gas("lithium")).registerFluid();
GasRegistry.register(new Gas("methane")).registerFluid();
FluidRegistry.registerFluid(new Fluid("heavyWater")); FluidRegistry.registerFluid(new Fluid("heavyWater"));
FluidRegistry.registerFluid(new Fluid("steam").setGaseous(true)); FluidRegistry.registerFluid(new Fluid("steam").setGaseous(true));

View file

@ -106,14 +106,14 @@ public class BlockCardboardBox extends BlockContainer
data.block.onPostBlockPlaced(world, x, y, z, data.meta); data.block.onPostBlockPlaced(world, x, y, z, data.meta);
} }
float motion = 0.7F; // float motion = 0.7F;
double motionX = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D; // double motionX = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
double motionY = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D; // double motionY = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
double motionZ = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D; // double motionZ = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
EntityItem entityItem = new EntityItem(world, x + motionX, y + motionY, z + motionZ, itemStack); // EntityItem entityItem = new EntityItem(world, x + motionX, y + motionY, z + motionZ, itemStack);
world.spawnEntityInWorld(entityItem); // world.spawnEntityInWorld(entityItem);
} }
} }

View file

@ -66,8 +66,7 @@ public final class OreDictManager
if (OreDictionary.getOres("itemRubber").size() > 0) { if (OreDictionary.getOres("itemRubber").size() > 0) {
for (ItemStack ore : OreDictionary.getOres("woodRubber")) { for (ItemStack ore : OreDictionary.getOres("woodRubber")) {
RecipeHandler.addPrecisionSawmillRecipe(StackUtils.size(ore, 1), new ItemStack(Blocks.planks, 4), StackUtils.size(OreDictionary.getOres("itemRubber").get(0), 1), 1F); RecipeHandler.addPrecisionSawmillRecipe(StackUtils.size(ore, 1), new ItemStack(Blocks.planks, 4), StackUtils.size(OreDictionary.getOres("itemRawRubber").get(0), 2), 1F); }
}
} }
for (ItemStack ore : OreDictionary.getOres("dustSulfur")) { for (ItemStack ore : OreDictionary.getOres("dustSulfur")) {

View file

@ -44,6 +44,7 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
dataStream.writeDouble(general.TO_TE); dataStream.writeDouble(general.TO_TE);
dataStream.writeDouble(general.FROM_H2); dataStream.writeDouble(general.FROM_H2);
dataStream.writeInt(general.ETHENE_BURN_TIME); dataStream.writeInt(general.ETHENE_BURN_TIME);
dataStream.writeInt(general.METHANE_BURN_TIME);
dataStream.writeDouble(general.ENERGY_PER_REDSTONE); dataStream.writeDouble(general.ENERGY_PER_REDSTONE);
dataStream.writeDouble(general.DISASSEMBLER_USAGE); dataStream.writeDouble(general.DISASSEMBLER_USAGE);
dataStream.writeInt(general.VOICE_PORT); dataStream.writeInt(general.VOICE_PORT);
@ -138,6 +139,7 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
general.TO_TE = dataStream.readDouble(); general.TO_TE = dataStream.readDouble();
general.FROM_H2 = dataStream.readDouble(); general.FROM_H2 = dataStream.readDouble();
general.ETHENE_BURN_TIME = dataStream.readInt(); general.ETHENE_BURN_TIME = dataStream.readInt();
general.METHANE_BURN_TIME = dataStream.readInt();
general.ENERGY_PER_REDSTONE = dataStream.readDouble(); general.ENERGY_PER_REDSTONE = dataStream.readDouble();
general.DISASSEMBLER_USAGE = dataStream.readDouble(); general.DISASSEMBLER_USAGE = dataStream.readDouble();
general.VOICE_PORT = dataStream.readInt(); general.VOICE_PORT = dataStream.readInt();

View file

@ -60,8 +60,8 @@ public class FusionReactor implements IFusionReactor
public static double plasmaHeatCapacity = 100; public static double plasmaHeatCapacity = 100;
public static double caseHeatCapacity = 1; public static double caseHeatCapacity = 1;
public static double enthalpyOfVaporization = 10; public static double enthalpyOfVaporization = 10;
public static double thermocoupleEfficiency = 0.05; public static double thermocoupleEfficiency = 0.00125;
public static double steamTransferEfficiency = 0.1; public static double steamTransferEfficiency = 0.0025;
//Heat transfer metrics //Heat transfer metrics
public static double plasmaCaseConductivity = 0.2; public static double plasmaCaseConductivity = 0.2;

View file

@ -181,6 +181,7 @@ public class MekanismGenerators implements IModule
})); }));
FuelHandler.addGas(GasRegistry.getGas("ethene"), general.ETHENE_BURN_TIME, general.FROM_H2 + generators.bioGeneration * 2 * general.ETHENE_BURN_TIME); //1mB hydrogen + 2*bioFuel/tick*200ticks/100mB * 20x efficiency bonus FuelHandler.addGas(GasRegistry.getGas("ethene"), general.ETHENE_BURN_TIME, general.FROM_H2 + generators.bioGeneration * 2 * general.ETHENE_BURN_TIME); //1mB hydrogen + 2*bioFuel/tick*200ticks/100mB * 20x efficiency bonus
FuelHandler.addGas(GasRegistry.getGas("methane"), general.METHANE_BURN_TIME, general.FROM_H2 + generators.bioGeneration * general.METHANE_BURN_TIME);
} }
@Override @Override
@ -203,6 +204,8 @@ public class MekanismGenerators implements IModule
dataStream.writeDouble(generators.heatGeneration); dataStream.writeDouble(generators.heatGeneration);
dataStream.writeDouble(generators.heatGenerationLava); dataStream.writeDouble(generators.heatGenerationLava);
dataStream.writeDouble(generators.heatGenerationNether); dataStream.writeDouble(generators.heatGenerationNether);
dataStream.writeInt(generators.heatGenerationFluidRate);
dataStream.writeBoolean(generators.heatGenEnable);
dataStream.writeDouble(generators.solarGeneration); dataStream.writeDouble(generators.solarGeneration);
dataStream.writeDouble(generators.windGenerationMin); dataStream.writeDouble(generators.windGenerationMin);
@ -224,7 +227,9 @@ public class MekanismGenerators implements IModule
generators.bioGeneration = dataStream.readDouble(); generators.bioGeneration = dataStream.readDouble();
generators.heatGeneration = dataStream.readDouble(); generators.heatGeneration = dataStream.readDouble();
generators.heatGenerationLava = dataStream.readDouble(); generators.heatGenerationLava = dataStream.readDouble();
generators.heatGenerationNether = dataStream.readDouble(); generators.heatGenerationNether = dataStream.readDouble();;
generators.heatGenerationFluidRate = dataStream.readInt();
generators.heatGenEnable = dataStream.readBoolean();
generators.solarGeneration = dataStream.readDouble(); generators.solarGeneration = dataStream.readDouble();
generators.windGenerationMin = dataStream.readDouble(); generators.windGenerationMin = dataStream.readDouble();

View file

@ -130,7 +130,7 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements IFlu
{ {
setActive(true); setActive(true);
lavaTank.drain(10, true); lavaTank.drain(generators.heatGenerationFluidRate, true);
transferHeatTo(generators.heatGeneration); transferHeatTo(generators.heatGeneration);
} }
else { else {
@ -445,7 +445,11 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements IFlu
@Override @Override
public boolean canConnectHeat(ForgeDirection side) public boolean canConnectHeat(ForgeDirection side)
{ {
if(generators.heatGenEnable == true){
return side == ForgeDirection.DOWN; return side == ForgeDirection.DOWN;
}else {
return side == ForgeDirection.UNKNOWN;
}
} }
@Override @Override

View file

@ -300,6 +300,7 @@ gas.deuterium=Deuterium
gas.tritium=Tritium gas.tritium=Tritium
gas.lithium=Lithium gas.lithium=Lithium
gas.fusionFuelDT=D-T Fuel gas.fusionFuelDT=D-T Fuel
gas.methane=Methane
gas.iron=Iron Slurry gas.iron=Iron Slurry
gas.gold=Gold Slurry gas.gold=Gold Slurry
@ -486,6 +487,7 @@ gui.undefined=Undefined
gui.owner=Owner gui.owner=Owner
gui.public=Public gui.public=Public
gui.private=Private gui.private=Private
gui.trusted=Trusted
gui.add=Add gui.add=Add
gui.set=Set gui.set=Set
gui.freq=Freq gui.freq=Freq

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -0,0 +1,5 @@
{
"animation": {
"frametime": 2
}
}