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.

[1.8] Drops randomly doubling and when it does, the duplicated drop is not pick-up able

Featured Replies

Posted

Hello! I am working on a mod for me and my brother like of like lucky blocks. I am starting with the basics and slowly advancing the mod. I recently ran into an issue where, when i break the block, it drops two of the drops. Not one type. My code works like this:

  1. Block gets destroyed
  2. Block calls DropDB.getRandomDrop
  3. DropDB gets a random drop from an array of drops and returns in
  4. Block loops the drops and spawns the items above it

It works but when I break it two drops come out. One which I can pick up, and the other which is strangely still registered as an entity. But I cannot pick it up. All of my code it posted on GitHub here:ย https://github.com/xXXIMMATTHEWXXx/BroCubes

  • Author
  1. Personal preference :(
  2. Done
  3. I dont??????? Where do you see that????
  4. Example? Only way I know how is how ive done it
  • Author
  1. Ik ik(Newer versions just dont match me. Also I can't even decompile 1.8.9 due to some gradlew error that i spent weeks trying to fix and used every method ever and it never frekenย worked.)
  2. Ive done this. Will edit when test is done

I have done this. Now nothing drops at all....

Edited by IMleader
Update for after testing stuff

  • Author

Well arent I dumb, ingore that edit I forgot I set the mat to stone so of couse my fist didn't work... ย Anyhow it works. THANK YOU!!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.