π Crate Configuration File
It is possible to configure the crates from the configuration file. You can view an example crates configuration file here to also help you.
Each crate has its file inside the crates folder. Check the default structure of a crate:
Below you can also see the meaning of each field:
enabled - This field has the function of activating and deactivating a create, so if it is disabled, no crate of this type will be available for the players.
display-name - This field has the function of naming this crate that will be used to represent the crate (e.g. will change the hologram name).
block-material - This field will define the block material itself for all crates of this type. Usually the common is a normal chest or an end chest.
engine - This field will define what engine this crate will use to be displayed to the world. Currently, the options available are VANILLA_BLOCK, VANILLA_MODEL, and MODEL_ENGINE.
open-money-cost - This field will define how much will cost for the player to open this crate.
open-cooldown - This field will define what cooldown the player will have to wait to open again.
permission - This group of fields will define whether the player will need permission to open this crate.
animation.idle-effets - This field will define what are the effects of the idle animation following pattern respectively:
Particle name, Particle hex color, Offset x, Offset y, Offset z, Radius, Effect type, Amount of particles.
animation.opening-phases - This field will define what are the phases of the opening animation following pattern respectively:
Phase Type, Phase Data
hologram - This field allows you to configure the lines of this hologram.
preview-menu - This field will define what is the menu that will be shown when the player left click the crate.
key - This group has a set of fields responsible for naming the name, lore and material type of the key. It is also possible to use one placeholders: {crate}.
rewards - This group has a list of sections responsible to keep the rewards of this crate.
milestones - In this group, you will be able to set extra rewards when a user reaches a specific "goal"
reroll - In this group you will be able to define the amount of rerolls that the users can do.
display-item-position - With this setting, you can adjust the position of reward item.
Last updated