-
Notifications
You must be signed in to change notification settings - Fork 47
Item Customization
Creates the [ITEM]
.
Preview the item.
Give you the item or give specified player an amount of such items.
Show/set item armour value. The armour reduce a percent of damage taken.
Note: Multiple armor with such attributes calculates as "times". E.g., helmet armour 10%, leggings armour 15%, total damage taken = damage amount x 0.9 x 0.85.
Clone ITEM
as ITEM2
, use to quickly create a bunch of similar items or a series items.
Set item cost values. See Durability Mechanism.
Available options:
-
breaking
|breaking [value|integer]
- Show/set durability cost when breaking block using this item. -
hit
|hit [value|integer]
- Show/set durability cost when being hit with this item. -
hit toggle
- Toggle cost status of being hit with this item. -
hitting
|hitting [value|integer]
- Show/set durability cost when hit other entities with this item.
Note: values can be negative, thus hit/hitting/breaking will increase item durability.
E.g., hit someone with blade_item
to gain 2 durability each time:
/rpgitem blade_item cost hitting -2
Use custom item mode.
Show/set item damage value. Available options:
-
[value]
- Set damage to a fixed value./rpgitem test_item damage 15
-
[min] [max]
- Set damage to a random value in a range./rpgitem test_item damage 10 20
Toggle item damage mode. Use this command to change item damage mode to next option. Available options:
- Fixed (default) - Fixed RPGItem damage, enchants will not work, but status/potion effects will apply
- Vanilla - Use minecraft vanilla damage calculation w/ enchants
- Additional - Use minecraft vanilla damage plus RPGItem damage calculation. Enchants/effects will apply
Set item durability to value
. Available options:
-
[value]
- Set durability tovalue
-/rpgitem test_item durability 100
-
infinite
- Set durability to infinite -/rpgitem test_item durability infinite
-
togglebar
- Set durability bar to force show/hide
Set item durability lower and upper bounds. This controls whether and how a power will be executed.
/rpgitem test_item durabilitybound 10 100
- When item durability is 9, powers with positive
consumption
attribute value will not be executed. - When item durability is 101, powers with negative
consumption
attribute value will not be executed. - When item durability is 50, all powers will/can be executed.
Show the item durability information.
Add text
to item description/lore. Formatting codes are supported with &
symbol. You need to use backquotes ` to quote your text with spaces. This applies to all strings passed to RPGItems argument.
/rpgitem mysword description add `This is my sword.`
Set item description to text
on a specified line. Line number starts from 0.
Remove item description of specified line. Line number starts from 0.
Set item name to value
. Formatting code supported with &
symbol.
/rpgitem test_item display `&bHidden Blade`
Set item to be dropped from a specified entity, or with an optional chance.
Clone or clear enchantments in hand to item.
E.g., hold a sword with SHARP II
and execute /rpgitem test_item enchantment clone
will add SHARP II
enchant to text_item
.
Set hand text for item. Hand text is displayed at left under item name.
Set type text for item. Type text is displayed at right under item name.
Set ITEM
material to item
or with additional options.
Available options:
-
[item id]
- Set to an item as material. -
[item id] hex [string]
- Set to item material with specified color. -
[item id] [damage value]
- Set to item material with specified damage value. -
[item id] [color string]
- When item is leather (can be dyed) thecolor string
can be supplied in decimal format. E.g., if you want color#d9333f
, which is14234431
in decimal, you should use/rpgitem myhelmet item leather_helmet 14234431
.
Add or remove item flags.
Set item permission node. If enabled
is true
, only players with corresponding permission node can use this item.
Set item quality. Currently no actual usage in plugin.
Possible values:
trash
common
uncommon
rare
epic
legendary
Set the item has a chance of 1/[chance]
to be crafted via craft table.
Remove the item from plugin.
Remove the power from item. If the item have multiple specified power, the first match (pit fall) will be removed.
Toggle item armor information and hand/type text to be shown/hidden.
Toggle item power description to be shown/hidden. Hide power lore can make item description looks cleaner.
Set item to work with worldguard.
Powered by NyaaCat Community.
This wiki is licensed under a Creative Commons Attribution-ShareAlike license (CC BY-SA) version 4.0.