Difference between revisions of "Placers(Tile Items)"

From wiki
Jump to: navigation, search
(Initial commit.)
 
(Update Page.)
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
</pre>
 
</pre>
  
Placers only contain a single piece of information, the Tile you want to place. Otherwise they act like a normal item.
+
Item Placers are what is used to place [[Tile|Tiles]] in the world. All [[Tile|Tiles]] have an associated Tile placer.
  
  
 
= 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]], Placer Items are automatically generated from [[Tile|Tiles]]. You cannot make the item yourself. (i.e. Create an "*.item" file for tile items.) As such you will have to rely on [[Tile|Tile files]] to create Placer Items.
  
  
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.
 
  
Example Input: <code>{"kind": "staxel.item.Placer", "tile": "staxel.tileObject.airship.RopeFenceCorner"}</code>
 
  
 +
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.
  
= Config Options =
+
Example Input: <code>{"kind": "staxel.item.Placer", "tile": "staxel.tileObject.airship.RopeFenceCorner"}</code>
== "kind" ==
+
'''Valid options (String): <code>A unique string which type of item this object is.</code>'''
+
 
+
This page is referring to <code>staxel.item.Placer</code> 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): <code>The code to an [[Tiles|Tile]] file</code>'''
+
 
+
'''Default Value:''' No default value is specified. Always need to provide your own.
+
 
+
 
+
A string containing which tile you want to spawn.
+

Latest revision as of 07:11, 12 December 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",

Item Placers are what is used to place Tiles in the world. All Tiles have an associated Tile placer.


Creating a Placer

Unlike Craft Items, Placer Items are automatically generated from Tiles. You cannot make the item yourself. (i.e. Create an "*.item" file for tile items.) As such you will have to rely on Tile files to create Placer Items.


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"}