Creating your first crate

Guide

#1 Create a YML file in the crates folder (For example tutorial.yml)

#2 Paste example settings there

display-name: "&bTest"
key:
  material: TRIPWIRE_HOOK # Possible values: MATERIAL; itemsadder:ItemId; oraxen:ItemId
  display-name: "&bTutorial &fKey"
  lore:
    - "&7This is a tutorial key"
model: modelengine:crate6 # Possible values: modelengine:ModelID
rewards:
  1:
    item:
      material: "DIAMOND"
      display-name: "§bExample Reward"
      lore:
        - "&7This is an example reward"
    chance: 10
    give-item: true # Should it give the reward item when a player wins this reward?
    # What should happen when a player win the reward?
    # Possible actions: [message]; [command]
    # Available placeholders: %player%
    actions: 
      - "[message] §fTest Action! You have won that!"
      - "[command] cmi broadcast Command action also works!"
preview: # Preview GUI of the crate
  reward-slots: # Available slots for rewards
    - 9
    - 10
    - 11
    - 12
    - 13
    - 14
    - 15
    - 16
    - 17
  items: # Cosmetic items of the GUI
    border:
      material: BLACK_STAINED_GLASS_PANE
      display-name: " "
      slots:
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8

#3 Reload the plugin using /acrates reload

#4 Give yourself the crate item by using /acrates crate give <cratename> and place the crate

#5 Now you have functional crate!

If you want to make your Crate more special, check following guides:

Last updated