Help with custom mob drops??

Started by HiddenCrypt on Wed, 09/18/2019 - 16:40

Topic category: Help with modding

Last seen on 16:38, 21. Sep 2019
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Help with custom mob drops??
Wed, 09/18/2019 - 16:40

So basically what I want is to have it so that when I kill a mob with a certain sword, it drops a custom item. Iv'v got it to work and the mobs drop the item, however they always drop two of the item instead of one. I used the Spawn Gem event to make them drop it upon death.

Anyone know how to get them to drop only one of the item instead of two??

Most likely one event…
Wed, 09/18/2019 - 16:48

Most likely one event happens on the client and one on the server-side (Minecraft stores two worlds per game session). Use is world remote procedure block and wrap drop procedure with if block and make sure that the action only happens if the world is NOT remote (server-side).