Totem Component

From wiki
Revision as of 05:04, 1 August 2017 by DeamonHunter (Talk | contribs) (Initial commit.)

(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 Totem component, signified by the following;

"totem": { 
  "code": "staxel.totem.whatever"
}

Totem components are used to activate Totems in the world. This is a fairly simple component that is used on a Tile.


When and How to use

Totem components should be used on any tile that you would want to be a totem. This component can only be specifically used by Tiles with a Tile#"tileStateKind" equal to "staxel.tileState.Totem".

To create this component you would use the following;

"totem": { 
  "code": "staxel.totem.whatever"
}

The only property is "code". This is used to specify a Totem file that is to be used.


Config Options

All config options must be inside the body of;

"totem": {
  =Config Here=
}

"code"

Valid options (String): A string which points to a Totem code.

Default Value: No default value is specified. Always need to provide your own.


This is the Totem that is to be used on this tile.