promotional bannermobile promotional banner

Loose Change

Villagers accept any mix of coins by total value and give you change back. Works with Create: Numismatics out of the box.

🪙 Loose Change

Villager trades that cost currency now work on total value, and you get change back.

In vanilla, a trade priced at 48 spurs won't take a single crown, even though a crown is worth ten times as much. Loose Change fixes that.

What it does

  • Pay with any mix of coins. The trade goes through as long as what you put in is worth enough.
  • Get change back. Overpay and the difference comes back as coins, largest denomination first.
  • Smart auto-fill. Clicking a trade fills the payment slots with the smallest handful of coins that covers it, not your whole purse.
  • Everything else stays vanilla. Trades that cost normal goods, and the goods half of a "goods + coins" trade, work exactly as before.

Works with

  • Create: Numismatics out of the box: spur, bevel, sprocket, cog, crown and sun.
  • Any other currency mod: add its coins to the config with one line each.
  • Standalone: if no listed coin is installed, the mod simply does nothing.

Config

config/loosechange-common.toml

 
toml
coinValues = [
  "numismatics:spur=1",
  "numismatics:bevel=8",
  "numismatics:sprocket=16",
  "numismatics:cog=64",
  "numismatics:crown=512",
  "numismatics:sun=4096"
]

Format is namespace:item=value. Values are whole numbers (1 to 1,000,000). Items that aren't installed are ignored.

Notes

  • Required on both client and server.
  • NeoForge 1.21.1.
  • Made for the Marshlight Horizons modpack, and free for anyone to use in their own packs.

Changelog for 0.2.0

 
First public release.
- Villager trades priced in currency accept any mix of coins by total value.
- Overpayment is returned as change, largest coins first.
- Clicking a trade auto-fills the smallest set of coins that covers the price.
- Coin table is configurable; Create: Numismatics coins are set up by default.

 

The Loose Change Team

profile avatar
  • 4
    Projects
  • 445
    Downloads

More from marsh_mellow_dream

  • Marshlight SMP project image

    Marshlight SMP

    A story-driven modded roleplay server built on magic, machines, and community.

    • 287
    • May 5, 2025
  • Dreambound RP project image

    Dreambound RP

    Immerse yourself in a magical world of fantasy. Choose your race and profession, explore dungeons, and build with advanced technology. With mods for roleplay, combat, and crafting, every adventure is uniquely yours.

    • 113
    • October 22, 2024
  • Marshlight SMP project image

    Marshlight SMP

    A story-driven modded roleplay server built on magic, machines, and community.

    • 287
    • May 5, 2025
  • Dreambound RP project image

    Dreambound RP

    Immerse yourself in a magical world of fantasy. Choose your race and profession, explore dungeons, and build with advanced technology. With mods for roleplay, combat, and crafting, every adventure is uniquely yours.

    • 113
    • October 22, 2024