Download SeriousCreeper's Loot Chests — Minecraft Mods — MetaMods

SeriousCreeper's Loot Chests

Active

Downloads

0

Last update

6 years ago
Client
Adventure

SeriousCreeper's Loot Chests

This mod introduces four unique chests into the game that, when opened, provide items according to predefined loot tables. By default, these chests are not available in normal gameplay and can only be obtained through creative mode.

How to Obtain Chests in Game

To make the chests appear in your world, you'll need to use additional mods that can add them to mob drops, place them in random chests, or make them quest rewards.

Content Configuration

To create your own loot sets, you need to override the "lootchests:serious_loot" table. It contains four item categories:

  • Common
  • Uncommon
  • Rare
  • Mythic

Configuration Methods

You can create your own loot table file in the world save folder or use specialized mods for loot editing. One recommended option is LootTweaker.

Vanilla Example:

{
  "pools": [
    {
      "name": "common",
      "rolls": {
        "min": 1,
        "max": 3
      },
      "entries": [
        {
          "type": "item",
          "name": "minecraft:stone",
          "weight": 1
        }
      ]
    },
    {
      "name": "uncommon",
      "rolls": {
        "min": 1,
        "max": 3
      },
      "entries": [
        {
          "type": "item",
          "name": "minecraft:apple",
          "weight": 1
        }
      ]
    },
    {
      "name": "rare",
      "rolls": {
        "min": 1,
        "max": 3
      },
      "entries": [
        {
          "type": "item",
          "name": "minecraft:diamond",
          "weight": 1
        }
      ]
    },
    {
      "name": "mythic",
      "rolls": {
        "min": 1,
        "max": 3
      },
      "entries": [
        {
          "type": "item",
          "name": "minecraft:nether_star",
          "weight": 1
        }
      ]
    }
  ]
}

LootTweaker Example:

import loottweaker.vanilla.loot.LootTables;
import loottweaker.vanilla.loot.LootTable;
import loottweaker.vanilla.loot.LootPool;
import loottweaker.vanilla.loot.Conditions;
import loottweaker.vanilla.loot.Functions;

val table = LootTables.getTable("lootchests:serious_loot");

// Get existing pools
val common = table.getPool("common"); 
val uncommon = table.getPool("uncommon");
val rare = table.getPool("rare");
val mythic = table.getPool("mythic");

// Set roll amounts. Default: minRoll = 1, maxRoll = 3
common.setRolls(3, 10);

// Add items to pools
common.addItemEntryHelper(<minecraft:stone>  16, 50, 1, [Functions.setCount(8, 16)], []);
uncommon.addItemEntryHelper(<minecraft:cooked_chicken>  4, 50, 1, [], []);
rare.addItemEntryHelper(<minecraft:diamond> * 4, 20, 1, [], []);
mythic.addItemEntryHelper(<minecraft:nether_star>, 1, 1, [], []);
Project members
SeriousCreeper

SeriousCreeper

Created: 4 Mar 2019

ID: 38170