Creating Lootboxes

How to create your own lootboxes

The easiest way to create a lootbox is by executing the /el create <name> command in-game, this will open a GUI that allows you to modify nearly everything about the lootbox. Adding rewards is just as simple, all you need to do is execute the /el addreward command to add normal rewards and the /el addbonusreward command to add bonus rewards.

Example Lootbox

Item:
  material: CHEST
  data: 0
  name: '&cExample Lootbox'
  lore:
  - '&7This is an example lootbox'
Animation:
  type: 1
  settings:
    title: '&cexample lootbox'
    rewards-slots:
    - 2
    - 3
    - 4
    bonus-rewards-slots:
    - 5
    - 6
    timer-slots:
    - 0
    - 8
    time: 5
    broadcast:
      enable: true
      header: '&e&l(!) &e{PLAYER} has just open the &c&lExample Lootbox &eand has
        gotten'
      message: '&6&l* &e&l{AMOUNT}x {ITEM}'
    sound:
      start: UI_BUTTON_CLICK:5
      prize: ENTITY_PLAYER_LEVELUP:5
skippable: true
rewards: []
bonus-rewards: []

Notice: Rewards are stored via Base64 using the in-game reward adder.

Last updated