Drop Loot Tables
v1.7.1-1.5.0
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.
- 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.