generated from CottonMC/FabricStarter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,36 @@ | ||
<img src="icon.png" align="right" width="180px"/> | ||
|
||
# Fabric Starter | ||
# Obligatory Loot Bag Mod | ||
|
||
|
||
[>> Downloads <<](https://github.com/CottonMC/FabricStarter/releases) | ||
[>> Downloads <<](https://github.com/AllOfFabric/OLBM/releases) | ||
|
||
*Get set up!* | ||
|
||
**This mod is open source and under a permissive license.** As such, it can be included in any modpack on any platform without prior permission. We appreciate hearing about people using our mods, but you do not need to ask to use them. See the [LICENSE file](LICENSE) for more details. | ||
|
||
This is a template mod for creating Fabric projects. I'll be adding to it over time. Currently, it comes with a build.gradle set up to provide access to Cotton's maven and publish to Artifactory. | ||
OLBM adds loot bags created through static data and driven by loot tables for pack devs to add into their modpacks. | ||
|
||
## JSON format | ||
|
||
Loot bags are defined in `.minecraft/config/olbm.json5` file, or in any static data directory as `olbm.json5`. A typical file should look like this: | ||
```JSON | ||
{ | ||
"bags": { | ||
"olbm:test_bag": { | ||
"loot": "minecraft:chests/simple_dungeon", | ||
"color": "#FF7253", | ||
"rarity": "epic", | ||
"glint": true | ||
}, | ||
} | ||
} | ||
``` | ||
The JSON should have one primary object, named `bags`, which all bags are defined in. Each bag should be an object, and its in-game ID will be defined by its key in the `bags` object. | ||
|
||
Each bag configuration can store the following properties: | ||
- `"loot"` - The loot table this bag will roll from when opened. Required | ||
- `"color"` - The color of the bag item. Required. | ||
- `"rarity"` - The rarity of the bag item (determines the item's name color). Optional; defaults to `"common"`. | ||
- `"glint"` - Whether the item should have an enchantment glint. Optional; defaults to `false`. | ||
- `"make_item"` - Whether an item should be created by OLBM for this loot bag. Optional; defaults to `true`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.