use of eu.usrv.yamcore.fluids.ModSimpleBaseFluid in project NewHorizonsCoreMod by GTNewHorizons.
the class ExtendedFluidCollection method populateCompressedOxygen.
private static void populateCompressedOxygen() {
Fluid tCompressedOxygenFluid = ModFluidManager.GetNewFluid("CompressedOxygen");
tCompressedOxygenFluid.setGaseous(true);
tCompressedOxygenFluid.setViscosity(1);
tCompressedOxygenFluid.setDensity(1);
tCompressedOxygenFluid.setLuminosity(0);
tCompressedOxygenFluid.setTemperature(295);
// The rarity of the fluid. Used primarily in tool tips.
tCompressedOxygenFluid.setRarity(EnumRarity.epic);
_mCompressedOxygen = new ModSimpleBaseFluid(tCompressedOxygenFluid, 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.
_mCompressedOxygen.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
_mCompressedOxygen.addStackingPotionEffect(new PotionEffect(Potion.weakness.id, 20, 3));
// don't register a bucket
_mCompressedOxygen.setRegisterBucket(false);
}
use of eu.usrv.yamcore.fluids.ModSimpleBaseFluid in project NewHorizonsCoreMod by GTNewHorizons.
the class ExtendedFluidCollection method populateNitricAcid.
private static void populateNitricAcid() {
Fluid tNitricAcidFluid = ModFluidManager.GetNewFluid("NitricAcid");
tNitricAcidFluid.setGaseous(false);
tNitricAcidFluid.setViscosity(1000);
tNitricAcidFluid.setDensity(1);
tNitricAcidFluid.setLuminosity(0);
tNitricAcidFluid.setTemperature(300);
// The rarity of the fluid. Used primarily in tool tips.
tNitricAcidFluid.setRarity(EnumRarity.epic);
_mNitricAcid = new ModSimpleBaseFluid(tNitricAcidFluid, 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.
_mNitricAcid.addPotionEffect(new PotionEffect(Potion.weakness.id, 20, 1));
// 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
_mNitricAcid.addStackingPotionEffect(new PotionEffect(Potion.poison.id, 10, 0));
// don't register a bucket
_mNitricAcid.setRegisterBucket(true);
}
Aggregations