mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
* feat: add vanilla chest loot table json files * feat: codegen and chest loot logic Co-authored-by: Copilot <copilot@github.com> * fix: monster_room loot chests * fix: nether_fortress loot chests * fix: shuffle item stacks and fmt/clippy Co-authored-by: Copilot <copilot@github.com> --------- Signed-off-by: Alexander Medvedev <lilalexmed@proton.me> Co-authored-by: Copilot <copilot@github.com> Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
296 lines
7.0 KiB
JSON
296 lines
7.0 KiB
JSON
{
|
|
"type": "minecraft:chest",
|
|
"pools": [
|
|
{
|
|
"bonus_rolls": 0.0,
|
|
"entries": [
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 3.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:diamond",
|
|
"weight": 5
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 5.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:iron_ingot",
|
|
"weight": 15
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 7.0,
|
|
"min": 2.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:gold_ingot",
|
|
"weight": 15
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 3.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:emerald",
|
|
"weight": 15
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 6.0,
|
|
"min": 4.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:bone",
|
|
"weight": 25
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 3.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:spider_eye",
|
|
"weight": 25
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 7.0,
|
|
"min": 3.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:rotten_flesh",
|
|
"weight": 25
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 5.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:leather",
|
|
"weight": 20
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"name": "minecraft:copper_horse_armor",
|
|
"weight": 15
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"name": "minecraft:iron_horse_armor",
|
|
"weight": 15
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"name": "minecraft:golden_horse_armor",
|
|
"weight": 10
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"name": "minecraft:diamond_horse_armor",
|
|
"weight": 5
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"function": "minecraft:enchant_randomly",
|
|
"options": "#minecraft:on_random_loot"
|
|
}
|
|
],
|
|
"name": "minecraft:book",
|
|
"weight": 20
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"name": "minecraft:golden_apple",
|
|
"weight": 20
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"name": "minecraft:enchanted_golden_apple",
|
|
"weight": 2
|
|
},
|
|
{
|
|
"type": "minecraft:empty",
|
|
"weight": 15
|
|
}
|
|
],
|
|
"rolls": {
|
|
"type": "minecraft:uniform",
|
|
"max": 4.0,
|
|
"min": 2.0
|
|
}
|
|
},
|
|
{
|
|
"bonus_rolls": 0.0,
|
|
"entries": [
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 8.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:bone",
|
|
"weight": 10
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 8.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:gunpowder",
|
|
"weight": 10
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 8.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:rotten_flesh",
|
|
"weight": 10
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 8.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:string",
|
|
"weight": 10
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 8.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:sand",
|
|
"weight": 10
|
|
}
|
|
],
|
|
"rolls": 4.0
|
|
},
|
|
{
|
|
"bonus_rolls": 0.0,
|
|
"entries": [
|
|
{
|
|
"type": "minecraft:empty",
|
|
"weight": 6
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": 2.0,
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:dune_armor_trim_smithing_template"
|
|
}
|
|
],
|
|
"rolls": 1.0
|
|
}
|
|
],
|
|
"random_sequence": "minecraft:chests/desert_pyramid"
|
|
} |