Starter Pack

Here, take this! It’s a great place to start from. It doesn’t have anything in it yet, but it has a good folder structure to start with for following along with this documentation, as well as a starter pack.mcmeta so you don’t forget that.

dlt_starter.zip

Dropper

In order to add a new dropper that will drop stuff from a loot table, create a new JSON file in the /data/<your addon name here>/drop/dropper/<dropper type> directory of your addon.

{
  "trigger": "droploottables:captured",
  "tables": [
    "dlt_test:captured/ghost_busters"
  ],
  "conditions": [
    {
      "condition": "droploottables:pokemon_matcher",
      "matcher": [
        "types=ghost"
      ]
    },
    {
      "condition": "droploottables:caught_ball",
      "balls": [
        "cobblemon:dusk_ball"
      ]
    },
    {
      "condition": "minecraft:location_check",
      "predicate": {
        "dimension": "minecraft:the_nether"
      }
    }
  ]
}

Properties

trigger

The Dropper Type associated with this dropper.

tables

The Loot Tables to drop from. Use your own, use one from something else, reference them by ID/ResourceLocation.

conditions

Another place to put conditions you would normally put inside a loot table. I figured most times you’d want to have them upfront since we have two layers to this now. They’ll evaluate out the same as they do in the loot tables, and you can use any that you can use in loot tables. You can also keep using them in loot tables if you’d like, or mix and match where you put them.

Optional Properties

drop_target

If you’d like this dropper to drop somewhere other than where the user has configured the drops for this type of dropper (trigger) to drop, you can specify here.

Dropper-Specific Properties

preserve_base_drops

Dropper(s): Defeated, Evolved, Killed