Jump to content

MikeD

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by MikeD

  1. Thanks for checking, warjort. Yes, it's the real code. The code works for me, as well, but it fails to drop the coin objects (works with vanilla items like Items.DIRT). So I'm trying to determine where the issue is. I'm on 1.19.2, and the coins do not drop. Did you get coin entities to drop for you on 1.18.2? I know the textures would be missing, but that's further than I'm getting, if so.
  2. Hi Warjort. That is the *real* code, and yes it is the code I'm actually using. Not sure why you'd think I posted code I wasn't using? Here is a link to the ENTIRE source: https://goonlinetools.com/snapshot/code/#onzeadw2yq9c8mll8s9uw
  3. Thanks, DJ_Laser. Have both in there (I just hadn't provided the entirety of the code). As I mentioned, the event method works. I can replace my COIN_COPPER item reference with Items.DIRT and it adds a dirt block drop to every mob I kill. So the LivingDropsEvent code is working. But when I try to drop one of the custom item coins... nothing.
  4. 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!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.