Hi, and thanks for taking the time to review this.
I am working on my first Minecraft mod for 1.19.2. The mod is simple, adding several "coin" items to the game and including these coins as part of mob drops. I'm using this to better understand how to create mods, and I've become stuck on an issue for a few days.
The mod installs with no errors. It works, in that the LivingDrops event callback will drop an additional vanilla item when I code it to do so. But when I try to drop one of my added coin items, no coins drop.
CODE HERE: https://goonlinetools.com/snapshot/code/#onzeadw2yq9c8mll8s9uw
I've read everything I can, looked at a few other similar mods, Googled as best as I can, and I can't figure out why my custom item isn't dropping. I'm not sure if I'm incorrectly initializing the coin items, or incorrectly referencing them in the event handler, or if there is another problem somewhere I just am not seeing.
Would someone please review these two snippets and let me know if there is something glaringly obvious I'm overlooking?
Thanks!