Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/windanesz/lootcasket
https://github.com/windanesz/lootcasket
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/windanesz/lootcasket
- Owner: WinDanesz
- License: gpl-3.0
- Created: 2022-11-20T19:18:18.000Z (almost 2 years ago)
- Default Branch: 1.12.2
- Last Pushed: 2022-11-21T21:36:12.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T14:48:45.429Z (over 1 year ago)
- Language: Java
- Size: 96.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Loot Casket [![Build Mod](https://github.com/WinDanesz/LootCasket/actions/workflows/gradle.yml/badge.svg)](https://github.com/WinDanesz/LootCasket/actions/workflows/gradle.yml) [![Curseforge](http://cf.way2muchnoise.eu/full_loot-casket_downloads.svg)](https://www.curseforge.com/minecraft/mc-mods/loot-casket) [![Curseforge](http://cf.way2muchnoise.eu/versions/608287.svg)](http://www.curseforge.com/minecraft/mc-mods/loot-casket/files) [![Discord](https://img.shields.io/discord/544897694448091146?color=7289DA&label=Discord)](https://discord.gg/wuSsgKwAKv)
Loot Casket is a 1.12.2 Minecraft mod, adding the Small Casket item into the game.
**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
**Example Use Cases**
- Pack makers can give quest rewards wrapped in caskets - just for the looks of it, or to give random rewards perhaps
- Easily reference loot tables and attach them to entities as drops, there are mods for attaching items to entities as loot.
- Etc..
- Got an idea? Tell me in the comment section!**Planned features**
- Config option to attach a casket to entities as loot
- Config option to define custom caskets for mods that do not support nbt tags for their loot (e.g. Infernal Mobs)
**Example Casket**
Using the give command, this casket would give you the content of a mineshaft chest:
`/give @p loot-casket:small_casket 1 0 { "LootTable": "minecraft:chests/abandoned_mineshaft", "Rarity" : "epic" }`