Introduction
This plugin allows an item to be scrapped, meaning the item is destroyed and new items are added.
Fields#
| Name | Description |
|---|---|
| Results | List of items to add to inventory after scrapping this item |
| On Action State Changed | Event raised whenever the action state changes |
Properties#
| Name | Description |
|---|---|
| isAction | Gets if the plugin is an action |
| title | Title of the plugin |
| description | Description of the plugin |
| actionKeys | Action keys the plugin responds to |
| host | Inventory hosting the plugin |
| item | Gets the item associated with the plugin |
| icon | Icon associated with the plugin |
| titlebarText | Text to display in the titlebar for the plugin |
Methods#
| Name | Description |
|---|---|
| IsActionReady | Get if a specific action is ready to perform |
| PerformAction | Perform the default action |
| AfterAdd | Method run after item is added to inventory |
| AllowAction | Check if an action is allowed |
| BeforeAdd | Method run before item is added to inventory |
| DataSave | Prepare data for serialization and saving |
| HasActionKey | Check if plugin has action key |
| Initialize | Initialize the plugin |
| OnItemDropped | Method called when another item is dropped onto this one (return true if event handled) |
| OnAfterAttack | Method to call whenever the player deals damage to another object |
| RunCommand | Run a command |
| Shutdown | Shuts down the object |