#how can i make an item drop from a mob if killed with a specific tool?
3 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Using LootJS:
LootJS.modifiers((event) => {
event
// set the mob you want
.addEntityLootModifier("minecraft:pig")
// check for the weapon you want
.matchMainHand(Item.of("mod_id:knife_id"))
// set the item to drop
.addLoot("mod_id:ham_id");
});