Home›Java›Mods›Loot Casket
Loot Casket
ModsJava

Loot Casket

Minecraft Java mod. Downloads from the MC Java Mods app on Android.

by windanesz · on CurseForge

A tiny mod (for pack makers) to allow creating loot caskets which can contain a loot table, loot pool or a single item

⬇ Download on CurseForge

For the latest news, updates and discussion about the mod, join my official Discord server Loot Casket — Minecraft Java mod, screenshot 1!

 

Loot Casket logo

 

Loot Casket

 

A 1.12.2 Minecraft mod, adding the Small Casket item into the game which can be "filled" with references to loot tables.

 

Features

 

Adds a single item - the Small Casket. The casket's content can be defined using NBT tags, and it can contain the following:

  A) A reference to an existing loot table. When a player opens the casket, they get a random roll of that loot table (as if they opened a chest), then the casket disappears

  B) A reference to an existing loot table AND a specific pool of that table. When a player opens the casket, they get a random roll of that loot table's specified pool (as if they opened a chest), then the casket disappears

  C) An NBT-serialized ItemStack - basically any item saved as an nbt tag. When a player opens the casket, they get the specific item

 

This mod also adds an /lcdumpitem command which can help you to get the NBT format of an item(stack) in your mainhand. The command needs op privileges.

 

Example Use Cases

 

 

Planned features

 

 

Example Caskets

 

Using the /give command, you receive a Casket containing an iron ingot and a gold ingot

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

 

Using this /give command, you receive a Casket containing the content of a mineshaft chest. It also has an Epic rarity tag so it has an epic purple colored name:
/give @p lootcasket:small_casket 1 0 { "LootTable": "minecraft:chests/abandoned_mineshaft", "Rarity" : "epic" }

 

Supported Tags

 

LootTable: reference to an already existing loottable. e.g. "ebwizardry:chests/shrine", "minecraft:chests/abandoned_mineshaft", "minecraft:entities/zombie"

Pool: (Optional) A pool's name in a LootTable. When specified, only loot from the specific pool will be dropped from the casket

Rolls: (Optional) The casket contains the specified loottable's loot this many times. Each roll is generated from scratch, as if you would open multiple chests with the same loottable.

Items: A list of NBT-serialized itemstacks (an item with its own nbt, damage, etc. tags). You can use the /lcdumpitem command to get the NBT format of the item you are holding. This should be in an "Items":[{},{},{},...] format, with each {} containing the ItemStack's NBT. Because this is always a list, you need the wrapping [] even if you are specifying a single stack!

Rarity: (Optional) The rarity of this Loot Casket. By default, it can be common, uncommon, rare or epic, but there are mods registering more. Any EnumRarity should work.

 

The LootTable (with Rolls, Pools) and Items tags are mutually exclusive.

 

 

 

 

 Looking for a server to play with your friends?

Loot Casket — Minecraft Java mod, screenshot 2

 

Permissions

You are permitted to use this mod in any mod pack, just make sure you provide a link to this page in your credits. Redistribution in public hosting is not allowed.

 

Issues

If you encounter any issues or problems, you can report them in the Github issue tracker, or more preferably in discord if you want a quicker way to discuss.

 

 

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more