Minecraft Data Packs / Item

Custom Villager Drops! [1.16+]

  • check_circle Functions
  • 4,042 views, 2 today
  • 794 downloads, 1 today
  • 20
  • 12
  • 6
DordLord's Avatar DordLord
Level 20 : Expert Pig
5
I noticed that villagers don't drop anything, and zombie villagers have no unique drops. To rectify this, I gave villagers and zombie villagers the chance to drop emeralds as well as profession-specific items! I also gave villagers and wandering traders XP drops and made it so a wandering trader will drop a random flower upon death.

Notes
  • Tested in 1.16.3
  • Should work in multiplayer
  • Make sure to extract the file!
  • Use the /reload command to load the datapack in when you get into game!

    Specific Changes to Loot Tables
    Villager

    • 0-1 emeralds dropped upon death by player (+1 to max per looting level)
    • 2 experience orbs dropped upon death by player

    Zombie Villager

    • Replaced iron ingot with emerald

    Wandering Trader

    • Random flower dropped upon death by player
    • 2 experience orbs dropped upon death by player

    Profession Specific Additions

    • 30% chance to drop profession specific item upon death by player (+15% per looting level)

    Armorer: Coal
    Butcher: Porkchop
    Cartographer: Paper
    Cleric: Redstone Dust
    Farmer: Bone Meal
    Fisherman: Cod
    Fletcher: Flint
    Leatherworker: Leather
    Librarian: Book
    Mason: Brick
    Shepherd: White Wool
    Toolsmith: Coal
    Weaponsmith: Coal

    CreditMadCat - used their Mob Head Drops datapack as reference (https://www.madcatgaming.com/mob-head-drops-data-pack/)
    CompatibilityMinecraft 1.16
    Tags

    1 Update Logs

    Version 2.0! : by DordLord 01/16/2021 3:06:02 amJan 16th, 2021

    • Added wandering trader loot (thanks Kate1902019 for the suggestion!)
    • Added XP drops for villagers and wandering traders (thanks Kate1902019 for the suggestion!)

    Create an account or sign in to comment.

    2
    01/15/2021 9:40 pm
    Level 36 : Artisan Princess
    Kate1902019
    Kate1902019's Avatar
    Make villagers, iron golems and wandering traders also drops xp orbs.
    2
    01/16/2021 1:00 am
    Level 20 : Expert Pig
    DordLord
    DordLord's Avatar
    I don't think iron golems should drop XP because you could just make your own iron golems and then kill them for XP (similar to why snow golems don't drop XP), but I agree with villagers and wandering traders. Might add that!
    1
    01/18/2021 12:01 am
    Level 36 : Artisan Princess
    Kate1902019
    Kate1902019's Avatar
    Ok.
    2
    01/16/2021 1:04 amhistory
    Level 30 : Artisan Blacksmith
    JohThePro
    JohThePro's Avatar
    Do you know a way to make them drop xp? cause I've been searching for one but it seems as though the best way to do it is to just spawn armor stand at every entity.

    Edit: Cool datapack btw!
    1
    01/16/2021 1:15 am
    Level 20 : Expert Pig
    DordLord
    DordLord's Avatar
    Thank you!
    I think I'd add an item to the villager and wandering trader loot table with a custom NBT and have a function run which replaces that item entity with the appropriate XP entity. I'm pretty sure that would work.
    2
    01/15/2021 8:35 am
    Level 14 : Journeyman Explorer
    GordonPlayingExperience
    GordonPlayingExperience's Avatar
    So you can make a very easy Redstone, bonemeal, and porkchop farm now? Nice!
    Planet Minecraft

    Website

    © 2010 - 2024
    www.planetminecraft.com

    Welcome