-
Notifications
You must be signed in to change notification settings - Fork 1
Loot Bundles ‐ 1.20.1
DaFuqs edited this page Jul 17, 2024
·
1 revision
Loot bundles come in all rarities. They can be used by players to get random content of a set loot table in their inventory.
loot_bundle_use.mp4
Tag | NBT Type | Effect |
---|---|---|
LootTable | loot table | The loot table identifier to be used for the players loot. |
LootTableSeed | long | Seed for generating the loot table. 0 or omitted uses a random seed. Setting a seed means that the generated loot will always be the same |
/give @p lootcrates:rare_loot_bag{LootTable: "minecraft:chests/bastion_treasure", display: {Name: '{"text":"Bastion Loot Bag"}'}} 1
{
"type": "minecraft:entity",
"pools": [{
"rolls": 1,
"entries": [{
"type": "minecraft:item",
"name": "lootcrates:common_loot_bag",
"functions": [{
"function": "minecraft:set_nbt",
"tag": "{ LootTable: \"minecraft:chests/bastion_treasure\", display: {Name: '{\"text\":\"Bastion Loot Bag\"}'}}"
}]
}]
}]
}