SupplyCrates icon

SupplyCrates -----

Auto-restock black shulkers on first open with weighted loot tables.



How it works
  • On first interaction, a black shulker is filled via its snapshot inventory, then marked as "filled" using the PDC key hg_filled.
  • The command scans loaded chunks and applies the same logic to each black shulker.
  • Only loaded blocks are affected; load target areas before running a global restock.

• Keep weights simple (1, 2, 5, 10) and adjust after playtesting.
• Use chances to make specific entries rarer without changing their relative weights.

Config reference

loot-settings
  • min-items, max-items — number of items per chest (inclusive range)
  • avoid-duplicates — prevent the same loot ID from appearing twice in one chest
  • default-amount-min, default-amount-max — fallback stack sizes

loots — define entries using one of:
  • <id>: <weight>
  • <id>: "min-max" (amount range, implicit weight = 1.0)

  • Code (YAML):

    <id>
    :
      weight
    : <double>
      amount
    : <int | "min-max" >

amounts — optional overrides (take precedence over loots)
Code (YAML):

amounts
:
  minecraft:stick
: 3
  minecraft:stone
:
    min
: 8
    max
: 16
 
chances — optional per-entry chance (%) applied after the weighted pick
Code (YAML):

chances
:
  minecraft:diamond_sword
: 5
  minecraft:stick
: "50%"
  some:id
:
    value
: 25
 
IDs and NBT
  • Accepts Bukkit names (e.g., stone) and namespaced IDs (e.g., minecraft:stone).
  • Supports NBT, e.g. minecraft:potion{Potion:"minecraft:healing"} or minecraft:diamond_sword{Unbreakable:1b}.

Troubleshooting
  • Nothing happens on open — ensure the box is black; other colors are ignored.
  • Boxes not affected by the command — load the area (the plugin processes loaded chunks only).
  • Item not recognized — verify the ID/namespace and NBT syntax.

Roadmap
  • Multiple crate types (vanilla + modded), each with its own loot table.
  • Root command /crates (subcommands: restock, preview, reload).
  • Preview GUI and basic tests.
Resource Information
Author:
----------
Total Downloads: 2
First Release: Sep 27, 2025
Last Update: Sep 27, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings