Modscraper Modscraper Minecraft
Viper Economy logo

Viper Economy

Mod

A server-side Fabric economy mod featuring dynamic virtual or physical currency toggles, multi-database drivers, cross-server Redis syncing, and custom-category interactive /servershop container GUIs with zero client-side requirements.

Type

Mod

Modrinth Downloads

47

Modrinth ID

CbHYhwPO

Last Updated

Jul 25, 2026

Description

๐Ÿ’ฐ Viper Economy (1.21.x โ€“ 26.x)

๐ŸŽฏ What Is Viper Economy?

Viper Economy is a server-side only Fabric economy mod that adds a complete virtual and physical currency system to Minecraft. Unlike clunky permission-based economy plugins, Viper Economy hooks directly into Minecraft's server internals via Fabric Mixins โ€” delivering atomic transactions, server shop GUIs, chest shops, daily rewards, tax mechanics, PvP balance loss, and scoreboard integration with zero client mods required.

Key differentiator: Vanilla clients connect normally. No resource packs, no client-side mods, no version mismatch errors. Drop the JAR in mods/ and go.

๐Ÿ’ต Core Economy Engine

Dual Currency Modes

Mode Name Behavior Best For VIRTUAL Digital Balance Balances stored in JSON files โ€” /bal, /pay, /baltop General survival, minigame servers PHYSICAL Item Currency Balances = items in inventory/ender chest (default: diamond) Hardcore, roleplay, anarchy

How It Works (Simplified)

Player Joins โ†’ Starting Balance Assigned โ†’ Daily Reward Check โ†“ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Virtual Mode: storage.json โ† /pay /bal โ”‚ โ”‚ Physical Mode: count items โ† /topup /withdraw โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ†“ Server Shop (/servershop) โ† Buy/Sell โ† Tax Applied Chest Shops โ† Sign + Chest โ† Auto-Detected PvP Death โ† Balance Loss % โ† Winner Gets Drop

๐Ÿ›ก๏ธ Features

Feature Description ๐Ÿ’ต Dual Currency VIRTUAL (digital) or PHYSICAL (item-based) economy modes ๐Ÿ›’ Server Shop GUI Paginated category shop with item lore, shift-click stacks, buy/sell ๐Ÿ“ฆ Chest Shops Sign-on-chest shops with auto-detection, buy/sell pricing, ownership protection ๐Ÿ” Chest Protection Non-owners cannot open shop chests โ€” admin shift-click bypass ๐Ÿ“… Daily Rewards Configurable daily login bonus (UTC reset) ๐Ÿšซ Daily Sell Limit Per-player daily sell cap to prevent inflation ๐Ÿ’ธ Purchase Tax Automatic tax rate on server shop purchases (default 10%) โš”๏ธ PvP Economics Optional % of victim's balance dropped on PvP death ๐Ÿ“Š Scoreboard Real-time balance display on sidebar (toggleable) โš™๏ธ Hot-Reload Edit configs and run โ€” no restart needed ๐Ÿ”ง Permissions Op-level based permission system

๐ŸŽฎ Commands

Player Commands

Command Description /bal [player] Check your balance or another player's /pay <player> <amount> Transfer money to another player /baltop View top 10 balances leaderboard /withdraw <amount> Withdraw physical currency from balance (physical mode) /topup <amount> Deposit physical currency items into balance (physical mode) /worth Check buy/sell price of your held item /buy <item> [amount] Buy items from the server shop /sell <item> [amount] Sell items to the server shop /servershop Open the server shop GUI

Admin Commands (op only)

Command Description /givemoney <player> <amount> Give money to a player /takemoney <player> <amount> Take money from a player /setmoney <player> <amount> Set a player's exact balance /resetmoney <player> Reset a player's balance to starting amount /ecolog View economy configuration info

โš™๏ธ Configuration

All configs live in config/viper-economy/ and are hot-reloadable.

config.json

{ "economyMode": "VIRTUAL", "physicalCurrencyItem": "minecraft:diamond", "startingBalance": 1000.0, "dailyAmount": 100.0, "dailySellLimit": 10000.0, "taxRate": 0.1, "pvpBalanceLossPercentage": 0.0, "serverShopEnabled": true } Field Description economyMode VIRTUAL (balances in storage) or PHYSICAL (currency items) physicalCurrencyItem Item ID used as currency when PHYSICAL mode active startingBalance Balance given to new players on first join dailyAmount Free money granted on first join each UTC day dailySellLimit Max total sell value per player per day taxRate Fraction (0.0โ€“1.0) taxed on server shop purchases pvpBalanceLossPercentage % of victim's balance dropped on PvP death serverShopEnabled Enable /servershop GUI

