Introduction
This plugin allows an item to be equipped
#
FieldsName | Description |
---|---|
Auto Equip | Auto-equip type |
Requirements | Expression that must be true to allow equip |
Slot Ids | EquipSlots this item can use |
Spawn Item | Spawn item when equipping |
Equip Spawn | Item to spawn on equip |
On Action State Changed | Event raised whenever the action state changes |
#
PropertiesName | Description |
---|---|
actionKeys | Action keys the plugin responds to |
isAction | Gets if the plugin is an action |
title | Title of the plugin |
description | Description of the plugin |
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 |
#
MethodsName | Description |
---|---|
AfterAdd | Method run after item is added to inventory |
HasActionKey | Check if plugin has action key |
IsActionReady | Get if a specific action is ready to perform |
Initialize | Initialize the plugin |
PerformAction | Perform the default action |
AllowAction | Check if an action is allowed |
BeforeAdd | Method run before item is added to inventory |
DataSave | Prepare data for serialization and saving |
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 |