#how can i make an item drop from a mob if killed with a specific tool?

3 messages · Page 1 of 1 (latest)

woeful wagon
#

i wanna do something simillar to farmers delight, where u get ham by killing pigs with only the knife and nothing else

ionic pythonBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

gentle sail
#

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");
});