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>
176 lines
4.0 KiB
JSON
176 lines
4.0 KiB
JSON
{
|
|
"type": "minecraft:chest",
|
|
"pools": [
|
|
{
|
|
"bonus_rolls": 0.0,
|
|
"entries": [
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"decoration": "minecraft:red_x",
|
|
"function": "minecraft:exploration_map",
|
|
"skip_existing_chunks": false,
|
|
"zoom": 1
|
|
},
|
|
{
|
|
"function": "minecraft:set_name",
|
|
"name": {
|
|
"translate": "filled_map.buried_treasure"
|
|
},
|
|
"target": "item_name"
|
|
}
|
|
],
|
|
"name": "minecraft:map"
|
|
}
|
|
],
|
|
"rolls": 1.0
|
|
},
|
|
{
|
|
"bonus_rolls": 0.0,
|
|
"entries": [
|
|
{
|
|
"type": "minecraft:item",
|
|
"name": "minecraft:compass"
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"name": "minecraft:map"
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"name": "minecraft:clock"
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 10.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:paper",
|
|
"weight": 20
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 5.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:feather",
|
|
"weight": 10
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": {
|
|
"type": "minecraft:uniform",
|
|
"max": 5.0,
|
|
"min": 1.0
|
|
},
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:book",
|
|
"weight": 5
|
|
}
|
|
],
|
|
"rolls": 3.0
|
|
},
|
|
{
|
|
"bonus_rolls": 0.0,
|
|
"entries": [
|
|
{
|
|
"type": "minecraft:empty",
|
|
"weight": 5
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": 2.0,
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:coast_armor_trim_smithing_template"
|
|
}
|
|
],
|
|
"rolls": 1.0
|
|
},
|
|
{
|
|
"bonus_rolls": 0.0,
|
|
"entries": [
|
|
{
|
|
"type": "minecraft:empty",
|
|
"weight": 148
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": 1.0,
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:copper_nautilus_armor",
|
|
"weight": 20
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": 1.0,
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:iron_nautilus_armor",
|
|
"weight": 10
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": 1.0,
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:golden_nautilus_armor",
|
|
"weight": 5
|
|
},
|
|
{
|
|
"type": "minecraft:item",
|
|
"functions": [
|
|
{
|
|
"add": false,
|
|
"count": 1.0,
|
|
"function": "minecraft:set_count"
|
|
}
|
|
],
|
|
"name": "minecraft:diamond_nautilus_armor",
|
|
"weight": 2
|
|
}
|
|
],
|
|
"rolls": 1.0
|
|
}
|
|
],
|
|
"random_sequence": "minecraft:chests/shipwreck_map"
|
|
} |