promotional bannermobile promotional banner

Drop Rate API

This mod allows modifying drop rates for specific mobs.
Back to Files

droprateapi-1.0.1+patch1_1.16.5-forge.jar

File namedroprateapi-1.0.1+patch1.jar
Uploader
TamKungZ_TamKungZ_
Uploaded
Mar 1, 2025
Downloads
124
Size
21.4 KB
Mod Loaders
Forge
File ID
6249868
Type
R
Release
Supported game versions
  • 1.16.5

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:droprateapi-1208468:6249868")

Learn more aboutย Curse Maven

What's new

Changelog - DropRateAPI Mod

Version 1.0.1+patch1 - [DATE]

๐Ÿ”„ New Features & Improvements

  • Added Config Reloading Command 1. Implemented /droprate_reload command to reload droprate.config.json without restarting the game. 2. Now developers can test drop changes in real-time!

  • Added Drop Removal API

    • New method DropRateAPI.removeDrop(EntityType<?>, Item) allows developers to remove specific drops from mobs.
    • This feature is useful for modifying existing drop tables dynamically.
    • Ensures greater flexibility in drop management without overriding entire loot tables.
    • Example:
```DropRateAPI.removeDrop(EntityType.ZOMBIE, Items.ROTTEN_FLESH);```
  • Improved Debugging & Error Handling
    • Added error messages when invalid item IDs are detected in droprate.config.json.
    • Now, if an incorrect item ID is provided, a warning is logged to help troubleshoot issues.
    • Example log message:
[DropRate] WARNING: Item "minecraft:golden_potato" does not exist!

๐Ÿ› ๏ธ Bug Fixes & Code Refactor

  • Fixed Package Name Issues
    • Updated all references from th.tamkungz.droprate.api.DropRateAPI to th.tamkungz.droprateapi.api.DropRateAPI for consistency.

๐Ÿ“Œ Previous Changes

  • Refactored DropRateAPI to store multiple drop entries per entity.
  • Added JSON-based configuration for defining custom mob drops.
  • Improved cross-mod compatibility.

๐Ÿš€ Keep customizing your mob drops with DropRate!

This mod has no additional files