Skip to content

Creating Datapacks

Tim edited this page Nov 17, 2026 · 5 revisions

Many components that make up the economy of Create: Kontor are defined using datapacks. This page shows how a datapack is built.

Getting started

1. Creating the folder structure

my_kontor_pack/
├── pack.mcmeta
└── data/
    └── mypack/
        └── kontor/
            └── market_definitions/
                └── my_product.json

2. Creating 'pack.mcmeta'

{
  "pack": {
    "pack_format": 48,
    "description": "My Kontor datapack"
  }
}

See https://minecraft.wiki/w/Pack_format for more info.

3. Loading the pack

Copy the folder (or a zip of it) into '/datapacks/'. Then restart your game or restart your server (/reload is not enough).

Folder Layout

All folders live in 'data//kontor/' (see Getting started).

Folder What it defines
raw_materials/ Items that have a base price and only randomly move around that base price
group_definitions/ Product groups with characteristics of those products
market_definitions/ Products that can be sold
process_costs/ Costs of one processing step per recipe type
legal_form_definitions/ Legal forms with their limits and upgrade requirements
license_definitions/ Product licenses and license bundles
bank_loan_offers/ Different types of loans

File names do not matter. Only the content of the files count. To replace an already existing file from the shipped datapack or another datapack, it must have the exact same path as the original (for example data/createkontor/kontor/market_definitions/acacia_door.json).

All data types

Raw materials

Items that have a base price and only randomly move around that base price.

Path: raw_materials/<name>.json

{
  "item": "minecraft:acacia_log",
  "base_value": 1.7,
  "daily_volatility": 0.01,
  "reference_volume": 7000.0
}
  • item: The item id of the raw material
  • base_value: The base price of this raw material
  • daily_volatility: How much the price moves randomly every day
  • reference_volume: The daily amount of bought items above which the price rises

Product groups

Product groups with characteristics of those products. A market always belongs to exactly one group.

Path: group_definitions/<name>.json

{
  "id": "basic_goods",
  "price_sensitivity": 3.5,
  "reputation_weight": 0.3,
  "cycle_sensitivity": 0.3,
  "target_margin": 0.1,
  "price_response": 0.12,
  "capacity_response": 0.06
}

Clone this wiki locally