Sponge Component

From wiki
Revision as of 06:17, 16 November 2018 by DeamonHunter (Talk | contribs) (Copy paste error)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Category:Component Modding are all optional properties that can be added to any file. Components are useful in extending the original files with even more information, such as the cost of the item or whether the block can be broken by a weapon.

On this page, we go over the Sponge Component, signified by the following;

"sponge": {
  =Content=
}

Sponge Components are mostly used in conjunction with Sponge Items. They are used to specify what the sponge should turn into if it is dried out or filled.


When and How to use

Sponge Components should be used whenever you want to make a Sponge Items. This is it's only use, and all Sponge Items are forced to include this component.

This component technically has no necessary parts so the following is completely valid;

"sponge": {},

However this will not work properly, as one of the two following values needs to be filled. "sponge": {

 "soakedVariant": "",
 "dryVariant": ""

}, </pre>

If you want the sponge to be the filled type, add in the dry version of the item into "dryVariant". Otherwise for the unfilled type, add in the wet version to "soakedVariant".


Config Options

All config options must be inside the body of;

"sponge": {
  =Config Here=
}

"dryVariant"

Valid options (String): A string that points to the code of a Item.

Default Value: If not specified, will not allow this sponge to transform to a dry version


This is the item this sponge should turn into when it is dry.


"soakedVariant"

Valid options (String): A string that points to the code of a Item.

Default Value: If not specified, will not allow this sponge to transform to a wet version


This is the item this sponge should turn into when it is wet.