Difference between revisions of "Placers(Tile Items)"

From wiki
Jump to: navigation, search
m (Stop code highlighting)
m (Fix redlinks)
Line 11: Line 11:
  
 
= Creating a Placer =
 
= 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.
+
Unlike [[Craft Items]], Placers are automatically generated from [[Tile|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.
  
  
Line 22: Line 22:
 
}
 
}
 
</pre>
 
</pre>
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 [[Tiles|Tile]] in which you want to spawn.  
+
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: <code>{"kind": "staxel.item.Placer", "tile": "staxel.tileObject.airship.RopeFenceCorner"}</code>
 
Example Input: <code>{"kind": "staxel.item.Placer", "tile": "staxel.tileObject.airship.RopeFenceCorner"}</code>
Line 38: Line 38:
  
 
== "tile" ==
 
== "tile" ==
'''Valid options (String): <code>The code to an [[Tiles|Tile]] file</code>'''
+
'''Valid options (String): <code>The code to an [[Tile]] file</code>'''
  
 
'''Default Value:''' No default value is specified. Always need to provide your own.
 
'''Default Value:''' No default value is specified. Always need to provide your own.

Revision as of 04:40, 10 July 2017

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.