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

Radiation

Note: The double set of brackets ([...]) is not required here!

Radiation

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

script.zs
mods.nuclearcraft.radiation.getRadiationLevel(itemInput);

Block Mutations

This method adds a block mutation. The Block will not mutate when the radiation is below radiationThreshold.

script.zs
mods.nuclearcraft.radiation.addBlockMutation(blockInput, blockOutput, double radiationThreshold);

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);

Radiation Getters/Setters

Adding 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);

Setting Radiation

amount is the level of radiation that is applied to the IEntityLivingBase. useImmunity controls whether the function occurs even the IEntityLivingBase is immune.

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

Getting Radiation

This method returns the level of radiation of the IEntityLivingBase.

script.zs
IEntityLivingBase.getRadiation();

Radaway Buffer Getters/Setters

Adding 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.addRadiationResistance(double amount, @Optional boolean slowBuffer);

Setting Radaway Buffer

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

script.zs
IEntityLivingBase.setRadiationResistance(double amount, @Optional boolean slowBuffer);

Getting Radaway Buffer

This method returns the Radaway Buffer of the IEntityLivingBase. slowBuffer determines whether slow buffer is included in the returned value.

script.zs
IEntityLivingBase.getRadiationResistance(@Optional boolean slowBuffer);

Poison Buffer Getters/Setters

Adding Poison Buffer

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

script.zs
IEntityLivingBase.addPoisonBuffer(double amount);

Setting Poison Buffer

amount is the amount of Poison Buffer that is applied to the IEntityLivingBase.

script.zs
IEntityLivingBase.setPoisonBuffer(double amount);

Getting Poison Buffer

This method returns the Poison Buffer of the IEntityLivingBase.

script.zs
IEntityLivingBase.getPoisonBuffer();

Radiation Resistance Getters/Setters

Adding Radiation Resistance

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

script.zs
IEntityLivingBase.addRadawayBuffer(double amount);

Setting Radiation Resistance

amount is the amount of Radiation Resistance that is applied to the IEntityLivingBase.

script.zs
IEntityLivingBase.setRadawayBuffer(double amount);

Getting Radiation Resistance

This method returns the Radiation Resistance of the IEntityLivingBase.

script.zs
IEntityLivingBase.getRadawayBuffer();

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();