Version 1.0.2 | GNU General Public License v3.0
DropRate is a Minecraft Forge mod that provides:
1. Download droprate-1.0.2.jar
2. Place in /mods folder
3. Configure /config/droprate.config.json
Add to build.gradle:
repositories {
maven {
url "https://cursemaven.com"
content { includeGroup "curse.maven" }
}
}
dependencies {
implementation fg.deobf("curse.maven:drop-rate-api-1208468:6249868")
}
File: /config/droprate.config.json
{
"config": [
{
"mob": "minecraft:zombie",
"rate": 80,
"item": ["minecraft:apple"],
"item_amount": {
"min_amount": 1,
"max_amount": 3
}
}
]
}
Field | Type | Description |
---|---|---|
mob | String | Entity ID (format: modid:entity) |
rate | Integer | Drop chance percentage (0-100) |
item | String[] | List of item IDs to drop |
item_amount | Integer/Object | Fixed amount or {min_amount, max_amount} range |
// Register drops
DropRateAPI.registerDrop(
EntityType.ZOMBIE,
75,
Arrays.asList(Items.DIAMOND, Items.EMERALD),
1,
3
);
// Query existing drops
List<DropData> drops = DropRateAPI.getDropData(EntityType.SKELETON);
// Remove specific drops
DropRateAPI.removeDrop(EntityType.CREEPER, Items.GUNPOWDER);
@SubscribeEvent
public void onMobDeath(LivingDeathEvent event) {
// Access DropRate data
List<DropData> drops = DropRateAPI.getDropData(event.getEntity().getType());
// Custom drop logic here
}
Note: When using with other loot-modifying mods, load order matters. DropRate should load after core content mods but before other loot modifiers.
Mod | Compatibility | Notes |
---|---|---|
Apotheosis | Full | Use Apotheosis for drop scaling |
Lootr | Partial | Test chest interactions |
TConstruct | Limited | No tool modification support |
DropRate - Custom Mob Drops & API Copyright (C) 2023 TamKungZ_ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.