SupplyCrates
SpigotMCModrinthAuto-restock black shulkers on first open with weighted loot tables.
9 downloads
latest v1.0 SpigotMC
SupplyCrates
Auto-restock black shulker boxes on first open using a weighted loot table. Simple, reliable, fast.
Features
- First-open restock for black shulkers
- Weighted loot table
- Fixed or "min-max" amounts with global defaults
- Optional per-entry extra chance (%)
- NBT and namespaced IDs (e.g. minecraft:diamond_sword{Unbreakable:1b})
- Optional no-duplicate per chest
- Performance-oriented implementation (no debug spam)
Requirements
- Paper/Spigot 1.20+
- Java 17+
Installation
- Drop the JAR into plugins/.
- Start the server once to generate config.yml.
- Edit the config and restart.
Quick Configuration (excerpt)
Code (YAML):
loot-settings:
min-items : 1
max-items : 5
avoid-duplicates : true
default-amount-min : 1
default-amount-max : 1
# Three ways to define an entry:
# 1) number -> weight
# 2) "min-max"-> amount; weight = 1.0
# 3) section -> { weight: <double>, amount: <int|min-max> }
loots:
minecraft:stone : 5.0
minecraft:stick : "2-4"
minecraft:oak_log:
weight : 2.0
amount : 4-8
minecraft:diamond_sword:
weight : 0.25
amount : 1
# Optional overrides (take precedence over "loots")
amounts :
# minecraft:stick: 3
# minecraft:stone:
# min: 8
# max: 16
# Optional extra chance (%) after the weighted pick
# accepts: 25 | "50%" | { value: 5 }
chances :
# minecraft:diamond_sword: 5
# minecraft:stick: "50%"
- /restockshulkers — restock all loaded black shulkers according to the config
- Permission: hg.restock (default: OP)
Source & Issues
https://github.com/zefarie/SupplyCrates
keywords: shulker restock, weighted loot, first open, loot tables, min-max amounts, chance, NBT, namespaced ids, anti duplicate, paper 1.20, spigot 1.20
Comments 0
No comments yet. Be the first to share your thoughts.