Skip to content

Loot Tables

Generated page, edit scripts/gen_schema_pages.py instead.

PKL4MC, Loot table schemas for Minecraft 1.20.1

Usage

amends "@pkl4mc/loot_table.pkl"

Examples

chest

amends "@pkl4mc/loot_table.pkl"

type = "minecraft:chest"
pools {
  new LootPool {
    rolls = 3
    entries {
      new ItemLootEntry { name = "minecraft:diamond"; weight = 5 }
      new ItemLootEntry { name = "minecraft:gold_ingot"; weight = 20 }
      new ItemLootEntry { name = "minecraft:iron_ingot"; weight = 40 }
      new EmptyLootEntry { weight = 35 }
    }
  }
}

pickel_reward

amends "@pkl4mc/loot_table.pkl"

type = "minecraft:gift"
pools {
  new LootPool {
    rolls = 1
    entries {
      new ItemLootEntry {
        name = "minecraft:sea_pickle"
        functions {
          new SetNameLootFunction {
            name {
              ["text"] = "pickel"
              ["italic"] = false
            }
          }
        }
      }
    }
  }
}