How to keep a biped mob from dropping what it is holding?

Started by Cnf on

Topic category: Help with modding (Java Edition)

Last seen on 15:27, 21. Jun 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to keep a biped mob from dropping what it is holding?

I have created a biped entity with Mcreator. It has a custom weapon as its main hand item and wears leather armor. How do I keep it from dropping whatever it has equipped?

Last seen on 18:03, 26. Jun 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm guessing you mean stop…
Tue, 06/18/2024 - 17:30

I'm guessing you mean stop dropping items that are held when it is killed? If so, one possibility might be to remove the items it is holding and wearing when it takes damage and its health is below 0 HP, that might work, but I'm not sure, and it would be obvious that the items are being removed. I can't think of another way to do it without coding though, and I don't know enough about coding to say whether it is possible or not with coding.

Last seen on 14:07, 26. Jun 2024
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe a custom loot table…
Thu, 06/20/2024 - 14:21

Maybe a custom loot table could work

Last seen on 15:27, 21. Jun 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have already tried a…
Thu, 06/20/2024 - 16:14

I have already tried a custom loot table, all it does is make the mob drop the loot table and what it has equipped occasionally