Placers(Tile Items)

From wiki
Revision as of 03:38, 10 July 2017 by DeamonHunter (Talk | contribs) (Initial commit.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 placed, Placers.

Placers are all items that have the following line;

"kind": "staxel.item.Placer",
Placers only contain a single piece of information, the Tile you want to place. Otherwise they act like a normal item.


Creating a Placer

Unlike Craft Items, Placers are automatically generated from Tiles. 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 "*.tile" files to create Placers.


Spawning in a Placer

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

{
  "kind": "staxel.item.Placer",
  "tile": "your.tile.here"
}

All 2 properties must be included and cannot be blank (i.e. It must have something inside of the quotes ""). The "kind" property has to be "staxel.item.Placer" for the game to recognise it is an item to place tiles. The "tile" is the code of the Tile in which you want to spawn.

Example Input: {"kind": "staxel.item.Placer", "tile": "staxel.tileObject.airship.RopeFenceCorner"}


Config Options

"kind"

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

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


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


"tile"

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

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


A string containing which tile you want to spawn.