Mob Money
ModA simple, configurable Fabric mod that awards players money for killing mobs. Economy support using the Common Economy API
Description
Mob Money
A simple, configurable Fabric mod that awards players money for killing mobs. Built to demonstrate integration with the Common Economy API.
Features
- Earn Money: Get paid for hunting down hostile mobs.
- Configurable:
- Set custom rewards per mob type (e.g., Zombies, Creepers, Ender Dragon).
- Economy Provider Support: Configure which economy mod to use (e.g., Savs Common Economy, Fuji, etc.).
- Common Economy API: Works with any economy mod that implements the Common Economy API.
Installation
- Install Fabric Loader and Fabric API.
- Install an economy mod that supports the Common Economy API (e.g., Savs Common Economy).
- Drop the
.jarinto yourmodsfolder.
Configuration
The config file is located at config/mob-money.json. It will be generated upon first launch.
{
"economyProvider": "savs_common_economy",
"currencyId": "dollar",
"notificationMode": "CHAT",
"mobPrices": {
"minecraft:zombie": 5.0,
"minecraft:skeleton": 5.0,
"minecraft:creeper": 10.0,
"minecraft:spider": 5.0,
"minecraft:ender_dragon": 1000.0,
"minecraft:wither": 500.0
},
"maxEarningsPerPeriod": 100.0,
"earningPeriodDuration": 1200,
"overflowMode": "DROP",
"spawnReasonFilterMode": "BLACKLIST",
"spawnReasonFilter": ["SPAWNER", "TRIAL_SPAWNER"]
}
Settings
economyProvider: The ID of the economy provider to use (e.g.,savs_common_economy,fuji).currencyId: The ID of the currency to award (e.g.,dollar,gold).notificationMode: How to notify players of earnings. Options:CHAT,ACTION_BAR,NONE(default:CHAT).mobPrices: A whitelist of mobs and their reward values.- Only mobs listed here will award money.
- Use the full entity ID (e.g.,
minecraft:zombie).
maxEarningsPerPeriod: The maximum amount a player can earn within the defined period. Set to 0 to disable. (Default: 100.0)earningPeriodDuration: The length of the earning period in seconds. (Default: 1200 - 20 minutes)overflowMode: Defines behavior when a kill exceeds the cap. Options:DROP(Default): If a kill pushes you over the cap, you get $0 for that kill.PARTIAL: You get the remaining amount up to the cap.ALLOW: If you are under the cap, you get the full reward (even if it exceeds the limit). Future kills give $0.
spawnReasonFilterMode: Controls whether a mob's spawn reason affects payout. Options:NONE: No filtering. All spawn reasons pay out.BLACKLIST(Default): Reasons listed inspawnReasonFilterdo not pay out; everything else does.WHITELIST: Only reasons listed inspawnReasonFilterpay out.
spawnReasonFilter: A list of spawn reasons used byspawnReasonFilterMode(ignored when mode isNONE). Default:["SPAWNER", "TRIAL_SPAWNER"]— blocks payouts from mob-spawner farms while still paying out for natural spawns, breeding, structures, etc. Valid values:NATURAL,CHUNK_GENERATION,SPAWNER,STRUCTURE,BREEDING,MOB_SUMMONED,JOCKEY,EVENT,CONVERSION,REINFORCEMENT,TRIGGERED,BUCKET,SPAWN_ITEM_USE,COMMAND,DISPENSER,PATROL,TRIAL_SPAWNER,LOAD,DIMENSION_TRAVEL
Troubleshooting
If you are not receiving money:
- Check the server console/logs for messages starting with
[mob-money]. - Ensure you have an economy mod installed.
- Verify that
economyProviderandcurrencyIdin the config match the provider you are using.- For Savs Common Economy: Provider
savs_common_economy, Currencydollar. - For Fuji: Provider
fuji, Currencygold(or whatever is configured).
- For Savs Common Economy: Provider
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Screenshots
Similar Mods
Skeleton Uprising
A mod that aims to expand on the vanilla skeleton, adding new mobs and weapons!
Slime Merger
Allows slimes of the same size to merge into a bigger slime
Minecolonies Buildserver Quick Actions
Introduces quick actions next to your inventory without the need for being opped
Realistic Torches From Campfires
Campfire Addon for Realistic Torches
Shiny Gems and Ores Mod
This Mod Adds Ruby, Sappire, Amethyst, Silver And Emerald Tools And Armour
Create: Kinetic Illuminator
Adds a new curiosity to Create: the Kinetic Illuminator can create and destroy invisible light blocks.