Skip to content

GabR36/MinePriceCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MinePriceCalc

A production cost calculator for Minecraft items. It records farming/crafting sessions, calculates the production cost of each item using proportional allocation, and compares it with market prices to identify what is worth selling.

screenshot

Features

Items

Item registration with support for:

  • Regular and enchanted items (linked to a base item)
  • Composite items (crafted from other items)
  • Crafting recipes (ingredients and quantities)
  • Preferred price source: market, custom price, or recipe

Market Prices

Manual registration of each item's market price, including update date and notes.

Equipment

Equipment registration with total uses (durability). Used to calculate depreciation per session.

Techniques

Each technique represents a farming or crafting method (e.g., mining, fishing, blaze farm). The melt value — value generated per hour of work — is configured globally in the Techniques tab and used by all techniques.

Sessions

Recording of gameplay sessions per technique, including:

  • Duration
  • Items gained (income) and consumed (expenses)
  • Equipment used (uses per session)

Calculator

Calculates production prices for a technique based on the average of recorded sessions:

  1. Total value = average time × global melt
  2. Expense cost = sum of consumed items × effective price
  3. Depreciation = average equipment usage × (price / total uses)
  4. Remaining value = total value − expenses − depreciation
  5. The remaining value is distributed among gained items via proportional allocation, with saturation at market price (no item receives a suggested price higher than the market)

Calculated custom prices can be saved and used as input costs in other techniques. A technique never uses its own calculated prices as input (no circular dependency).

Sell List

Displays items with saved custom prices that can be sold for profit (production price ≤ market price). Automatically updates when prices are saved in the Calculator.

Dependencies

  • Qt 6 (Core, Gui, Widgets, Sql)
  • CMake 3.16+
  • C++17 compiler
  • SQLite (included with Qt)

Build

mkdir build && cd build
cmake ..
make -j$(nproc)

The database (minepricecalc.db) is automatically created in the same directory as the executable on first run.

Project Structure

File Description
models.h Data structs (Item, Session, Technique, etc.)
database.h/cpp SQLite access and calculations
mainwindow.h/cpp Main window with tabs
itemswidget Items management tab
marketpriceswidget Market prices tab
equipmentwidget Equipment tab
techniqueswidget Techniques tab
sessionswidget Sessions tab
calculatorwidget Price calculator tab
selllistwidget Sell list tab

About

Calculate Minecraft item production cost based on labor time and see what is worth selling

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors