All files are in plugins/StrawCrates/. Pick a file to see its default content. Edit the file on your server, then run /crates reload or restart.
This plugin has 33 files.
All files are in plugins/StrawCrates/. Pick a file to see its default content. Edit the file on your server, then run /crates reload or restart.
This plugin has 33 files.
No file matches.
plugins/StrawCrates/crates/crate-example.yml
# EXAMPLE ONLY: this exact filename is never loaded as a crate.
# Copy to crates/my-crate.yml. The filename (my-crate) is the permanent ID.
# Renaming an ID does not rename existing keys or database locations.
name: '&aExample Crate' # Colored display name, independent from the filename.
enabled: false # Visible to admins in the editor; unavailable to players until enabled.
icon: CHEST # Any valid item material; /crates get uses CHEST if the icon is not a block.
mode: CHOICE # CHOICE selects one reward; RANDOM uses positive relative weights.
permission: '' # Empty = everyone with strawio.crates.use. Otherwise require this permission too.
inventory:
title: '&8ᴄʜᴏᴏsᴇ 1 ɪᴛᴇᴍ' # Supports %crate% and %keys%.
rows: 0 # 0 = automatic; 1..6 = minimum rows, expanded to fit the highest reward slot.
filler:
material: BLACK_STAINED_GLASS_PANE # Decoration in unused slots.
name: ' ' # Blank name hides the usual material tooltip.
hologram:
height: 2.0 # Blocks above the bound block (0..10).
lines: # [] disables the hologram. PAPI runs separately for each viewer.
- '%crate%'
- '&f%keys% Keys' # The viewer's virtual keys for this crate.
key-item:
material: TRIPWIRE_HOOK # Physical keys are optional; virtual keys always work.
name: '%crate% &fKey' # /crates givephysicalkey adds a unique redeemable token and count.
rewards:
example_sword: # Permanent reward ID. Saved claims keep their frozen original rewards.
slot: 13 # Unique inventory position 0..53. Broken rewards appear as a BARRIER.
name: '&aExample Sword' # Name in the selection menu.
weight: 10 # RANDOM relative chance; finite, greater than zero, maximum 1e12.
give-item: true # false permits command/money-only rewards with a display icon.
item:
material: DIAMOND_SWORD # A valid Minecraft item material.
amount: 1 # 1..the item's native maximum stack size.
lore: ['&7Example reward'] # Optional lore for text-defined items.
enchantments: # Namespace IDs from the server registry, levels 1..255.
minecraft:unbreaking: 3
# trim: {pattern: minecraft:sentry, material: minecraft:gold} # Armor only.
# spawner: COW # Only for material: SPAWNER.
# serialized: '...' # Written by the editor: preserves all native item data.
commands: [] # Console commands without a leading slash; %player%, %uuid%, %operation%.
money: 0 # Optional amount paid through the registered Vault economy provider.
requires-plugin: '' # Optional provider guard. Missing provider hides THIS reward only.
folia-safe-command: false # Legacy metadata; commands must be compatible with the installed server.
# Locations, key balances, receipts and pending deliveries live in the database, never here.
# External commands with uncertain crash outcomes require /crates claims review; never auto-replayed.