Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Radiation

Radiation Scrubber

Importing the Package

mods.nuclearcraft.RadiationScrubber

Adding Recipes

script.zs
mods.nuclearcraft.RadiationScrubber.addRecipe(IIngredient itemInput, ILiquidStack fluidInput, IIngredient itemOutput, ILiquidStack fluidOutput, int processTime, int processPower, double processEfficiency);

Removing Recipes

script.zs
mods.nuclearcraft.RadiationScrubber.removeRecipeWithInput(IIngredient itemInput, ILiquidStack fluidInput);
mods.nuclearcraft.RadiationScrubber.removeRecipeWithOutput(IIngredient itemOutput, ILiquidStack fluidOutput);
mods.nuclearcraft.RadiationScrubber.removeAllRecipes();

Block Mutation

Importing the Package

mods.nuclearcraft.RadiationBlockMutation

Adding Recipes

script.zs
mods.nuclearcraft.RadiationBlockMutation.addRecipe(IIngredient blockInput, IIngredient blockOutput, double radiationThreshold);

Removing Recipes

script.zs
mods.nuclearcraft.RadiationBlockMutation.removeRecipeWithInput(IIngredient blockInput);
mods.nuclearcraft.RadiationBlockMutation.removeRecipeWithOutput(IIngredient blockOutput);
mods.nuclearcraft.RadiationBlockMutation.removeAllRecipes();

Block Purification

Importing the Package

mods.nuclearcraft.RadiationBlockPurification

Adding Recipes

script.zs
mods.nuclearcraft.RadiationBlockPurification.addRecipe(IIngredient blockInput, IIngredient blockOutput, double radiationThreshold);

Removing Recipes

script.zs
mods.nuclearcraft.RadiationBlockPurification.removeRecipeWithInput(IIngredient blockInput);
mods.nuclearcraft.RadiationBlockPurification.removeRecipeWithOutput(IIngredient blockOutput);
mods.nuclearcraft.RadiationBlockPurification.removeAllRecipes();

Entity Radiation

Radiation

amount is the amount of radiation added to the IEntityLivingBase. useImmunity controls whether the function occurs even the IEntityLivingBase is immune.

script.zs
IEntityLivingBase::addRadiation(double amount, @Optional boolean useImmunity);
IEntityLivingBase::setRadiation(double amount, @Optional boolean useImmunity);
IEntityLivingBase::getRadiation();

Radaway Buffer

amount is the amount of Radaway Buffer added to the IEntityLivingBase. slowBuffer decides if the Radaway Buffer added is a slow buffer.

script.zs
IEntityLivingBase::addRadawayBuffer(double amount, @Optional boolean slowBuffer);
IEntityLivingBase::setRadawayBuffer(double amount, @Optional boolean slowBuffer);
IEntityLivingBase::getRadawayBuffer(boolean slowBuffer);

Note: If slowBuffer is true, getRadawayBuffer() will return the slow-acting radiation removal buffer instead of the normal one.

Poison

amount is the amount of Poison Buffer added to the IEntityLivingBase.

script.zs
IEntityLivingBase::addPoisonBuffer(double amount);
IEntityLivingBase::setPoisonBuffer(double amount);
IEntityLivingBase::getPoisonBuffer();

Radiation Resistance

amount is the amount of Radiation Resistance added to the IEntityLivingBase.

script.zs
IEntityLivingBase::addRadiationResistance(double amount);
IEntityLivingBase::setRadiationResistance(double amount);
IEntityLivingBase::getRadiationResistance();

Radiation Level Getters

Raw Radiation Level

This method returns the radiation of the IEntityLivingBase in rads.

script.zs
IEntityLivingBase::getRawRadiationLevel();

Radiation Level

This method returns the change in radiation level of the IEntityLivingBase in rads/tick.

script.zs
IEntityLivingBase::getRadiationLevel();

Radiation

Ingredient Radiation

This method gets or sets the radiation of an IIngredient in rads/tick.

script.zs
mods.nuclearcraft.Radiation.getRadiationLevel(IIngredient ingredient);
mods.nuclearcraft.Radiation.setRadiationLevel(IIngredient ingredient, double radiation);

Food Radiation

script.zs
mods.nuclearcraft.Radiation.setFoodRadiationStats(IItemStack food, double radiation, double resistance);

Other Radiation

Note: setMaterialRadiationLevel(...) can accept Unix-style wildcards.

script.zs
mods.nuclearcraft.Radiation.addToRadiationBlacklist(IIngredient ingredient);
mods.nuclearcraft.Radiation.setMaterialRadiationLevel(String oreSuffix, double radiation);

Radiation Immunity

This method gives the ability to control the immunity of players depending on the stage. defaultImmunity is a boolean specifiying the players’ immunity without the specified stages. stageNames is an array of the names of all stages that can toggle the immunity of players.

script.zs
mods.nuclearcraft.Radiation.setRadiationImmunityGameStages(boolean defaultImmunity, String[] stageNames);