Minecraftmodcustomstuff Wiki
Advertisement
This Article is up to date with Custom Stuff 2 "Denotes content compatible with Custom Stuff 2"

When creating armor-type items with Custom Stuff, there are three unique attributes that can be assigned to the item. These three attributes give the wearer of the piece of armor specific immunities to one of three types of damage. These attributes are:

  • waterProof - Air guage never decreases while the wearer is submerged in water.
  • fireProof - The wearer of the armor is immune to the effects of fire and lava.
  • fallProof - Falling from any height will not damage the bearer of the armor.

Adding one of these three attributes is simple. Just add one or more of the following lines to your armor item file:

waterProof = true;
fireProof = true;
fallProof = true;

Example Item(CS2)[]

Here is an example of a helmet that is as strong as diamond and additionally allows the wearer to breathe underwater indefinitely.

id = config.getItemId("aquaHelmID");
name = "aquaHelm";

displayName = "Aqua Helmet";

armorType = "helmet";
maxDamage = 364;
damageReduction = 3;
enchantability = 10;
repairable = true;

addToCreative = true;
creativeTab = "combat";

armorTexture = "aquaHelm.png";
textureFile = "customstuff.png";
textureIndex = 2;
waterProof = true;

CS1
Older Examples and Information for Custom Stuff 1.

When creating armor-type items with Custom Stuff, there are three unique attributes that can be assigned to the item. These three attributes give the wearer of the piece of armor specific immunities to one of three types of damage. These attributes are:

  • infiniteair - Air guage never decreases while the wearer is submerged in water.
  • noburning - The wearer of the armor is immune to the effects of fire and lava.
  • nofalldamage - Falling from any height will not damage the bearer of the armor.

Adding one of these three attributes is simple. Just add one or more of the following lines to your armor item file:

infiniteair="true";

nofalldamage="true";

noburning="true";

Example Item[]

Here's an example of a helmet that is as strong as diamond and additionally allows the wearer to breathe under water indefinitely.

name="aqua helmet";
id=2500;
type="helmet";
iconfile="customstuff.png";
iconindex=2;
armorname="aqua";
armormaterial="diamond";
infiniteair="true";
Advertisement