Language

Edit Mob Drops

Edit Mob Drops

Modrinth

Edit Mob Drops is an easily configurable mod that lets you edit what mobs drop.

27.4k downloads 15 followers updated 20mo ago
latest v1.4.4a Modrinth
Forge Neoforge 1.7.10 – 1.20.1 Utility

Edit Mob Drops

Edit Mob Drops is an easily configurable mod that lets you edit what mobs drop, including adding items to specific groups of mobs, adding additional items, and even clearing existing drops!

All vanilla and modded items are supported, including NBT data. All mobs should be supported, vanilla and modded.

Editing mob drops is as simple as editing the config file of the mod, config\editmobdrops\editmobdrops.cfg (in 1.7.10 and 1.12.2), or config\editmobdrops\editmobdrops.toml (in 1.14+).

Sample Config (1.7.10)

# Configuration file

general {
    # If debug mode is active, the mod will log when items are dropped. It will also print entity IDs (usable in /summon, and in this mod) to console [default: false]
    B:"Debug Mode"=true

    # Items to add, in the form modid:itemName:[metadata]:[nbtfile]:minStackSize:maxStackSize:universalChance:[monsterChance]:[bossChance]:[group1Chance]:[group2Chance]...
    # Chances are %
    # NBT File is a json file in the "editmobdrops" folder here in config (leave blank for none) [default: ]
    S:"Items To Add" <
        minecraft:diamond_sword:0:sword:1:1:100
        minecraft:diamond:0::1:1:0:0:0:100
     >

    # Mob groups, in the form [EntityModid]:[EntityName]:[EntityModid]:[EntityName]... [default: ]
    S:"Mob Groups" <
        minecraft:Creeper:minecraft:Witch
     >

    # Mobs to clear existing drops from [default: ]
    S:"Mobs to Clear" <
        minecraft:Skeleton
     >

    # Single mob items, in the form EntityModid:EntityName:modid:itemName:[metadata]:[nbtfile]:minStackSize:maxStackSize:chance [default: ]
    S:"Single Mob Items" <
        minecraft:Chicken:minecraft:diamond_pickaxe:0::1:1:100
        minecraft:Chicken:minecraft:diamond_axe:0::1:1:100
     >
}

Sample Config (1.12.2)

# Configuration file

general {
    # If debug mode is active, the mod will log when items are dropped [default: false]
    B:"Debug Mode"=true

    # Items to add, in the form modid:itemName:[metadata]:[nbtfile]:minStackSize:maxStackSize:universalChance:[monsterChance]:[bossChance]:[group1Chance]:[group2Chance]...
    # Chances are %
    # NBT File is a json file in the "editmobdrops" folder here in config (leave blank for none) [default: ]
    S:"Items To Add" <
        minecraft:diamond_sword:0:sword:1:1:100
        minecraft:diamond:0::1:1:0:0:0:100
     >

    # Mob groups, in the form [EntityModid]:[EntityName]:[EntityModid]:[EntityName]... [default: ]
    S:"Mob Groups" <
        minecraft:creeper:minecraft:witch
     >

    # Mobs to clear existing drops from [default: ]
    S:"Mobs to Clear" <
        minecraft:skeleton
     >

    # Single mob items, in the form EntityModid:EntityName:modid:itemName:[metadata]:[nbtfile]:minStackSize:maxStackSize:chance [default: ]
    S:"Single Mob Items" <
        minecraft:chicken:minecraft:diamond_pickaxe:0::1:1:100
        minecraft:chicken:minecraft:diamond_axe:0::1:1:100
     >
}

Sample Config (1.14+, eg 1.16.5 and latest)

