All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Cobblemon Drop Loot Tables

Cobblemon Drop Loot Tables

by tmetcalfe89 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Drop Loot Tables

v1.8.1-1.9

Modrinth

CurseForge

GitHub

What if…

…Cobblemon used good ol’ vanilla Minecraft loot tables?

Features

  • Adds the ability to create loot tables for various events in the Cobblemon mod:
    • When a Pokémon’s captured.
    • When a Pokémon defeats another in a Pokémon battle.
    • When a Pokémon evolves.
    • When a player hatches a Pokémon from an egg.
    • When a Pokémon is killed in the world.
    • When a player releases a Pokémon from their PC.
    • When a Pokémon is resurrected using the fossil revival machine.
    • When a player chooses a starter Pokémon (great for starter-based starter kits!).
    • When a Pokémon ticks in the world (optimized to be cheap).
    • When a Pokémon participates in a battle on the victors’ side.
    • When a Pokémon levels up.
  • Adds a bunch of Cobblemon-relevant conditions:
    • Match a Pokémon or any Pokémon on a team, leveraging the power of PokemonMatchers from Tim Core.
    • Match the PokeBall a Pokémon’s caught with.
    • Match a player’s Pokedex knowledge on a Pokémon.
    • Match a player’s current Counter values.
  • Drop stuff where you want stuff to drop, per-dropper type, with an override per dropper.
    • Drop it in the player’s inventory.
    • Drop it in the player’s ender storage.
    • Drop it next to the Pokémon entity.
    • Give it to the Pokémon as a held item.
    • Replace the Pokémon’s held item.
  • Completely customizable with datapacks.
  • Easy to add new parts for droppers, event handlers, conditions, and drop targets in your own mod.
  • A new secondary layer between the event and the loot table makes the system much more malleable, replacing the old /species/form pattern.
  • Preserves Cobblemon-given drops if instructed to for things Cobblemon already drops for.

Dependencies

Testing

Check out the demo pack below. It has the following basic examples:

  • Capturing a ghost-type Pokémon in the nether with a Dusk Ball gives a ghast tear directly to the capturing player’s inventory.
  • Defeating a Kingambit in a Pokémon battle with either a Bisharp or Pawniard drops a stick named “Leader Crest” to the Bisharp/Pawniard owner’s inventory.
  • Evolving an Eevee gives a type gem of the same type as the evolution (Electric Gem for Jolteon, Water Gem for Vaporeon, etc).
  • Hatching a Milcery gives a random sweet. You’ll need a hatching mod, such as Cobbreeding as breeding’s not a thing yet in base mod.
  • A Pidgey dying while it’s on fire will drop cooked chicken.
  • Leveling up any Pokémon to level 50 will give the Pokémon’s owner a Fresh Start Mochi.
  • Releasing a Pokemon below level 50 will grant an Exp. Candy S, between 51 and 75 an Exp. Candy M, and above 75 an Exp. Candy L.
  • Resurrecting a Pokémon using the fossil revival machine has a chance to give another fossil of that generation.
  • Picking a starter gives the player a starter kit matching the color of the type of the Pokémon picked.
  • The Pidgey line will drop a feather or a random Pokémon feather every 20 ticks and emit a wing flapping sound.
  • A Shuckle participating in battle on the winning side while holding a berry will turn that berry into berry juice.

Demo Pack

Player Help

How it works

Config Options

Addon Dev Help

Data Pack Help

Making an Addon

Mod Dev Help

Make your own dropper type

Make your own condition

Register a new drop target

Parts

Drop Target Types

Dropper Type

Drop Conditions

Known Issues

  • ≤v1.7.3-1.9.0 had an issue with trying to run the tick dropper too early and getting a null for its own ID. Yeah, doesn’t make sense to me either. ≥v1.7.3-1.9.1 fixes this by allowing for the ID to be null, and safely failing by not finding any droppers if that’s the case.

Roadmap

If you’d like to keep up with the work being done on the mod, please join the Discord and subscribe to notifications on the channel for this content. You can also keep track of the to do list available on the mod’s main page.

Feedback

If you have any questions or requests concerning the mod, or just want to drop by and say hi, visit us over at the Discord!

Support

