Skip to content

Reward Datapacks

fantastruco edited this page Aug 15, 2026 · 3 revisions

Reward Datapacks

Reward Bag contents use normal Minecraft 1.21.1 loot tables.

Download

Place the ZIP directly inside:

<world>/datapacks/

Then run:

/reload
/datapack list enabled

Files

data/cobblecoop/loot_table/cobblecoop/rewards/
|-- common/basic.json
|-- uncommon/basic.json
|-- rare/basic.json
|-- epic/basic.json
`-- legendary/basic.json

The template uses the same IDs as CobbleCoop, so these files replace the five default pools.

Edit an item

{
  "type": "minecraft:item",
  "name": "minecraft:diamond",
  "weight": 5,
  "quality": 2,
  "functions": [
    {
      "function": "minecraft:set_count",
      "count": {
        "min": 1,
        "max": 3
      }
    }
  ]
}
Value Meaning
name Complete registered item ID.
weight Relative chance inside this JSON pool.
quality Optional Minecraft Luck influence.
min / max Item amount range.
rolls Number of entries the pool tries to select.

Any registered modded item can be used when its owning mod is installed.

Add another pool

Use another namespace or file name:

data/myserver/loot_table/cobblecoop/rewards/rare/berries.json

CobbleCoop discovers it automatically after /reload. If a tier has three JSON files, each file has a one-in-three chance of being selected. Item weight values do not change the chance of selecting a different file.

Test

/loot give @s loot cobblecoop:cobblecoop/rewards/common/basic
/give @s cobblecoop:common_reward_bag

Use loot_table, singular. Use normal /reload for datapacks. The /cobblecoop reload command only reloads TOML configuration.

Clone this wiki locally