Mob drops with AI

Started by DragonOfAsparas on

Topic category: Help with modding (Java Edition)

Last seen on 13:32, 28. Aug 2021
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?

Last seen on 11:13, 20. Mar 2019
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.

Last seen on 14:19, 6. Aug 2021
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.

Last seen on 11:13, 20. Mar 2019
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)

Last seen on 17:49, 25. Mar 2021
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

Last seen on 06:44, 6. Feb 2021
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.

Last seen on 23:44, 18. Aug 2019
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