-
Notifications
You must be signed in to change notification settings - Fork 0
Reward Datapacks
Reward Bag contents use normal Minecraft 1.21.1 loot tables. The datapack does not change rarity chances, pity or anti-farm settings.
- Download the ready-to-edit ZIP
- Open the Datapack repository folder
- Read the published datapack instructions
- Browse the unpacked template
Place the ZIP directly inside:text<world>/datapacks/
Then run:
/reload
/datapack list enabled
data/cobblecoop/loot_table/cobblecoop/rewards/|-- common/basic.json
|-- uncommon/basic.json
|-- rare/basic.json
|-- epic/basic.json
`-- legendary/basic.json
These use the same IDs as CobbleCoop, so the template replaces the five default
basic.json pools.
{
"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 influence from the Player's Minecraft Luck. |
min / max
|
Minimum and maximum item amount. |
rolls |
Number of entries the pool tries to select. |
Any registered modded item can be used when the mod that owns it is installed on the server.
CobbleCoop first selects one JSON file with equal probability. Minecraft then rolls entries and weights inside that selected file.
For example, these files each have a one-in-three selection chance:
common/basic.json
common/berries.json
common/balls.json
An item's weight does not change which JSON file is selected. Keep one
basic.json per rarity when you want every item to share the same weighted
pool.
Use another namespace or file name:
data/myserver/loot_table/cobblecoop/rewards/rare/berries.json
No TOML registration is required. Subfolders below a valid rarity are also
allowed. CobbleCoop rebuilds its in-memory pool list after /reload.
Use the original namespace and exact resource path:
data/cobblecoop/loot_table/cobblecoop/rewards/rare/basic.json
A higher-priority world datapack then replaces only the included Rare pool.
Test one loot table directly:
/loot give @s loot cobblecoop:cobblecoop/rewards/common/basic
Test the complete bag opening process:
/give @s cobblecoop:common_reward_bag
Replace common with another rarity when needed.
- Use
loot_table, singular, for Minecraft 1.21.1. - Use only
common,uncommon,rare,epic, orlegendaryas tier folders. - Keep namespaces and file names lowercase.
- Check commas, brackets and every item ID.
- Confirm the datapack appears in
/datapack list enabled. - Run normal
/reloadand check the server log forLoaded ... automatic reward pool(s).
Use /reload for datapacks. The /cobblecoop reload command only reloads TOML
configuration.
CobbleCoop Wiki
- Home
- Installation
- Configuration
- Handicaps
- Battle Presets
- Rewards
- Reward Datapacks
- Commands and Debug
- Compatibility and Help
Downloads