Download Loot Casket — Minecraft Mods — MetaMods

Loot Casket

Active

Downloads

0

Last update

2 years ago
Client
Storage
Utils

Loot Casket

Want to add a touch of magic to Minecraft version 1.12.2? Loot Casket offers players and pack developers an unusual mechanics for storing various types of loot in special containers - Small Caskets.

What the mod can do

Main feature - a new Small Casket item that can contain:

  • References to existing loot tables. When activated, the player receives generated content as if from a chest, after which the casket disappears
  • Specific pools from loot tables for precise configuration of dropped items
  • Specific items recorded in NBT format with full preservation of all characteristics

For convenience, the /lcdumpitem command has been added, which shows NBT data of the item in your main hand (requires operator rights).

Practical applications

Modified game version creators can use the casket for:

  • Rewarding players for completing quests with randomized prizes
  • Aesthetically designing loot distribution
  • Easily attaching treasure containers to mobs through compatible mods

What's planned for the future

Planned improvements include:

  • Configuring automatic addition of caskets to mob drops
  • Support for mods that don't work directly with NBT tags

Working examples

Get a casket with specific items:

/give @p lootcasket:small_casket 1 0 { "Items":[{id:"minecraft:gold_ingot",Count:1b},{id:"minecraft:iron_ingot",Count:1b}]}

Or a container with the contents of a mineshaft chest:

/give @p lootcasket:small_casket 1 0 { "LootTable": "minecraft:chests/abandoned_mineshaft", "Rarity" : "epic" }

Available NBT parameters:

  • LootTable: reference to a loot table in "namespace:path" format
  • Pool (optional): specifies a specific pool within the table
  • Rolls (optional): number of content generation iterations
  • Items: NBT data of items in a list
  • Rarity (optional): rarity affecting the name color

The LootTable and Items tags are mutually incompatible.

Project members
windanesz

windanesz

Created: 21 Nov 2022

ID: 97581