Item
getID
Returns the item's ID.
item:getID()getXP
Returns the amount of XP an item would give. Pass world and player arguments (optional) to include buffs.
item:getXP(world, player)getGems
Returns the number of gems an item would drop. Pass world and player arguments (optional) to include buffs.
item:getGems(world, player)getName
Returns the item's name.
item:getName()getNetID
Returns the item's net ID (same as item ID).
item:getNetID()getRarity
Returns the item's rarity.
item:getRarity()getGrowTime
Returns the item's grow time in seconds.
item:getGrowTime()getActionType
Returns the item's action type (e.g., clothing, seed).
item:getActionType()getCategoryType
Returns the category type of an item (as a bitflag integer).
item:getCategoryType()getClothingType
Returns the clothing type of an item.
item:getClothingType()getEditableType
Returns the editable type of an item.
item:getEditableType()setPrice
Sets the price of the item.
item:setPrice(price)setGrowTime
Sets the grow time for an item globally.
item:setGrowTime(seconds)setActionType
Sets the action type for an item globally.
item:setActionType(type)setDescription
Sets the description for an item globally.
item:setDescription(text)setCategoryType
Sets the category type for an item globally, using bit flags.
item:setCategoryType(value)setClothingType
Sets the clothing type for an item globally.
item:setClothingType(typeID)setEditableType
Sets the editable type for an item globally.
item:setEditableType(value)isObtainable
Returns true if the item is obtainable.
item:isObtainable()