Crate Configuration File
On this page, you will find an example of a crafe config.
Example Crate
Each crate has its file inside the crates folder. Check the default structure of a crate:
enabled: true
identifier: example4
display-name: '&eExample #4'
block-material: CHEST
engine: VANILLA_BLOCK
open-money-cost: 0.0
open-cooldown: 0
simultaneous-openings: false
preview-item: true
permission:
required: true
permission: phoenixcrates.crate.example4
animation:
idle-effects:
- DEFAULT;{ENCHANTMENT_TABLE;#ffffff;0.0;2.0;0.0;1.5;0.1;2}
- DEFAULT;{FIREWORKS_SPARK;#ffffff;0.0;0.0;0.0;0.0;0.1;2}
- CIRCLE;{SMOKE_NORMAL;#ffffff;0.0;0.0;0.0;0.0;0.0;2}
opening-animations:
'0':
- DEFAULT;{}
- SWIRL;{#ffffff}
- FIRE_SPIRAL;{#ffffff}
hologram:
lines:
- '&e&l%name% Crate'
- ''
- '&7Right-Click to open!'
- '&7Left-Click to preview!'
- '&7Shift + Left-click to remove!'
offset: 0.0
preview-menu: default_crate_reroll
key:
enabled: true
virtual: false
glow: true
item:
==: org.bukkit.inventory.ItemStack
v: 3953
type: TRIPWIRE_HOOK
meta:
==: ItemMeta
meta-type: UNSPECIFIC
display-name: '{"text":"","extra":["&aExample #4 Crate Key"]}'
lore:
- '{"text":"","extra":["&7This is a lore line"]}'
- '""'
- '{"text":"","extra":["&eUse this key in &6%crate%&e!"]}'
max-win-rewards: 0
rewards:
'0':
identifier: reward_1718740580631
display-item:
==: org.bukkit.inventory.ItemStack
v: 3953
type: DIRT
meta:
==: ItemMeta
meta-type: UNSPECIFIC
display-name: '{"text":"","extra":[{"text":"Dirt","obfuscated":false,"italic":false,"underlined":false,"strikethrough":false,"color":"gray","bold":false}]}'
win-items:
- ==: org.bukkit.inventory.ItemStack
v: 3953
type: DIRT
win-commands: []
win-limits: -1
percentage: 100.0
broadcast: false
restricted-permissions: []
alternative-reward:
enabled: false
reward:
item:
==: org.bukkit.inventory.ItemStack
v: 3953
type: DIAMOND_PICKAXE
display-name: §aAlternative Item
virtual: false
broadcast: false
commands: []
current-milestone: NOTSET
milestones: {}
reroll:
enabled: false
free-rolls: 0
groups:
'0':
namespace: common
rerolls: 3
'1':
namespace: rare
rerolls: 5
'2':
namespace: legendary
rerolls: 10
extra-settings:
animation:
display-item-position:
x: 0.0
y: 3.0
z: 0.0
Last updated
Was this helpful?