Mob drops with AI

Started by DragonOfAsparas on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob drops with AI

So i have made a custom mob with a mob drop aswell. And I based the AI on a pig. But whenever i kill the mob i get raw pork.... Any way how to prevent the raw pork from dropping?

Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
As long as you're using Pig
Thu, 03/02/2017 - 14:43

As long as you're using Pig AI, they will drop the pig drops. As far as I'm aware the only way to stop this is to use Custom AI.

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe you can edit the code
Mon, 03/06/2017 - 06:09

Maybe you can edit the code or something.

Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Maybe you can edit the code
Mon, 03/06/2017 - 20:24

@#2 You can't, the drops are programmed into the Pig AI which means the only way to change it is by recoding the Pig AI, which MCreator doesn't allow because it breaks Mojang's TOS. (Sorry if I'm being a nerd :P)

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make your custom drop
Sat, 03/18/2017 - 21:57

You can make your custom drop for your mob with an event: when mob killed - > spawn gem

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:You can make your custom drop
Mon, 06/05/2017 - 22:33

@#3 This would work for making it drop a mob, but it would still drop the orignal ai drops with it.

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Then just use the basic AI
Tue, 06/06/2017 - 20:39

Then just use the basic AI tasks wander, look around, swimming, etc. and make it breedable w/ carrots like a pig. You do not need to set the mob to have the pig AI, and your drops will work without givig you porkchops