Procedure to make it so that mobs won't drop items unless a player has killed then.

Started by Mymann on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 months ago
Joined Jun 2024
Points:
246

User statistics:

  • Modifications: 0
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 45
Procedure to make it so that mobs won't drop items unless a player has killed then.

Anyone have any idea on how to make one? I would prefer to have this procedure to not delete the item that a player drop.

 

The goal is to delete the items that a mob can drop if it isn't killed by a player. This should deletes any extre items that is not included in the loot table like equipment and gears

Active 5 months ago
Joined Apr 2025
Points:
129

User statistics:

  • Modifications: 0
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
This is far easier to do…
Thu, 04/24/2025 - 17:36

This is far easier to do with datapacks. You'll need to use the minecraft:killed_by_player condition

Active 5 months ago
Joined Apr 2025
Points:
129

User statistics:

  • Modifications: 0
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
I think you can also edit…
Thu, 04/24/2025 - 17:47

I think you can also edit loot tables in mcreator but it's easier to do it manually imo