The cratest crate plugin of all time
3

Crates

Crates define everything necessary to open a crate, such as keys, rewards, and effects.

<id> = {
    //name, lore, icon
    keys = [
        <key-reference>
        ...
    ]
    opener = undefined/"gui"/"roulette"
    effects = {
        idle = [
            <effect-reference>
        ]
        ...
    }
    rewards = [
        <reward-reference>
        ...
    ]
}

Properties

NameTypeDescriptionDefault
nameTextThe crate name, inherited from ComponentThis crate’s capitalized id
loreListThe crate lore, inherited from ComponentAn empty list
iconItemThe crate icon, inherited from ComponentA chest with the above name/lore
keysListThe keys for this crateAn empty list
openerundefined/"gui"/"roulette"The opener for this crateundefined (none)
effectsMap<Action, List<EffectReferenceThe effects for each action of this crate (idle/open/give/reject/preview)An empty map
rewardsListThe rewards for this crateRequired

Examples

A crate containing the example key, rewards, and some effects.

example = {
    name = "&eExample Crate"
    lore = ["&6An example crate"]
    keys = [
        ["example", 1]
    ]
    opener = "gui"
    effects = {
        idle = [
            ["rainbow-helix"]
        ]
        give = [
            ["green-creeper"]
        ]
    }
    rewards = [
        ["command-prizes", 50.0]
        ["item-prizes", 50.0]
    ]
}

Category: Gameplay

Published on Sep 5, 2021

views

stars

watchers

total downloads

Licensed under MIT

Promoted Versions

Members