Skip to content
ReinWD edited this page Feb 25, 2020 · 3 revisions

Using RPGItem, we can create RPG styled gaming items.

It supports a large variety of effects like Sound, Damage, Particle Effect and Laser Beams.

Generally, a RPGItem contains some Basic Properties, powers, conditions, markers and modifiers.

Basic Properties is common properties that every item have, like name, lore, damage, item.

Powers is the core of RPGItems. It gives items different functionality.

Conditions determine wether a power can be triggered or not. (e.g. Check an item's durabiltity. If durability is lower than a specific value, the power on this item can't be triggered.) Conditions must have an id to recognized by powers.

Markers have some special functions that an item should always have, like Attribute Modifier, Unique, Unbreakable.

Basic Properties

display

/rpgitem display <item> <displayName>

display name for a item.

Item can be renamed by anvil or other plugin (e.g. NyaaUtils).

displayName can be formatted (e.g. colored, italic, bold) by & character

Note: change display can't update itemstack's name. Naming with caution.

description

/rpgitem description <item> <set/insert> <index> <loreText>

/rpgitem description <item> <add> <loreText>

Change lore for this item.

All Lores on an item can be replaced by /rpgitem description set.

loreText can be formatted (e.g. colored, italic, bold) by & character.

Index started from 0, count lines with caution.

item

/rpgitem item <item> <material>

Change item model.

Materials list can be found here

e.g. Command /rpgitem item example BOW can change item example 's item material to a BOW.

NOTE: 1.Throwable item (e.g. snowball, ender pearl, egg) is not recommended.

NOTE: 2.If any type of item was break by user click (e.g. put a banboo item into flower pot, bucket item take water from a lake), please tell us what happened.

durability

RPGItem use standalone durability system to let you have a more accurate control for an item.

Power's cost property will cost durability when the power is triggered.

/rpgitem durability <item> <defaultDurability>

Set default and max durability

e.g. /rpgitem durability <item> 500 will set item's default and max durability to 500.

/rpgitem durability <item> <barformat/bound/default/infinite/togglebar>

this command can modify specific durability property for an item.

togglebar can enable/disable a durability bar on an item. Durability bar can be displayed on item lore to indicate the durability of an item.

barformat control the durability bar style.

bound have two parameters, lower bound and upper bound. (e.g. /rpgitem durability <item> bound 100 200)

Clone this wiki locally