-
-
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 | |
} | |
} | |
] | |
} | |
] | |
} |
Needs more things in it. Saddle and horse armor sounds a bit off for End City but i think they are avalible in all chests.
enchant_with_levels is a rather long function name,wouldn't something like enchant_lvl be better?
How will this interact with PRNG seeds? Today world seeds control the terrain/dungeons/loot chests/etc, which is good, and I presume this will not change by default. But I wonder if there is a way to interact with that, or how it may interact with future 'luck potion' features, etc. Overall my main concern is that 'determinism' for seed/speedruns/etc can be maintained, and so I'm just curious about deeper visibility into how this interacts with random number seeding.
@Deukhoofd: This function name is good because it's expressive. You'll most likely work with a generator anyway.
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.
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...
@Arcensoth The first time you open them. https://twitter.com/Dinnerbone/status/656460301571858432
@madisotenurm Thanks! That's great! Exactly what I was hoping for.
Looks fancy! Really like the way you are going with that