-
Notifications
You must be signed in to change notification settings - Fork 23
Loot & Loot Tables
Loot from raids can be broken up into 2 loot tables.
Each tier has its own specific loot table and is where the main loot comes from. For example, a Tier 5 raid will pull items from the tier_5 loot table.
When creating a raid boss, you have the option to set a specific loot table for the boss which is added onto the tiered loot table. The naming convention and location is up to you, but the official addons for Mega, Legendary and Mythicals are located at "cobblemonraiddens:raid/boss/name".
In addition, you can also define whether this loot table will replace the raid pouch loot entirely by instead defining the loot table as:
{
...
"loot_table": {
"replace": true,
"id": "cobblemonraiddens:raid/boss/name" // or whatever the loot table is named.
}
...
}
The loot table locations can be found here.
data/cobblemonraiddens/loot_table/
└── raid/
├── boss/
│ └── ...
├── tier/
│ ├── tier_one.json
│ ├── tier_two.json
│ ├── tier_three.json
│ ├── tier_four.json
│ ├── tier_five.json
│ ├── tier_six.json
│ └── tier_seven.json
There are three custom loot functions you can use for specific items.
Gem Function Format
{
"type": "minecraft:item",
"functions": [
{
"function": "cobblemonraiddens:gem_type_function"
}
],
"name": "minecraft:air"
}
Tera Shard Function Format
{
"type": "minecraft:item",
"functions": [
{
"function": "cobblemonraiddens:tera_shards_function"
}
],
"name": "minecraft:air"
}
Max Mushroom Function Format
{
"type": "minecraft:item",
"functions": [
{
"function": "cobblemonraiddens:max_mushrooms_function"
}
],
"name": "minecraft:air"
}
When defining loot tables, you can include the cobblemonraiddens:raid_pouch_condition loot condition to the loot pool or loot entry for extra customisation or fine tuning to the raid's feature, tier or type.
Raid pouches can also include additional rewards using the cobblemonraiddens:bonus_loot_condition loot condition, which will only apply if a player fails the catch roll of the raid boss. This is NOT applied when the player misses out due to losing the max_catches roll or failing to meet the damage threshold.
How to add a condition.
{
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [ // condition applied to the entire loot pool
{
"condition": "cobblemonraiddens:raid_pouch_condition",
"feature": "DYNAMAX", // all fields are optional
"tier": "TIER_FIVE",
"type": "FIRE"
},
{
"condition": "cobblemonraiddens:bonus_loot_condition",
"apply": true
}
],
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"count": 1.0,
"function": "minecraft:set_count"
}
],
"conditions": [ // condition applied to the specific loot entry
{
"condition": "cobblemonraiddens:raid_pouch_condition",
"feature": "DYNAMAX",
"tier": "TIER_FIVE",
"type": "FIRE"
}
],
"name": "cobblemon:fire_gem"
}
],
"rolls": 1.0
}
]
}
- Game Mechanics
- Customisation
- For Developers
- Archived