crate maker banner
crate maker icon

crate maker

Create server-side mod with King Crate, Knight Crate, Vote Crate; uncraftable, placeable by admins anywhere; loot contents and drop chances configurable via...

10Free
fabricServer1.21.1mod

Crate Maker adds three admin-only crates (King, Knight, Vote) for Fabric 1.21.1 servers. Crates are uncraftable blocks that can be placed only by operators and consumed when opened, granting configured loot.

Features and usage:

  • Crates: King, Knight, Vote. Right-clicking a placed crate rolls its loot, delivers items to the player (drops excess nearby), and removes the crate block.
  • Admin placement: Block items refuse placement unless the player has operator permission level 2 or higher.
  • Commands (ops only): /cratemaker give <crate> [player], /cratemaker reload, /cratemaker info <crate>.
  • Configurable loot: The mod writes config/cratemaker/config.json on first run. Each crate defines roll count and weighted entries (item, min, max, weight). Invalid or missing entries fall back to built-in defaults; /cratemaker reload re-reads the file.

Implementation notes:

  • Loot is generated server-side from the config using weighted picks; counts are clamped to valid ranges and unknown item IDs are skipped with warnings.
  • Both hand and item interactions are handled to ensure crates open regardless of held item.
  • Simple block/item models reference vanilla textures (gold/iron/emerald blocks) so no custom assets are required client-side.

Known limitations / suggestions:

  • Players need a way to obtain crates from admins (commands provided); no crafting or creative tab entry is added.
  • Clients without the mod will see the crates as unknown blocks; distribute the mod or a matching resource pack to players if needed.