Skip to content

LootTables

Lemenok edited this page Dec 2, 2025 · 2 revisions

The Loot Tables that Cobblemon Trial Spawners use are the common loot tables that Minecraft uses. This means you can pass the Loot Table from a Minecraft Trial Spawner through to a Cobblemon Trial Spawner, Use a Loot table from either Minecraft or Another mod, or create your own. If you do create your own Loot table, you will use the Location "cobblemontrialsedition" so a custom loot table in a file called "yourcustomloottable.json" would be "cobblemontrialsedition:yourcustomloottable"

If you want to learn how to create a loot table, rather then detail it here, I suggest searching on the internet for "How to create a loot table for minecraft 1.21.1" or using a Datapack Generator.


Here is a example JSON file for a Loot Table:

Click To Expand:
{
  "type": "minecraft:chest",
  "pools": [
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 3.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ],
          "name": "minecraft:bread",
          "weight": 3
        },
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 3.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ],
          "name": "minecraft:ender_pearl",
          "weight": 3
        },
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 3.0,
                "min": 1.0
              },
              "function": "minecraft:set_count"
            }
          ],
          "name": "cobblemon:exp_candy_s",
          "weight": 2
        },
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": 1.0,
              "function": "minecraft:set_count"
            }
          ],
          "name": "cobblemon:rare_candy",
          "weight": 2
        }
      ],
      "rolls": 1.0
    },
    {
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 3.0,
                "min": 2.0
              },
              "function": "minecraft:set_count"
            }
          ],
          "name": "minecraft:blaze_rod",
          "weight": 3
        }
      ],
      "rolls": 1.0
    }
  ]
}

Clone this wiki locally