#If debug mode is active, the mod will log when items are dropped
debugMode = true
#Items to add, in the form modid:itemName:[nbtfile]:minStackSize:maxStackSize:universalChance:[monsterChance]:[bossChance]:[group1Chance]:[group2Chance]...
#Chances are %
#NBT File is a json file in the "editmobdrops" folder here in config (leave blank for none)
itemsToAdd = ["minecraft:diamond_sword:sword:1:1:100", "minecraft:diamond::1:1:0:0:0:100"]
#Mob groups, in the form [EntityModid]:[EntityName]:[EntityModid]:[EntityName]...
mobGroups = ["minecraft:creeper:minecraft:witch"]
#Mobs to clear existing drops from
mobsToClear = ["minecraft:skeleton"]
#Single mob items, in the form EntityModid:EntityName:modid:itemName:[nbtfile]:minStackSize:maxStackSize:chance
singleMobItems = ["minecraft:chicken:minecraft:diamond_pickaxe::1:1:100", "minecraft:chicken:minecraft:diamond_axe::1:1:100"]

Both of these configs do the same thing for different versions of Minecraft.
This config adds a chance to drop a stack of minecraft:diamond_sword, with between 1 and 1 (so 1) swords, with metadata 0 (an ordinary diamond sword), using the file "sword.json" for NBT, to everything, with a 100% chance.

"sword.json" contains the following in 1.7.10:
{display:{Name:"A sword"}}

It contains the following in 1.12.2:
{"display": {"Name": "A sword"}}

In 1.16.5 and latest, it instead contains the following:
{"display":{"Name":"[{\"text\":\"A sword\"}]"}}

This NBT data gives the sword the name "A sword".
The .json files can contain any valid NBT in json format. Check the syntax with a /give command if you're not sure whether it'll work.

After the sword, this config adds a chance to drop a stack of minecraft:diamond, with 1 diamond of metadata 0, not using an NBT file (as that section is blank).
The diamond has a 0% chance for anything to drop it, a 0% chance for monsters, a 0% chance for bosses, and a 100% chance for group 1, defined lower in the config as Creepers and Witches.

Lower down in the config, skeletons are listed as being a "Mob to Clear". This means default drops are cleared, but this happens before the extra items are added, so skeletons will still drop a diamond sword called "A sword".

Finally, the "Single Mob Items" section adds items to a single type of mob - in this case, adding a diamond pickaxe (metadata 0, no NBT) to chickens with a 100% chance to drop, and the same for a diamond axe.

In 1.7.10, entity names can be found by having debug mode on.
After 1.12.2, metadata was removed entirely, so the 1.14+ version of the config file does not include it.

Versions

Release
1.4.4a
forge · 1.16.5 · 20mo ago
Update 1.4.4a Fixing issue in editmobdrops for 1.16.5 where monster chance applied to too much
433
Release
1.4.4
forge · 1.18.2 · 28mo ago
Initial 1.18 release Identical to 1.4.4 for 1.16.5
228
Release
1.4.4
forge, neoforge · 1.20.1 · 32mo ago
Initial 1.20 release
7.9k
Release
1.4.4
forge · 1.16.5 · 32mo ago
Update 1.4.4 Changing editmobdrops for 1.16.5 to use world random
368
Release
1.4.4
forge · 1.7.10 · 39mo ago
Update 1.4.4 Removed a debug log, cleaned up random usage (thanks AstroTibs)
10.9k
Release
1.4.3
forge · 1.12.2 · 40mo ago
Update 1.4.3 Fixed some possible errors relating to items loading late by loading the config on world load
1.4k
Release
1.4.3
forge · 1.7.10 · 40mo ago
Update 1.4.3 Fixed some possible errors relating to items loading late by loading the config on world load
164
Release
1.4.2
forge · 1.7.10 · 42mo ago
Initial Modrinth release Identical to Curseforge release
245
Release
1.4.1
forge · 1.19.2 · 42mo ago
Initial Modrinth release Identical to Curseforge release
4.9k
Release
1.4.1
forge · 1.16.5 · 42mo ago
Initial Modrinth release Identical to Curseforge release
690
Release
1.4.2
forge · 1.12.2 · 42mo ago
Initial Modrinth release Identical to Curseforge release
158

Comments 0

No comments yet. Be the first to share your thoughts.