prices.json

Defines all purchasable/sellable items organized by category:

{ "items": { "minecraft:diamond": { "category": "gems", "stack": 64, "unit_buy": 100.0, "unit_sell": 50.0 } }, "categories": { "gems": { "name": "ยง6Gems", "display_item": "minecraft:diamond" } } }

A massive default prices.json (671 KB, 500+ items across 25+ categories) is bundled and auto-deployed on first run.

๐Ÿ’ก Usage Walkthrough

1. First Run (Auto-Setup):

  • Drop the mod JAR in mods/, start server
  • config/viper-economy/config.json and prices.json are generated from bundled defaults
  • Edit config.json if you want PHYSICAL mode or different rates
  • Changes apply immediately โ€” no restart needed

2. Virtual Economy (Default):

  • Players join โ†’ get startingBalance (1000)
  • /servershop opens GUI with 25+ categories, 500+ items, pagination
  • Buy with left-click, sell with right-click, shift-click for stacks
  • Tax (taxRate) applied automatically on purchases

3. Chest Shops (Player-Run):

  1. Place a chest
  2. Place a sign on it
  3. Line 1: [Shop] (auto-detected)
  4. Line 2: B 10 (buy price) or S 5 (sell price) or B 10 S 5
  5. Line 3: Item name or ? (auto-detect from chest)
  6. Line 4: Optional owner name (defaults to placer)
  7. Fill chest with stock โ†’ players interact with sign to buy/sell

4. Physical Economy (Hardcore/Roleplay):

  • Set "economyMode": "PHYSICAL" in config.json
  • Set "physicalCurrencyItem": "minecraft:gold_ingot" (or custom item)
  • Balances stored as items in player inventory/ender chest
  • /bal counts currency items; /pay moves items between players

5. PvP Server Economy:

  • Set "pvpBalanceLossPercentage": 0.05 (5% loss on death)
  • Winner picks up dropped balance as currency items (physical) or gets credited (virtual)

๐Ÿ“Š Performance

  • Zero external dependencies โ€” pure Fabric API + Mixins
  • JSON file storage in world/viper-economy/ โ€” atomic writes, no DB required
  • Server-side only โ€” zero client CPU/RAM impact
  • Hot-reloadable โ€” edit configs at runtime, no restart

๐Ÿ› ๏ธ Installation

Requirements

  • Fabric Loader: 0.14.21+ (1.21.x) / 0.19.3+ (26.x)
  • Java: 21 (1.21.x) or 25 (26.x)
  • Fabric API: Matching your Minecraft version

Steps

  1. Download the correct JAR for your Minecraft version
  2. Place in mods/ folder (server only โ€” client not required)
  3. Start server once โ†’ configs auto-generate
  4. Edit config/viper-economy/config.json to your liking
  5. Edit config/viper-economy/prices.json to customize shop prices
  6. Changes apply instantly โ€” no restart needed

โ“ FAQ

Q: Do players need to install anything?
A: No. Viper Economy is 100% server-side. Vanilla clients connect normally.

Q: How do I reset a player's balance?
A: /resetmoney <player> โ€” resets to the starting balance from config.

Q: Can I use custom items as currency?
A: Yes. Set physicalCurrencyItem to any valid item ID in config.json.

Q: How do I add new items to the shop?
A: Edit prices.json and add entries under items and categories. Changes apply instantly.

Q: What happens if the server crashes?
A: JSON storage uses atomic writes โ€” partial writes are discarded, lastๅฎŒๆ•ด save is preserved.

๐Ÿ“ฆ Supported Versions

Version Java Status 1.21.x (1.21 โ€“ 1.21.11) 21 โœ… Full support 26.1.x (26.1 โ€“ 26.1.2) 25 โœ… Full support 26.2.x 25 โœ… Full support

Built with Fabric Loom 1.17.x โ€ข Zero external dependencies โ€ข ARR Licensed

Compatibility

Mod Loaders

Fabric

Game Versions

1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 +6 more

Screenshots

Similar Mods

External Resources