ItemData

ItemData is the data that makes up a single item.
ItemData is designed to be completely independent from ItemFileData, but ItemFileData can be used as a template for ItemData creation.
ItemData not assigned to an InventoryData are not saved by the game.

Most data is saved in "extra" as a string:
"name": name
"outfit": outfit Type > OutfitData
"group": group
"equipSlots": all equip slots separated by a "/": "chest/legs"
"color": color in hexadecimal: "ff0000ff"
"value": value
"promptPositive": the additional positive prompt for Image Generation
"promptNegative": the additional negative prompt for Image Generation
"tooltip": tooltip addition
"labels": labels seperated by a "/"

Data

"tagsuggested" Type > String

"tagrequired" Type > String

"tagavoid" Type > String

ItemKey

A Type > String unique to the item. Used to identify the item.

Example lua:

	local top = game.createItem()
	game.setItemData(top, "extra", "name", "T-Shirt")
	game.setItemData(top, "extra", "outfit", "top/t-shirt/casual")
	game.setItemData(top, "extra", "equipSlots", "chest")
	game.setItemData(top, "extra", "tooltip", "A simple T-Shirt.")
	game.setItemData(top, "extra", "value", tostring(0.0))
	game.setItemData(top, "tagrequired", "type", "ui")
	game.setItemData(top, "tagrequired", "ui", "clothing")
	game.addItem("player", top)
	game.equipItem(top)