sarhatabaot / TradingCards

Spigot plugin for Trading Cards (previously xPTradingCards)
https://www.spigotmc.org/resources/trading-cards.105709/
MIT License
9 stars 2 forks source link

Per-entity drop pools for specific cards, packs, etc... #85

Open BlackjackMKV opened 2 years ago

BlackjackMKV commented 2 years ago

Is your feature request related to a problem? Please describe. In relation to something I'd asked on the Discord here, it would be super nice if there was a way to set per-mob drop pools. Using the example I gave earlier, something like making it so that you can configure the plugin to have a 99% chance of dropping a zombie card from a zombie, with a 1% chance of dropping a random other card from the pool.

Describe the solution you'd like Ideally, it'd be super awesome if there was a yml for dictating drop pools, likely along the lines of something like this(pseudocode, so will likely need some adjustments I'm sure if not a total rewrite):

Because github hates letting me format things, I've set it up on Pastebin over here.

Describe alternatives you've considered The only way I can see doing this as possible is to use another plugin to add them to the drop pool which, while doable, strikes me a bit as just unnecessary bloat if this feature was to be added. So I thought I'd ask and, if the request was denied, I could then resort to that as a less graceful but still functional solution.

Additional context No real extra context, other than the Discord convo I linked earlier. :)

sarhatabaot commented 2 years ago

I noticed in your example you referenced mythic mobs, this is already possible via an addon. Although it may be outdated, feel free to test it and let me know if it works. You can find the addon here: https://github.com/TreasureIslandMC/TCMythicMobs