Crate

Options

Key

Info regarding Crate Keys can be found here.

Keys

Display Name

A display name of the crate that is being used for placeholders in plugin messages.

This display name is not being used in preview or any other places. This is completely intentional, so you can modify everything to your needs!

Mass Open

Info regarding Mass Opening can be found here.

Mass Opening

Interactables

Info regarding Interactables can be found here.

Visuals

Rewards

Info regarding Rewards can be found here.

Rewards

Possible Rewards

Info regarding Possible Rewards can be found here.

Rewards

Example configuration

This is an example config that the plugin is being tested with.

This configuration does not contain stuff such as rerolls, preview & animations!

key:
  material: STONE
  display-name: "<red>Example Pouch 2!"
  lore:
    - " "
    - "<gray>Example line!"
  enchants:
    - "aqua_affinity:1"
  interaction:
    RIGHT:
      type: "open-crate"
display-name: "Example Pouch"
mass-open:
  final-tasks:
    - type: message
      message: "You have won %total-won-excluded% rewards in Mass Opening!"
  per-reward-tasks:
    - type: message
      message: "- %amount%x %reward%"
interactables:
  - type: ITEM_MODEL
    offset: "0;0.5;0"
    item-transform: "NONE"
    scale: "1;1;1"
    item:
      material: "STONE"
    billboard: FIXED
  - type: BLOCK
    material: BARRIER
possible-rewards:
  - min: 1
    max: 1
    chance: 100
rewards:
  example:
    amount-ranges:
      - min: 1
        max: 1
        chance: 100
    item:
      material: DIAMOND
      display-name: "example 1"
    give-item: true
    chance: 100
    actions:
      - type: message
        message: "You have won %random-amount%x diamond!"
        mass-open-execute: false
  example2:
    amount-ranges:
      - min: 1
        max: 1
        chance: 100
    item:
      material: IRON_INGOT
      display-name: "example 2"
    give-item: true
    chance: 100
    actions:
      - type: message
        message: "You have won %random-amount%x iron ingot!"
        mass-open-execute: false
  example3:
    amount-ranges:
      - min: 1
        max: 1
        chance: 100
    item:
      material: EMERALD
      display-name: "example 3"
    give-item: true
    chance: 100
    actions:
      - type: message
        message: "You have won %random-amount%x emerald!"
        mass-open-execute: false

Last updated