Village Business

Quick rating

Village Business

No reviews yet

Set up your own shop in a village to sell any item for emeralds. Run your own shop or automate trading.

Economy & Trade Systems
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
0.2
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Village Business

Ever wanted to run your own business? Are you tired of having to talk to every individual villager to trade with them? Do you feel like villager trading halls are inhumane and wish there was a better way? Do you want an excuse to just mass produce something and have something fun to do with the results? If so, this mod is for you!

Villager Business allows you to create Sales Stands, a new block where you can put (almost) any item for sale. Villagers will periodically visit your shop and have a chance to give you emeralds in exchange for the item.

Every item has its own price! Villagers are more likely to buy desirable items, and the time between visits to the shop depends on how frequently one would want to buy the item again (food sells frequently, but boats not so much).

This mod is meant for fun, it hasn't been tested to see if its balanced compared to normal villager trading, so it may be very inefficient or too efficient, I don't know. The goal is to have a fun block that lets you have your own store, market or automated item sink and trading.

How to use

Sales stand

Crafting an emerald on top of a barrel makes a Sales Stand

Craft a Sales Stand and place it somewhere that has villagers nearby. Put the items you want to sell inside of the Sales Stand, and villagers may come to exchange emeralds for that item. You can also half or double the price of the item, which will change the chance of selling, and the time between customer visits. Giving the Sales Stand a redstone signal will close the shop, which prevents villagers from buying the item and allows for automation blocks to extract the input.

Request stand

Crafting a gold ingot on top of a barrel makes a Request Stand

Craft a Request Stand and place it somewhere that has villagers nearby. Set the requested item by placing an item in the Request slot. Load the request stand with emeralds. Villagers will ocationally come by and give you that item in exchange for emeralds. Villagers are unlikely to sell you items in this way, and the items will be more expensive than when you sell them. Giving the Request Stand a redstone signal will close the shop, which prevents villagers from buying the item and allows for automation blocks to extract the input.

Emerald Nuggets

This mod adds Emerald Nuggets, which are just 1/9th of an emerald. You can craft them like any other nugget.

Technical explanation

Item prices

Item prices are stored in a config file. Prices have been set manually and may not be very balanced or sensible, if you find a price that doesn't make sense please let me know. If a specific item is not in the file, its price will be calculated from crafting recipes, taking into account the price of its ingredients. Anything that has to be gathered from the world, or needs to be created with a method other than crafting (right clicking, smelting, watering, etc.) needs to be added to the list or it wont have a price.

Customer behavior

Sales Stands will attempt to attract all adult villagers (who is not working or sleeping) in a 50 block radius every 5 seconds, with a 10% chance for each one. The villager will then try to get to the stand. They will get frustrated if they cant reach it in 3 minutes. Once they arrive to the stand, they will inspect the item and have a chance to purchase it. This chance can be affected by doubling or halving the price of the item. After the villager either buys or rejects the item, they enter a cooldown for that specific item, and they wont be attracted by this item again for a minimum time, depending on the item and the price.

Shortcomings

This is my first minecraft mod ever, and I don't have any previous experience with Java or Mixins. I would have loved to add Roughly Enough Items compatibility to the request stand slot, but I failed.

Villagers are forced to move to Sales Stands by repeatedly setting their walk position until they arrive, since I don't understand how Activities work.

Since the config file gets created only if the file doesn't exist already, if I ever update the config file generator, people that where already using the mod will not get the new config unless they delete their current config.

Porting this mod to other fabric versions, or to other mod loaders, is something I don't know how to do. If you know modding, please use the github repository to contribute fixes or improvements, or fork it and make your own version.

Screenshots

Gallery

  • Feature image
    Feature image
  • Running a shop from the inside
    Running a shop from the inside
  • Automated restocking and emerald collection
    Automated restocking and emerald collection
  • Sales stand GUI
    Sales stand GUI
  • Player built shop example
    Player built shop example
  • Request stand example
    Request stand example
  • Request stand GUI
    Request stand GUI
  • Restaurant example
    Restaurant example
  • Running the restaurant from the inside
    Running the restaurant from the inside
  • Sales Stand crafting recipe
    Sales Stand crafting recipe An emerald on top of a barrel
  • Request Stand crafting recipe
    Request Stand crafting recipe A gold ingot on top of a barrel

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~14,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works