Skip to content

Instantly share code, notes, and snippets.

@Dinnerbone
Created October 20, 2015 13:15
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dinnerbone/e1417b4372d8e05c8541 to your computer and use it in GitHub Desktop.
Save Dinnerbone/e1417b4372d8e05c8541 to your computer and use it in GitHub Desktop.
{
"rolls": {
"min": 2,
"max": 6
},
"items": [
{
"item": "minecraft:diamond",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 2,
"max": 7
}
}
]
},
{
"item": "minecraft:iron_ingot",
"weight": 10,
"functions": [
{
"function": "set_count",
"count": {
"min": 4,
"max": 8
}
}
]
},
{
"item": "minecraft:gold_ingot",
"weight": 15,
"functions": [
{
"function": "set_count",
"count": {
"min": 2,
"max": 7
}
}
]
},
{
"item": "minecraft:emerald",
"weight": 2,
"functions": [
{
"function": "set_count",
"count": {
"min": 2,
"max": 6
}
}
]
},
{
"item": "minecraft:beetroot_seeds",
"weight": 5,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 10
}
}
]
},
{
"item": "minecraft:saddle",
"weight": 3
},
{
"item": "minecraft:iron_horse_armor",
"weight": 1
},
{
"item": "minecraft:golden_horse_armor",
"weight": 1
},
{
"item": "minecraft:diamond_horse_armor",
"weight": 1
},
{
"item": "minecraft:diamond_sword",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:diamond_boots",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:diamond_chestplate",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:diamond_leggings",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:diamond_helmet",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:diamond_pickaxe",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:diamond_shovel",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:iron_sword",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:iron_boots",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:iron_chestplate",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:iron_leggings",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:iron_helmet",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:iron_pickaxe",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
},
{
"item": "minecraft:iron_shovel",
"weight": 3,
"functions": [
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 20,
"max": 39
}
}
]
}
]
}
@tuftkyle
Copy link

I wish enchanted books found their way into these chests too. That mending enchant isn't all that useful unless we find a book with it.

@Arcensoth
Copy link

I'm wondering when the loot tables are invoked for chests? The first time you open them? When they are setblock'd in? I'm assuming it can't be during generation, because that wouldn't work for custom maps...

@Madis0
Copy link

Madis0 commented Oct 21, 2015

@Arcensoth
Copy link

@madisotenurm Thanks! That's great! Exactly what I was hoping for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment