#How do I trigger the deposition of an item into someone's inventory once certain conditions are met?

1 messages · Page 1 of 1 (latest)

median rock
#

I'm trying to create a Minecraft version of Greed Island from the show Hunter x Hunter, and I need to learn a little bit about how to trigger the deposition of an item into someone's inventory as soon as certain conditions are met.
Example, a custom object "Playing card" being deposited into someone's inventory after they kill 100 creepers or something like that. If anyone is interested, I'd love some long-term help on this project and would love a work partner!

median rock
#

Also if this question doesn't make any sense, If anyone could point me towards a youtube series or something that could help that would be fantastic :)

sick phoenix
#

You can use an invisible advancement for this. Here is a handy generator https://misode.github.io/advancement/

The advancement will detect when the conditions are met (this can be through a predicate within the advancement) and then reward all the rewards that are specified. You can add your loot table to this reward so the player will receive said item.

median rock
#

Thank you so so much!

quaint verge
#

Track creeper count w/ advancement then use a give command