Merge pull request #309 from Adam29Adam29/master

Added LPG fuel and LPG Canister
This commit is contained in:
HbmMods 2021-10-12 23:11:27 +02:00 committed by GitHub
commit db2fb0c346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 23 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public class FluidTypeHandler {
GAS (0xfffeed, 13, 1, 1, 1, 4, 1, EnumSymbol.NONE, "hbmfluid.gas"),
PETROLEUM (0x7cb7c9, 7, 2, 1, 1, 4, 1, EnumSymbol.NONE, "hbmfluid.petroleum"),
LPG (0x4747EA, 5, 2, 2, 1, 3, 1, EnumSymbol.NONE, "hbmfluid.lpg"),
BIOGAS (0xbfd37c, 12, 2, 1, 1, 4, 1, EnumSymbol.NONE, "hbmfluid.biogas"),
BIOFUEL (0xeef274, 13, 2, 1, 1, 2, 0, EnumSymbol.NONE, "hbmfluid.biofuel"),

View File

@ -47,6 +47,7 @@ public class FluidContainerRegistry {
FluidContainerRegistry.registerContainer(new FluidContainer(new ItemStack(ModItems.canister_NITAN), new ItemStack(ModItems.canister_empty), FluidType.NITAN, 1000));
FluidContainerRegistry.registerContainer(new FluidContainer(new ItemStack(ModItems.gas_full), new ItemStack(ModItems.gas_empty), FluidType.GAS, 1000));
FluidContainerRegistry.registerContainer(new FluidContainer(new ItemStack(ModItems.gas_petroleum), new ItemStack(ModItems.gas_empty), FluidType.PETROLEUM, 1000));
FluidContainerRegistry.registerContainer(new FluidContainer(new ItemStack(ModItems.gas_lpg), new ItemStack(ModItems.gas_empty), FluidType.LPG, 1000));
FluidContainerRegistry.registerContainer(new FluidContainer(new ItemStack(ModItems.gas_biogas), new ItemStack(ModItems.gas_empty), FluidType.BIOGAS, 1000));
FluidContainerRegistry.registerContainer(new FluidContainer(new ItemStack(ModBlocks.red_barrel), new ItemStack(ModItems.tank_steel), FluidType.DIESEL, 10000));
FluidContainerRegistry.registerContainer(new FluidContainer(new ItemStack(ModBlocks.pink_barrel), new ItemStack(ModItems.tank_steel), FluidType.KEROSENE, 10000));

View File

@ -36,6 +36,7 @@ public class GUIMachineDiesel extends GuiInfoContainer {
" Diesel (500 HE/t)",
" Petroil (300 HE/t)",
" Biofuel (400 HE/t)",
" LPG (450 HE/t)",
" Hydrogen (10 HE/t)",
" Leaded Gasoline (1500 HE/t)",
" NITAN Superfuel (5000 HE/t)" };

View File

@ -1899,6 +1899,9 @@ public class MachineRecipes {
case STEAM:
input[0] = new FluidStack(1000, FluidType.WATER);
break;
case LPG:
input[0] = new FluidStack(2000, FluidType.PETROLEUM);
break;
case BP_BIOFUEL:
input[0] = new FluidStack(2000, FluidType.BIOGAS);
break;
@ -2228,6 +2231,9 @@ public class MachineRecipes {
case BP_BIOFUEL:
output[0] = new FluidStack(1000, FluidType.BIOFUEL);
break;
case LPG:
output[0] = new FluidStack(1000, FluidType.LPG);
break;
case UF6:
output[0] = new FluidStack(900, FluidType.UF6);
break;

View File

@ -800,6 +800,7 @@ public class ModItems {
public static Item gas_full;
public static Item gas_petroleum;
public static Item gas_biogas;
public static Item gas_lpg;
public static Item fluid_tank_full;
public static Item fluid_tank_empty;
@ -3164,6 +3165,7 @@ public class ModItems {
gas_full = new Item().setUnlocalizedName("gas_full").setCreativeTab(MainRegistry.controlTab).setContainerItem(ModItems.gas_empty).setTextureName(RefStrings.MODID + ":gas_full");
gas_petroleum = new Item().setUnlocalizedName("gas_petroleum").setCreativeTab(MainRegistry.controlTab).setContainerItem(ModItems.gas_empty).setTextureName(RefStrings.MODID + ":gas_petroleum");
gas_biogas = new Item().setUnlocalizedName("gas_biogas").setCreativeTab(MainRegistry.controlTab).setContainerItem(ModItems.gas_empty).setTextureName(RefStrings.MODID + ":gas_biogas");
gas_lpg = new Item().setUnlocalizedName("gas_lpg").setCreativeTab(MainRegistry.controlTab).setContainerItem(ModItems.gas_empty).setTextureName(RefStrings.MODID + ":gas_lpg");
tank_waste = new ItemTankWaste().setUnlocalizedName("tank_waste").setMaxStackSize(1).setCreativeTab(MainRegistry.controlTab);
@ -6094,6 +6096,7 @@ public class ModItems {
GameRegistry.registerItem(gas_full, gas_full.getUnlocalizedName());
GameRegistry.registerItem(gas_petroleum, gas_petroleum.getUnlocalizedName());
GameRegistry.registerItem(gas_biogas, gas_biogas.getUnlocalizedName());
GameRegistry.registerItem(gas_lpg, gas_lpg.getUnlocalizedName());
//Universal Tank
GameRegistry.registerItem(fluid_tank_empty, fluid_tank_empty.getUnlocalizedName());

View File

@ -63,6 +63,7 @@ public class ItemChemistryTemplate extends Item {
SF_BIOFUEL,
BP_BIOGAS,
BP_BIOFUEL,
LPG,
OIL_SAND,
ASPHALT,
COOLANT,
@ -243,6 +244,8 @@ public class ItemChemistryTemplate extends Item {
return 200;
case BP_BIOFUEL:
return 100;
case LPG:
return 100;
case YELLOWCAKE:
return 250;
case UF6:

View File

@ -152,6 +152,8 @@ public class TileEntityMachineDiesel extends TileEntityMachineBase implements IS
return 1500;
if(type.name().equals(FluidType.NITAN.name()))
return 5000;
if(type.name().equals(FluidType.LPG.name()))
return 450;
return 0;
}

View File

@ -76,6 +76,7 @@ hbmfluid.biofuel=Biofuel
hbmfluid.sas3=Schrabidium Trisulfide
hbmfluid.nitan=NITAN© 100 Octane Super Fuel
hbmfluid.cryogel=Cryogel
hbmfluid.lpg=LPG
chem.TEST=Test
chem.FP_HEAVYOIL=Heavy Oil Processing
@ -125,6 +126,7 @@ chem.UF6=Uranium Hexafluoride Production
chem.PUF6=Plutonium Hexafluoride Production
chem.BP_BIOGAS=Biogas Production
chem.BP_BIOFUEL=Biofuel Transesterification
chem.LPG=Petroleum Gas Liquefaction
chem.SAS3=Schrabidium Trisulfide Production
chem.NITAN=NITAN Super Fuel Mixing
chem.DYN_SCHRAB=Schrabidium Dynosynthesis
@ -1003,6 +1005,7 @@ item.gas_empty.name=Empty Gas Tank
item.gas_full.name=Gas Tank
item.gas_petroleum.name=Petroleum Gas Tank
item.gas_biogas.name=Biogas Tank
item.gas_lpg.name=LPG Tank
item.fluid_tank_empty.name=Empty Universal Fluid Tank
item.fluid_tank_full.name=Universal Fluid Tank:
item.fluid_barrel_empty.name=Empty Fluid Barrel

View File

@ -174,6 +174,7 @@ chem.ASPHALT=Asphalt Production
chem.BALEFIRE=BF Rocket Fuel Mixing
chem.BP_BIOFUEL=Biofuel Transesterification
chem.BP_BIOGAS=Biogas Production
chem.LPG=Petroleum Gas Liquefaction
chem.CC_HEATING=Advanced Coal Liquefaction
chem.CC_HEAVY=Basic Coal Liquefaction
chem.CC_I=Enhanced Coal Liquefaction
@ -534,6 +535,7 @@ hbmfluid.wastegas=Gaseous Nuclear Waste
hbmfluid.water=Water
hbmfluid.watz=Poisonous Mud
hbmfluid.xenon=Xenon Gas
hbmfluid.lpg=LPG
info.coil=Coil Strength
info.templatefolder=Created with %s
@ -1308,6 +1310,7 @@ item.gadget_explosive8.name=Bundle of First Generation Implosion Propellant
item.gadget_kit.name=The Gadget Kit
item.gadget_wireing.name=Wiring
item.gas_biogas.name=Biogas Tank
item.gas_lpg.name=LPG Tank
item.gas_empty.name=Empty Gas Tank
item.gas_full.name=Gas Tank
item.gas_mask.name=Gas Mask

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB