⚖️Allowed Item String
This also applies to GUI items that represent the delivery.
A typical item string would look something like this
Plugin
Material/Item ID
Amount/Item Type/None
Only MMOItems needs a 4th part which is the amount.
Plugin
The first section denotes the name of the plugin from which the item comes if it is a custom item. Otherwise, it is set to van
for vanilla. Other plugins use the following prefixes.
Vanilla -
van
MMOItems -
mmo
ItemsAdder -
iad
Oraxen -
orx
ExecutableItems -
exi
EcoItems -
eco
Serialized -
ser
(Not editable in config)
Material/Item ID
The second section denotes the Item ID of the item that is used to represent it in those plugins. Otherwise, it is set to any vanilla Material. List of vanilla materials can be found here.
Amount/Item Type/None
This section denotes the Item's amount or type depending on the plugin. For vanilla items, it represents the item amount that needs to be delivered.
Vanilla - Item Amount
MMOItems - Item Type
ItemsAdder - N/A
Oraxen - N/A
ExecutableItems - N/A
EcoItems - N/A
Even though this doesn't apply to ItemsAdder, ExecutableItems or EcoItems, it is advised to not keep this section empty for these plugins and putting a number makes it failsafe in case something goes wrong.
Examples
Vanilla
To set the delivery item to require 16 Breads, the string will be: van@BREAD@16
String for 32 Redstone lamps would be: van@REDSTONE_LAMP@32
MMOItems
To set the delivery item to require 1 Custlass Sword, the string will be: mmo@CUTLASS@SWORD@1
String for a Blaze Wand would be: mmo@BLAZE_WAND@WAND@1
ItemsAdder
To set the delivery item to require 1 coin from the iageneric section of the default pack (Details), the string will be iad@iageneric:coin@1
String for an Arcane Ring from iaalchemy section of the samepack would be iad@iaalchemy:arcane_ring@1
.
The namespace (iageneric
or iaalchemy
) is not mandatory and can be ignored. However, it is advised to keep the namespaces as it would prevent confusion if an item with the same id is available in both the sections. The 1
at the end is kept as a countermeasure for any typos leading to crashes.
Oraxen
To set the delivery item to require 1 dagger from Oraxen's default items, the string will be orx@dagger@1
.
ExecutableItems
To set the delivery item to require 1 Free Heal, the string will be: exi@Free_Heal@1
String for a Free Fly would be exi@Free_Fly@1
The 1
at the end is kept as a countermeasure for any typos leading to crashes.
EcoItems
To set the delivery item to require 1 grappling hook, the string will be: eco@grappling_hook@1
The 1
at the end is kept as a countermeasure for any typos leading to crashes.
Serialized
This is an itemstack directly serialized into byte code and saved in the config. It can not be edited in the config.yml
and appears when using either add
or edit
command to add items.
Last updated