Getting Started
An example of a file in the buttons directory which is named redglasss.yml
# Settings related to the crate i.e. things like the display item.button: # Display related settings i.e. the look of the item. display: # If the item should be displayed in the gui, or not. enabled: true # The item configuration. item: # The item material. material: "blue_stained_glass_pane" # The name of the item. name: "" # The lore of the item. lore: [] # The amount to display. amount: 1 # The commands to execute when an item is clicked. commands: [] # The commands to execute when an item is clicked. messages: []The value that is specified in key is the name of the file from the buttons directory, which in our case is redglass.yml.
This means that the key we specify in key is redglass! Once you add this, save the file.. and do /crates reload
# The crates section.Crate: # The buttons section, All items here are *applied* before prizes, and count as static items. buttons: "1": # The name of the file, but remove .yml key: "redglass" # The slot to set it in the crate preview. slot: 0 "1": # The name of the file, but remove .yml key: "redglass" # The slot to set it in the crate preview. slot: 1