Reward Config Editing

Reward Config Editing

View as Markdown ·

On this page

triangle-exclamation

If you copy and paste a reward, make sure to change its identifier, as it must be unique.

#Edit Rewards

You can also edit the rewards through the configuration file if you prefer to manage everything manually.

#Format:

The following option is the method you can use for vanilla items.
Note: This option cannot be configured through the in-game editor, as the editor uses the bukkit format to also support custom properties and modded Items.

YAML
display-item:
  material: PAPER
win-items:
  '0':
    material: PAPER

#Material:

Allows you to set a material on your item.

YAML
material: TEXT

Supported material values:

circle-info

For hooked items (ItemsAdder, Nexo, MMOItems, ExecutableItems, CraftEngine, etc.), the id is the custom item's own identifier as registered in that plugin.

#Hooked Materials

A hooked material is the hook name, a colon, then the id the other plugin knows the item by. Only the first colon separates the two, so everything after it reaches that plugin exactly as written.

triangle-exclamation

The separator is a colon, never a dash. itemsadder-medieval_crates-crate_key is read as a plain material name, matches none, and is reported as an unknown material in the console. The hook is never reached. The same value written with colons resolves.

Hook Value Example
ItemsAdder itemsadder:namespace:id itemsadder:medieval_crates:crate_key
MMOItems mmoitem:type:id mmoitem:SWORD:cutlass
Nexo nexo:id nexo:ruby_sword
CraftEngine craftengine:id craftengine:default:ruby_sword
Mythic Items mythicitem:id mythicitem:excalibur
ExecutableItems executableitem:id executableitem:magic_wand
HeadDatabase hdb:id hdb:1234

ItemsAdder and MMOItems ids are built from two parts of their own, so those values have three parts in total. itemsadder:crate_key sends only crate_key to ItemsAdder and resolves to nothing, and an MMOItems value with no type is rejected. For the rest, pass the id exactly as the plugin registers it, namespace included where it has one.

YAML
material: itemsadder:medieval_crates:crate_key

The same values work in every material field of the plugin, the menus included.

circle-info

When the hook name is valid but the plugin is not installed, or the id resolves to nothing, the item becomes a placeholder rather than the crate failing to load. On a reward it names the hook in its lore, in a menu it is a barrier.

#Display Name

Allows you to set a display name on your item.

YAML
display-name: '&eExample Reward'

circle-check

This option also supports MiniMessage Format.

#Lore:

Allows you to set a custom lore on your item.

YAML
lore:
- '&cLine 1'
- '&eLine 2'
- '&aLine 3'

circle-check

This option also supports MiniMessage Format.

#Model Data:

Allows you to set custom model data on your item.

YAML
model-data: 1000

#Item Model:

Allows you to set a custom Item Model (the modern resource-pack item model component) on your item.

YAML
item-model: 'minecraft:custom_paper'

circle-exclamation

This option requires the resource pack to actually define the referenced item model. If the model doesn't exist, the item will simply render with its base material's texture.

#Amount:

Allows you to set a fixed stack size on your item.

YAML
amount: 1

#Enchants:

Allows you to set enchants on your item.

YAML
enchants:
- 'PROTECTION:1'
- 'UNBREAKING:1'

#Item Flags:

Allows you to set item flags on your item, to hide certain tooltip sections (enchants, attributes, "unbreakable", etc).

YAML
flags:
- 'HIDE_ENCHANTS'

#Tooltip Style:

Allows you to set a custom tooltip style/texture (resource-pack defined) for the item's tooltip box.

YAML
tooltip-style: 'minecraft:gui/sprites/widget/inventory_tooltip'

circle-exclamation

Requires server version 1.21.2+. On older server versions this option is ignored.

#Enchantment Glint Override:

Allows you to force the enchantment glint (the shimmering/glowing effect) on or off, independently of whether the item is actually enchanted.

YAML
enchantment-glint-override: true # Boolean (`true`/`false`)

circle-exclamation

Requires server version 1.20.5+. On older server versions this option is ignored.

Allows you to add banner patterns to your item. Works on banners, and on shields (and other blocks that carry banner data).

YAML
banner-meta:
- 'RED;STRIPE_BOTTOM'
- 'WHITE;CROSS'

#Armor Trim (Material & Pattern):

Allows you to apply an armor trim to your item, by setting both the trim material and the trim pattern.

YAML
trim-material: IRON
trim-pattern: DUNE

circle-exclamation

Requires server version 1.20+. On older server versions this option is ignored.

#Potion Effects:

Allows you to add custom potion effects to a potion item.

YAML
potion-effects:
- 'speed;1200;1'
- 'regeneration;600;0'

#RGB:

Allows you to set a custom color on your item, using raw RGB values.

YAML
rgb: '38, 192, 210'
  • Format: R, G, B (each 0-255). Applies to leather armor, potions, maps and firework effects.

#Item Config Example

The following is an example of a reward with its display item and the actual reward.

YAML
  '2':
    identifier: reward_1759509999284
    display-item:
      material: PAPER
      # Legacy colors support
      display-name: '&#C00BD6Paper'
      lore: 
      - '&cCustom Paper Item'
      model-data: 1000
      enchants:
      - 'PROTECTION:1'
      flags:
      - 'HIDE_ENCHANTS'
    win-items:
      '0':
        material: PAPER
        # Mini Message Support
        display-name: '<gradient:#C00BD6:#FD2177>Paper</gradient>'
        lore: 
        - '<gradient:#C00BD6:#FD2177>Custom Paper Item</gradient>'
        model-data: 1000
        enchants:
        - 'PROTECTION:1'
        flags:
        - 'HIDE_ENCHANTS'
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping