Skip to content
◆ TTS-STUDIO docs Discord

Plugins / CrateForge

Configuration reference

This is the config.yml CrateForge writes on first start, comments included. Every key you see here is the key the plugin reads; there are no hidden ones. Change a value, reload, and it applies.

Top-level sections: language, storage, cooldown, shop, mass-open, left-click-preview, broadcast, daily-bonus, world-animations, holograms, ambient, body, visual-hooks, economy.

# ============================================================================
# CrateForge — main configuration
# ----------------------------------------------------------------------------
# Free crate plugin for Paper and Spigot 1.19.4+. Every option below is annotated.
# Sample crates and keys are auto-generated under crates/ and keys/ on first
# enable. Run /cf reload after editing any YAML to apply changes hot.
# ============================================================================

# ===== Language =============================================================
# Active language. ISO-639-1 two-letter code (lowercase).
# Bundled out of the box: es (Spanish), en (English).
# Missing keys fall back to en automatically. Operators can drop extra
# lang/<code>.yml files in plugins/CrateForge/lang/.
language: en

# ===== Storage ==============================================================
# Persistence backend for placed crates, key history, token balances, and the
# top-winners leaderboard.
storage:
  type: sqlite       # Only sqlite is supported in v1.x. Reserved for future MySQL backend.
  file: crateforge.db   # File name (relative to plugins/CrateForge/) for the SQLite DB.

# ===== Cooldown =============================================================
# Per-player anti-spam cooldown between crate opens. Prevents double-clicks
# from triggering two animations simultaneously.
cooldown:
  open-ms: 500       # Minimum milliseconds between two consecutive opens by the same player.

# ===== Key shop (1.8.1) =====================================================
# /cf shop sells every key with a SHOP obtain-method. false = the command only
# answers "not available" and leaves tab-complete. Per player: crateforge.shop
# (everyone by default).
shop:
  enabled: true

# ===== Broadcast ============================================================
# Server-wide announcement when a player wins a high-rarity prize. Uses the
# `crate.broadcast-win` key from lang/{es,en}.yml as the format.
# ===== Mass open (1.6.0) ====================================================
# Shift + right-click a crate with several keys opens up to `max` at once: no
# animation, one summary in chat, the best prize revealed. Pity and prize limits
# apply to every one. Permission: crateforge.massopen (everyone by default).
mass-open:
  enabled: true
  max: 64
  min-keys: 2

# ===== Left-click preview (1.8.3) ===========================================
# Left-click a placed crate to see its prizes (same menu as /cf preview); the
# block is never broken. Right-click still opens it with a key. Admins
# (crateforge.admin) who sneak keep the old left-click on the block.
left-click-preview:
  enabled: true

broadcast:
  enabled: true            # Toggle the broadcast feature globally.
  min-rarity: RARE         # Only prizes at this rarity or above trigger a broadcast.
                           # Allowed: COMMON | UNCOMMON | RARE | EPIC | LEGENDARY
  skip-crates: []          # Crate ids that never broadcast (e.g. [vote] if vote crates
                           # are opened so often that they would flood the chat).

# ── Daily Bonus ──────────────────────────────────────────────────────────────
# Players can claim one free key every `cooldown-hours` hours via /cf daily.
daily-bonus:
  enabled: true
  key-id: "legendary_key"
  cooldown-hours: 24

# ===== World animations (1.12.0) ============================================
# ROLL3D, ORBIT and METEOR play in the world, over the crate, with display
# entities: everyone around sees the reel spin and the prize rise. Players whose
# client cannot draw them (older than 1.19.4 through ViaVersion, or Bedrock
# through Geyser) get the classic animation below instead, and so does an opening
# while the same crate is already busy with someone else's show.
world-animations:
  enabled: true            # false: every world animation plays the fallback below.
  visibility: proximity    # all | proximity | opener — who else watches the show.
  radius: 24               # Blocks, for `proximity`.
  min-protocol: 762        # Lowest client that sees the world version (762 = 1.19.4).
  fallback: CSGO           # Classic animation for everyone else.

# ===== Holograms ============================================================
# Floating text displayed above placed physical crates (crate name + key hint).
holograms:
  enabled: true            # Show holograms above placed crates.
  height: 1.6              # Blocks above the crate block the text floats at.
  adapter: vanilla         # Backend: vanilla = Paper TextDisplay entities.
                           #          decentholograms = use DecentHolograms (soft-dep).
                           #          cmiholograms = use CMI Holograms module (soft-dep).

# ===== Living crates ========================================================
# A placed crate is not a dead block: an item floats and spins above it, wrapped
# in a particle aura, so players spot a crate across the map. Every crate can
# override the item, the particle and the colour in its own crates/<id>.yml.
ambient:
  enabled: true            # Master switch for the whole living-crate ambience.
  period-ticks: 4          # Ticks between refreshes. Higher = cheaper, choppier aura.
  view-distance: 24        # Blocks. Players farther away get no particles and no display.
  max-rendered: 32         # Safety cap: crates animated per pass, nearest-first by iteration.

  item:
    enabled: true          # The floating, spinning item above the crate.
    material: key          # `key` = the crate's own key item · a material name · `none`.
    height: 1.15           # Blocks above the crate block.
    scale: 0.7             # 1.0 is a full-size item; 0.7 reads well above a chest.
    tilt-degrees: 22       # Keeps flat item sprites (most keys) from turning edge-on and vanishing.
    spin-seconds: 5.0      # Seconds per full turn.
    bob: 0.08              # Vertical float amplitude, in blocks. 0 = perfectly still.
    glow: true             # Full-bright display, so it reads at night and indoors.

  aura:
    enabled: true          # The particle ring orbiting the floating item.
    particle: DUST         # Any Bukkit particle name. DUST is the only one you can tint.
    color: "#FFD54F"       # Dust colour. Give each crate its own in crates/<id>.yml.
    radius: 0.55           # Ring radius, in blocks.
    height: 1.05           # Ring height above the crate block.
    points: 3              # Particles emitted per refresh.
    particleforge-effect: ""   # Optional ParticleForge effect id, replaces the ring above.
                               # Example: crate/legendary-win. Empty = built-in ring.

# ===== Crate bodies (1.10.0) ================================================
# A crate can wear its own resource-pack model over the block (a crate file's
# `body:` section, see crates/legendary.yml). The block underneath stays a
# plain chest and keeps handling the clicks. Only players who can draw the model
# receive it; everyone else just sees the block, never a missing-model cube.
body:
  enabled: true
  require-pack: true       # Show it only to players who have the server's resource pack loaded.
  min-protocol: 769        # Lowest client version (769 = 1.21.4). Needs ViaVersion to tell clients apart;
                           # without it the client is assumed to match the server.
  open-reach: 8.0          # Blocks: an opener within this range sees the body switch to its open model.
  open-max-ticks: 400      # Failsafe: an open body closes by itself after this long.

# ===== Visual hooks =========================================================
# Optional cosmetic integrations. Each is opt-in even when the plugin is
# present, so you can disable a hook without removing the dependency.
visual-hooks:
  items-adder: false       # Resolve `itemsadder:namespace:id` references in prize materials.
  oraxen: false            # Resolve `oraxen:itemId` references in prize materials.
  model-engine: false      # Use ModelEngine for animated crate displays (advanced).

# ===== Economy ==============================================================
# Vault hook for MONEY-type rewards. If disabled or Vault is missing, MONEY
# rewards in crate definitions are silently skipped.
economy:
  enabled: true            # Master switch for Vault-backed money rewards. Requires Vault.

# ===== Telemetry ============================================================
# Anonymous usage stats via bStats. Players themselves can opt out globally
# via plugins/bStats/config.yml — this id is only the project identifier.
bstats-id: 24002

Keep reading