If I've made something you enjoyed or helped you make something, please consider dropping a tip in the cup and mention how I helped if you'd like!

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Fabric
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.21.1
Fabric
1d ago 1
1.20.1
Fabric
1d ago 1
1.20.1
Fabric
1d ago 1
1.20.1
Fabric
1d ago 1
1.20.1
Fabric
1d ago 1
1.20.1
Fabric
1d ago 1
1.20.1
Fabric
1d ago 1
1.20.1
Fabric
1d ago 1
  • Fixed the evolution and Pokémon death base-drop mixins not applying correctly in packaged builds.
  • Fixed the evolution and Pokémon death base-drop mixins not applying correctly in packaged builds.
  • Fixed defeated Pokémon leaving stale base-drop data behind.
  • More directly determines why something's dropping instead of guessing after.
  • Fixed up sound playing for Ticked dropper.
  • Brought Killed dropper up to parity with vanilla context params and cleaned up references.
  • A breaking change was introduced.** Make sure to update your Pasture Collector and other dependents when a compatible version is released.

  • Pulled the mod icon in.
  • Marked Counter as an optional dependency.

  • Added redundant dev-only access transformer mimicking Cobblemon's, which should fix dev environment issues with NF builds.
  • Fixed defeated Pokémon leaving stale base-drop data behind.
  • More directly determines why something's dropping instead of guessing after.
  • Fixed up sound playing for Ticked dropper.
  • Brought Killed dropper up to parity with vanilla context params and cleaned up references.
  • A breaking change was introduced.** Make sure to update your Pasture Collector and other dependents when a compatible version is released.

  • Pulled the mod icon in.
  • Marked Counter as an optional dependency.

  • Added redundant dev-only access transformer mimicking Cobblemon's, which should fix dev environment issues with NF builds.
  • Port to 1.8.1.
  • Refactored how loot conditions are loaded, hopefully reviving NeoForge. A little annoying that forge has the timing odd, but I'll rework that in TC2, probably.
  • Migrated to new Cobblemon logic regarding parsing components later.
  • Added the dex knowledge codec because Cobblemon removed it lol.
  • Port to 1.8.1.
  • Refactored how loot conditions are loaded, hopefully reviving NeoForge. A little annoying that forge has the timing odd, but I'll rework that in TC2, probably.
  • Migrated to new Cobblemon logic regarding parsing components later.
  • Added the dex knowledge codec because Cobblemon removed it lol.
v1.7.3-1.9.1
  • Fixed a random crash issue with tick dropper deciding it didn't need an ID.
  • Added items dropped to the clean up method.
  • Added items dropped to the clean up method.
v1.7.3-1.8.0
  • Defeated dropper can now use is_wild, which fixes my hubris in believing the pvw condition was enough for that.
  • Legacy conditions from previous versions of the mod are now available thanks to martbarc.
  • Legacy mode for paths is now available thanks to martbarc.
  • We now use some better codec pieces under the hood.
v1.7.3-1.8.0
  • Defeated dropper can now use is_wild, which fixes my hubris in believing the pvw condition was enough for that.
  • Legacy conditions from previous versions of the mod are now available thanks to martbarc.
  • Legacy mode for paths is now available thanks to martbarc.
  • We now use some better codec pieces under the hood.
  • Bumpity to 1.7.2.
  • Added legacy moves and ability condition. Courtesy of martbarc on Github.
  • Fixed base mod drop preservation system.
  • Added Counter conditions.
  • Added Counter conditions.
  • Ported to Cobblemon 1.7.1.
  • Added a new in-between dropper layer that allows you to define which loot tables should be rolled on for which situations. This will require refactoring old packs.
  • Moved a ton of conditions over to Tim Core's PokemonMatcher as it's overpowered and can handle all of them. This will require refactoring old packs.
  • Ported to Cobblemon 1.7.1.
  • Added a new in-between dropper layer that allows you to define which loot tables should be rolled on for which situations. This will require refactoring old packs.
  • Moved a ton of conditions over to Tim Core's PokemonMatcher as it's overpowered and can handle all of them. This will require refactoring old packs.
Accidentally packaged the test data in the last version. No more of my test diamonds for you :<
Cobblemon Drop Loot Tables Icon
Download Cobblemon Drop Loot Tables
Select game version
Select platform