Help with custom mob drops??

Started by HiddenCrypt on

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with custom mob drops??

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