Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MikeD

Members
  • Joined

  • Last visited

  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. MikeD joined the community
  5. 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!

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.