DUXPLIMA Documentation

Reward files

Every key of a reward, the item format, and shared rewards under rewards/.

A reward is written inside a crate's group, or once under rewards/<id>.conf and named with from. The keys are the same in both places.

KeyDefaultMeaning
weightthe rarity's weightA number; the chance is the weight over the group's sum
display.nameThe name in the preview and messages
display.raritynoneA rarity of the crate
display.lore[]Lines under the preview's description
display.iconthe first item{ material, glow }: the face in the preview
display.orderafter the restThe place on the preview page
items[]Item lines or item blocks
commands[]Console lines; %player%, {player}, <player>
money[]"vault 500", "exp 500", "levels 5"
announcefalseBroadcast whatever the threshold says
permissionnoneNeeded to win it
limits.playernone{ amount, reset }: wins per player
limits.globalnone{ amount, reset }: wins across the server
linked[]Reward ids of the same crate given along with this one
guaranteenone{ mode = "once" or "every", opening = N }
fallbackfalseGiven when the group has nothing else for the player
lucktruefalse keeps rank luck off this reward
fromnoneA file under rewards/. The crate's keys win over it

reset is a span such as 12h, 7d or 30m, counted from the win that reached the limit.

The item format

An item is a line or a block:

items = [
  "DIAMOND 3",
  {
    material = "NETHERITE_SWORD"
    amount   = 1
    name     = "<accent>The Legendary Sword"
    lore     = [ "<subtext>Sharpness V, and it keeps its edge." ]
    enchants { sharpness = 5, unbreaking = 3 }
    unbreakable = true
  }
]
KeyMeaning
materialA material, or a custom item such as oraxen:ruby
amountThe stack size
name, loreIn the three shapes a name takes
glowThe glint
model-data, item-modelA resource pack's model
Anything elseRead by the uxmLib item reader: enchantments, unbreakable, trims, potions, a head's owner, a written book, damage

A block that names only the first set is stored as a summary; one that names more is kept whole and built by the uxmLib item reader, so an enchantment or a trim is never lost. A reward the editor makes from the item in your hand is written the same way.

Shared rewards

rewards/legendary-sword.conf ships as an example. A crate names it:

sword { from = "legendary-sword", weight = 20, linked = ["scabbard"] }

Whatever the crate writes wins over the file. A shared reward cannot name another shared reward.

Related: Rewards and groups, Crate files