Skip to content
tcsullivan edited this page Mar 17, 2017 · 5 revisions

The list of all items is currently contained in config/items.xml. In this file, either currency items (money) or normal items (items) can be declared.

items

<item name="Test Item" type="Tool" value="100" maxStackSize="32" width="16" height="16" sprite="test.png" />

name: The display name of the item. This is also used as an identifier, so if two items have identical names there may be problems.
type: The type of the item. Different types will cause the item to serve different purposes. Look at other items to see the possible item types; they should be self-explanatory enough for now (until we do more, then document more).
value: The value of the item. Should you sell/have to buy the item, this is how much the item will be worth.
maxStackSize: The highest amount of item that may take up a single slot of inventory. Having more of this item will result in another stack starting, another slot taken.
width: The width of the item, in pixels.
height: The height of the item, in pixels.
sprite: The file path of the texture associated with this item.

Clone this wiki locally