Clothing Items

From wiki
Revision as of 01:57, 13 July 2017 by DeamonHunter (Talk | contribs) (Minor formatting and creations)

Jump to: navigation, search

Items are fairly broad in their types. Each type has it's own properties and uses.

This page is for items that can be worn, Clothing Items.

Clothing Items are all items that have the following line;

"kind": "staxel.item.Clothing",

Clothing Items contain only two pieces of information, the accessory to wear and the palette to colour that accessory. Otherwise they act like a normal item.


Creating a Clothing Item

Unlike Craft Items, Clothing Items are automatically generated from Accessories. You cannot make the item yourself (i.e. Create an "*.item" file) as the game will not be able to generate it properly. As such you will have to rely on "*.accessory" files to create clothing items.


Spawning in a Clothing Item

As it is not possible to create a proper Clothing Item, you can create a clothing item using the following;

{
  "kind": "staxel.item.Clothing",
  "accessory": "your.accessory.here",
  "palette": "your.palette.here"
}

All 3 properties must be included and both kind and accessory cannot be blank (i.e. It must have something inside of the quotes ""). The "kind" property has to be "staxel.item.Clothing" for the game to recognise it is an article of Clothing. The "accessory" is the code of the Accessory in which you want to spawn. The "palette" property is the code of the Palette you want to apply, you can leave it blank to just have it apply the default palette, but it must still be included. Be sure to only put a palette that can be used for the item, as other palettes will crash the game.


Example Input: {"kind": "staxel.item.Clothing", "accessory": "staxel.accessories.characters.accessories.tiaras.GoldTiara", "palette": ""}


Config Options

"kind"

Valid options (String): A unique string which type of item this object is.

This page is referring to staxel.item.Clothing to view other types of items head to Category:Item Modding


A string containing the type of item the blob will be referring to.


"accessory"

Valid options (String): The code to an Accessory file

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


A string containing which accessory you want to spawn.


"palette"

Valid options (String): The code to an Palette file

Default Value: No default value is specified. Always need to provide your own. A Blank value (i.e. "") is acceptable and will lead to using the default palette.


A string containing which palette you want the accessory to spawn with. Be sure the accessory can use this palette, otherwise it can cause issues.