DUXPLIMA Documentation

Crate files

Every key of crates/<id>.conf, with its default and meaning.

One file per crate under crates/; the file name is the id. common.conf and elite.conf ship as commented examples. How the parts behave is on Crates and Rewards and groups.

Top level

KeyDefaultMeaning
nameThe name, in one of the three shapes
key.idThe key file this crate takes
key.amount1Keys per opening. 0 takes no key
key.kindvirtual, physical or either (items first)
cost[]Effect lines taken per opening: [take-money] vault 500, [take-item] DIAMOND 3
requirements[]money vault >= 500, item DIAMOND >= 3, placeholder %mcmmo_level_mining% >= 50
permissionnoneA node needed beside the key
shape.typeblock or menu
shape.materialThe block, or the list icon of a menu crate
shape.positions[]world,x,y,z lines; /uxmcrates place writes them
visibility.modeopening.default-visibilityopener, radius or everyone
visibility.radiusopening.default-radiusBlocks, for radius
animationA file under animations/
idle-effectnoneA file under animations/ drawn while nobody opens it
cooldown0Seconds. 0 no wait, -1 once forever
worlds.modeblacklistblacklist or whitelist
worlds.list[]World names. Empty is everywhere
broadcast.enabledtrueAnnounce wins
broadcast.threshold3The rarity order at or above which a win is announced
effects.open[]Effect lines when an opening is paid for
effects.win[]Effect lines once the reward is handed over. %reward%, %rarity%, %crate%, %player%
no-repeattrueOne opening never gives the same reward twice, while the crate has enough rewards
bulk.capopening.bulk-capThe most openings of one /crates massopen on this crate
bulk.announceonceeach, once or never
selection.enabledfalseThe player picks instead of rolling
selection.picks1How many the player takes
selection.faces9How many are shown, at most
selection.face-downfalseHide the faces until taken
raritiesNamed rarities; see below
groupsThe reward table; see below

hologram

KeyDefaultMeaning
linesLines per language. %keys% and %cooldown% are for the reader
height1.6Blocks above the block
view-distance32How far it is seen
refresh-millis500How often each viewer's text is worked out again

appearance takes any of these; a key you leave out keeps the vanilla look:

KeyMeaning
billboardcenter, vertical, horizontal or fixed: how the text turns to the player
alignmentcenter, left or right
text-shadow, see-throughtrue or false
backgroundThe panel behind the text, #rrggbb or #aarrggbb, or "none"
text-opacity0 to 255
glowThe outline colour, #rrggbb, or "none"
brightness-block, brightness-sky0 to 15, -1 for the world's own
line-widthWhere a long line wraps, in pixels
line-gapThe distance between two lines (0.28 shipped)
view-rangeThe multiplier on how far the client draws the text
shadow-radius, shadow-strengthThe shadow on the ground, -1 for none
scaleOne number, or { x, y, z }
offset{ x, y, z }

rarities

rarities {
  epic { name = "Epic", colour = "level", order = 5, weight = 5, effects = ["[sound] ui.toast.challenge_complete 1 1"] }
}
KeyMeaning
nameThe rarity's name
colourA role from theme.conf, never a hex code
orderIts place; the broadcast threshold compares it
weightOptional default weight for a reward that writes none
effectsEffect lines fired after the crate's win effects when the best reward is this rarity

groups

groups {
  loot {
    name = "Loot"
    rewards {
      diamond { weight = 9, display { name = "A diamond", rarity = "rare" }, items = ["DIAMOND 3"] }
    }
  }
}

A group has a name and rewards. Every reward key is on Reward files.

Related: Crates, Reward files