RemoveItemDefinition
Removes one of your items - its pieces become the plain base item.
Every piece of it, wherever it is (players’ bags, chests, saddlebags), is a plain piece of its base item from then on.
Syntax
Section titled “Syntax”RemoveItemDefinition(name)| Parameter | Type | |
|---|---|---|
name |
string | your item’s name |
Returns
Section titled “Returns”boolean - false for a name that is none of yours
Example
Section titled “Example”RemoveItemDefinition("festival_token") -- the festival is over: the tokens are plain coins againSee also
Section titled “See also”DefineItem · the Items and inventory group of the index
