Home›Java›Mods›SxMobCoins | Mob Coins & NPC Shops
[​IMG]

SxMobCoins
A second currency your players can hold in their hands.​

Mobs drop coins as a real item. Players carry them, trade them, lose them on death, and spend them at shop keepers you place anywhere in the world — each keeper selling whatever you put inside it, at whatever price you set.

No Vault. No economy plugin. No NPC library. No database. One jar.

Why coins as items?
A balance is a number only the plugin can see. An item is in the player's hands: they can sort it, hide it in an ender chest, hand it to a friend, and lose it when something kills them far from spawn. That is what makes a second currency feel like part of the game instead of a scoreboard.

The cost of that choice is forgery — which is why every coin is signed.

Features

How it plays
For a player: kill mobs, pick up coins, right click a keeper, click what you want. The action bar tells them the moment a kill pays.

For an admin: stand where the shop should be, run /mobcoins shop create, name it with /mobcoins shop rename Blacksmith, then /mobcoins edit and drag in what it sells. The keeper you are editing glows for a few seconds, and its name and number are in the window title, so there is no guessing which shop you have open.

Spoiler: Commands and permissions
  • /mobcoins — what coins are and where to spend them
  • /mobcoins shop create — place a keeper where you stand
  • /mobcoins shop rename [number] <name> — name it
  • /mobcoins shop remove [number] — remove the nearest shop, or one by number
  • /mobcoins shop list — every shop, where it is and how much it sells
  • /mobcoins edit — open the nearest shop as a till
  • /mobcoins give <player> [amount] — hand out coins
  • /mobcoins reload — reload config and messages
Sneak and right click a keeper as an admin to open the editor straight away.

  • sxmobcoins.use — buy from shops and read the help (everyone)
  • sxmobcoins.admin — create shops, fill them, give coins, reload (op)

Spoiler: Configuration
Code (Text):

coin:
  material: SUNFLOWER
  name: "<gold><bold>Mob Coin"
  announce: ACTIONBAR      # where a player is told a kill paid

drops:
  default: { chance: 0.2, min: 1, max: 1 }
  mobs:
    ZOMBIE:  { chance: 0.25, min: 1, max: 1 }
    WITHER:  { chance: 1.0,  min: 50, max: 75 }
  ignored: [COW, SHEEP, PIG, CHICKEN]

protection:
  require-player-kill: true     # a lava pit pays nothing
  spawner-multiplier: 0.0       # spawner farms pay nothing
  max-per-hour: 250
  delivery: INVENTORY

npc:
  entity: VILLAGER
  profession: librarian
 
Every line players see lives in lang/messages_en.yml or messages_ru.yml. MiniMessage tags and legacy & codes both work, and deleting a line restores the original.

Skyblock and Prison: spawner mobs pay nothing by default, since that is the usual way this kind of currency gets ruined. Raise spawner-multiplier if spawners are the point of your server.

Requirements
Minecraft 1.21+, Java 21. Paper, Spigot, CraftBukkit, Purpur and Folia from the same jar.

Tested, not assumed
Every claim here was checked on a live server with automated players: the buying flow, double click spam against duplication, a full inventory being refused instead of charged, spawner mobs paying nothing, forged coins turned away, and shops, prices and coins surviving a full restart.

Statistics
Anonymous usage statistics through bStats: server software and version, Java version, player count, plugin version, language, coin delivery and roughly how many shops exist. No player names, no addresses, nothing about what anyone bought. Switch it off in plugins/bStats/config.yml.

Support, updates and bug reports
discord.gg/2m54hpjSpG​

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

SxMobCoins | Mob Coins & NPC Shops is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 2 times (via Spigot). Download it and open it directly in the game.

Explore more