Jump to content

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


IMleader

Recommended Posts

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

Link to comment
Share on other sites

  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
Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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