use of eu.usrv.yamcore.fluids.ModSimpleBaseFluid in project NewHorizonsCoreMod by GTNewHorizons.
the class ExtendedFluidCollection method populateCompressedNitrogen.
private static void populateCompressedNitrogen() {
Fluid tCompressedNitrogenFluid = ModFluidManager.GetNewFluid("CompressedNitrogen");
tCompressedNitrogenFluid.setGaseous(true);
tCompressedNitrogenFluid.setViscosity(1);
tCompressedNitrogenFluid.setDensity(1);
tCompressedNitrogenFluid.setLuminosity(0);
tCompressedNitrogenFluid.setTemperature(295);
// The rarity of the fluid. Used primarily in tool tips.
tCompressedNitrogenFluid.setRarity(EnumRarity.epic);
_mCompressedNitrogen = new ModSimpleBaseFluid(tCompressedNitrogenFluid, Material.water);
// Add potion effects to the fluid if player steps into a pool
// Syntax is: new PotionEffect(<potionID>, <duration in ticks>, <level>)
// Level 0: Potion Level I
// Level 1: Potion Level II
// ...
// For the duration: Set it low to vanish the effect as soon as the player leaves the pool
// If you set the duration to 200, the potion timer will start to tick for 10 seconds after
// the player has left the pool.
_mCompressedNitrogen.addPotionEffect(new PotionEffect(Potion.weakness.id, 20, 3));
// Same for stacking potion effects, except that you want to set the duration to the amount which will be
// ADDED about each 0,5 seconds. So this poison-effect will increase as long as the player has contact with the
// fluid block
_mCompressedNitrogen.addStackingPotionEffect(new PotionEffect(Potion.weakness.id, 20, 3));
// don't register a bucket
_mCompressedNitrogen.setRegisterBucket(false);
}
use of eu.usrv.yamcore.fluids.ModSimpleBaseFluid in project NewHorizonsCoreMod by GTNewHorizons.
the class ExtendedFluidCollection method populateFermentedBacterialSludge.
private static void populateFermentedBacterialSludge() {
Fluid tFermentedBacterialSludge = ModFluidManager.GetNewFluid("FermentedBacterialSludge");
tFermentedBacterialSludge.setGaseous(false);
tFermentedBacterialSludge.setViscosity(1000);
tFermentedBacterialSludge.setDensity(1);
tFermentedBacterialSludge.setLuminosity(8);
tFermentedBacterialSludge.setTemperature(300);
// The rarity of the fluid. Used primarily in tool tips.
tFermentedBacterialSludge.setRarity(EnumRarity.epic);
_mFermentedBacterialSludge = new ModSimpleBaseFluid(tFermentedBacterialSludge, Material.water);
// Add potion effects to the fluid if player steps into a pool
// Syntax is: new PotionEffect(<potionID>, <duration in ticks>, <level>)
// Level 0: Potion Level I
// Level 1: Potion Level II
// ...
// For the duration: Set it low to vanish the effect as soon as the player leaves the pool
// If you set the duration to 200, the potion timer will start to tick for 10 seconds after
// the player has left the pool.
// Same for stacking potion effects, except that you want to set the duration to the amount which will be
// ADDED about each 0,5 seconds. So this poison-effect will increase as long as the player has contact with the
// fluid block
_mFermentedBacterialSludge.addStackingPotionEffect(new PotionEffect(bop_loaded ? 24 : Potion.poison.id, 20, 0));
_mFermentedBacterialSludge.addStackingPotionEffect(new PotionEffect(bop_loaded ? 25 : Potion.moveSlowdown.id, 20, 0));
// don't register a bucket
_mFermentedBacterialSludge.setRegisterBucket(true);
}
use of eu.usrv.yamcore.fluids.ModSimpleBaseFluid in project NewHorizonsCoreMod by GTNewHorizons.
the class ExtendedFluidCollection method populateEnrichedBacterialSludge.
private static void populateEnrichedBacterialSludge() {
Fluid tEnrichedBacterialSludge = ModFluidManager.GetNewFluid("EnrichedBacterialSludge");
tEnrichedBacterialSludge.setGaseous(false);
tEnrichedBacterialSludge.setViscosity(1000);
tEnrichedBacterialSludge.setDensity(1);
tEnrichedBacterialSludge.setLuminosity(15);
tEnrichedBacterialSludge.setTemperature(300);
// The rarity of the fluid. Used primarily in tool tips.
tEnrichedBacterialSludge.setRarity(EnumRarity.epic);
_mEnrichedBacterialSludge = new ModSimpleBaseFluid(tEnrichedBacterialSludge, Material.water);
// Add potion effects to the fluid if player steps into a pool
// Syntax is: new PotionEffect(<potionID>, <duration in ticks>, <level>)
// Level 0: Potion Level I
// Level 1: Potion Level II
// ...
// For the duration: Set it low to vanish the effect as soon as the player leaves the pool
// If you set the duration to 200, the potion timer will start to tick for 10 seconds after
// the player has left the pool.
// Same for stacking potion effects, except that you want to set the duration to the amount which will be
// ADDED about each 0,5 seconds. So this poison-effect will increase as long as the player has contact with the
// fluid block
_mEnrichedBacterialSludge.addStackingPotionEffect(new PotionEffect(bop_loaded ? 24 : Potion.poison.id, 40, 0));
_mEnrichedBacterialSludge.addStackingPotionEffect(new PotionEffect(bop_loaded ? 25 : Potion.moveSlowdown.id, 40, 0));
// don't register a bucket
_mEnrichedBacterialSludge.setRegisterBucket(true);
}
use of eu.usrv.yamcore.fluids.ModSimpleBaseFluid in project NewHorizonsCoreMod by GTNewHorizons.
the class ExtendedFluidCollection method populatePollution.
private static void populatePollution() {
Fluid tPollution = ModFluidManager.GetNewFluid("Pollution");
tPollution.setGaseous(false);
tPollution.setViscosity(1);
tPollution.setDensity(1);
tPollution.setLuminosity(0);
tPollution.setTemperature(295);
// The rarity of the fluid. Used primarily in tool tips.
tPollution.setRarity(EnumRarity.epic);
_mPollution = new ModSimpleBaseFluid(tPollution, Material.water);
// Add potion effects to the fluid if player steps into a pool
// Syntax is: new PotionEffect(<potionID>, <duration in ticks>, <level>)
// Level 0: Potion Level I
// Level 1: Potion Level II
// ...
// For the duration: Set it low to vanish the effect as soon as the player leaves the pool
// If you set the duration to 200, the potion timer will start to tick for 10 seconds after
// the player has left the pool.
_mPollution.addPotionEffect(new PotionEffect(Potion.weakness.id, 20, 3));
// Same for stacking potion effects, except that you want to set the duration to the amount which will be
// ADDED about each 0,5 seconds. So this poison-effect will increase as long as the player has contact with the
// fluid block
_mPollution.addStackingPotionEffect(new PotionEffect(Potion.weakness.id, 20, 3));
_mPollution.addStackingPotionEffect(new PotionEffect(Potion.poison.id, 10, 0));
// don't register a bucket
_mPollution.setRegisterBucket(true);
}
use of eu.usrv.yamcore.fluids.ModSimpleBaseFluid in project NewHorizonsCoreMod by GTNewHorizons.
the class ExtendedFluidCollection method populateAmmonia.
private static void populateAmmonia() {
Fluid tAmmoniaFluid = ModFluidManager.GetNewFluid("Ammonia");
tAmmoniaFluid.setGaseous(true);
tAmmoniaFluid.setViscosity(-500);
tAmmoniaFluid.setDensity(0);
tAmmoniaFluid.setLuminosity(8);
tAmmoniaFluid.setTemperature(300);
// The rarity of the fluid. Used primarily in tool tips.
tAmmoniaFluid.setRarity(EnumRarity.epic);
_mAmmonia = new ModSimpleBaseFluid(tAmmoniaFluid, Material.water);
// Add potion effects to the fluid if player steps into a pool
// Syntax is: new PotionEffect(<potionID>, <duration in ticks>, <level>)
// Level 0: Potion Level I
// Level 1: Potion Level II
// ...
// For the duration: Set it low to vanish the effect as soon as the player leaves the pool
// If you set the duration to 200, the potion timer will start to tick for 10 seconds after
// the player has left the pool.
//_mAmmonia.addPotionEffect(new PotionEffect(Potion.blindness.id, 2, 0));
// Same for stacking potion effects, except that you want to set the duration to the amount which will be
// ADDED about each 0,5 seconds. So this poison-effect will increase as long as the player has contact with the
// fluid block
_mAmmonia.addStackingPotionEffect(new PotionEffect(bop_loaded ? 24 : Potion.poison.id, 20, 0));
// don't register a bucket
_mAmmonia.setRegisterBucket(false);
}
Aggregations