Started by
efkrdnzzz
on
Topic category: Help with Minecraft modding (Java Edition)
I am making a mod where you can level up kinda like rpg and I'm trying to make a enchantment to weapons that disables the loot drops from vanilla mobs for more xp per kill.
I know how to make the second part its really kinda simple but I have no idea how I can make only certain mobs I chose not drop any loot.
Please help...
you can override their vanilla loot tables by making your own with the same name as the original ones. You can define a lot of things in loot tables so I'd recommend researching it seeing what's possible.
https://mcreator.net/forum/89060/ability-remove-vanilla-mob-or-block-drop
https://minecraft.fandom.com/wiki/Loot_table
But doesn't making a loot table instantly override entire vanilla loot table. I want it to effect only if mob is killed using a weapon containing certain enchantment.