Back to mods
Zero Loss Coke project artwork

Vintage Story Mod DB · Vintage Story mod

Zero Loss Coke

ZeroLossCoke No More 50% Loss When Producing Coke in Vintage Story ZeroLossCoke removes the hardcoded coke yield loss from vanilla coal conversion, ensuring predictable, configurable, and server-safe results using clean Harmony Postfix patches. 📋 Features

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Zero Loss Coke release should I use?

Updated 8 months ago
Latest stable file 1.1.1
Game version 1.20.0, 1.20.1, 1.20.2
Loader Built-in Vintage Story mod system

Zero Loss Coke 1.1.1 targets 1.20.0, 1.20.1, 1.20.2. It must be installed on the client. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Zero Loss Coke required on the client, server, or both?

It must be installed on the client. Installation on the dedicated server is optional.

Client Required
Dedicated server Optional
Loader for this release Built-in Vintage Story mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This release supports both sides, but the source does not require it on the server.

What else does Zero Loss Coke 1.1.1 need?

1.1.1. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Zero Loss Coke without breaking your instance.

Built for Zero Loss Coke 1.1.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.1.1. It targets 1.20.0, 1.20.1, 1.20.2; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    It must be installed on the client. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.1.1. It opens that exact file at the source.

About this project

What does Zero Loss Coke add?

ZeroLossCoke

No More 50% Loss When Producing Coke in Vintage Story

ZeroLossCoke removes the hardcoded coke yield loss from vanilla coal conversion, ensuring predictable, configurable, and server-safe results using clean Harmony Postfix patches.

📋 Features

  • Full Coke Yield – Eliminates the vanilla 50% conversion loss
  • Configurable Output – Yield multiplier with optional min/max limits
  • Server-Safe Patching – Uses Postfix only (no Transpilers, no IL hacks)
  • Zero Performance Impact – No extra ticks, loops, or allocations
  • Optional Debug Logging – Transparent server-side logging for admins

⚙️ Configuration

On first launch, the mod generates zerolosscoke.json with the following defaults:

{
  "YieldMultiplier": 2.0,
  "MinYield": 0,
  "MaxYield": 0,
  "DebugLogging": true
}

Settings Explanation

Setting Type Default Description
YieldMultiplier float 2.0 Final coke multiplier (2.0 = 100% yield, 1.0 = vanilla behavior)
MinYield int 0 Guaranteed minimum output (0 disables the limit)
MaxYield int 0 Hard cap for output amount (0 = unlimited)
DebugLogging bool true Enable detailed server-side conversion logs

🎮 How It Works

  1. Build a valid coke oven using refractory blocks and a door
  2. Place bituminous coal piles inside
  3. Ignite the oven and wait for the burn cycle to complete
  4. Receive the full configured coke yield

Example: 16 coal → 16 coke (instead of the vanilla 8)

🔧 Compatibility

  • Vintage Story: 1.20.x – 1.21.x (GitHub Releases for 1.20)
  • Multiplayer: Fully server-side, clients do not need the mod
  • Other Mods: Compatible with most mods that do not replace coal pile logic

💻 Technical Notes

ZeroLossCoke applies a Harmony Postfix patch to BlockEntityCoalPile.OnBurningTickServer(), adjusting the final output after the vanilla logic completes. No IL rewriting, reflection tricks, or unsafe hooks are used.

❓ Support & Issues

  • Bug reports and feature requests: GitHub repository
  • General discussion: Vintage Story modding forum
  • Debugging: Check server logs for [ZeroLossCoke] entries

"Because losing half your coke was never good game design." 🏭🔥

Project description from Vintage Story Mod DB.

Pick your setup

Zero Loss Coke releases for each Vintage Story version.

Choose the version and loader you play, then open the matching release.

49 available setups

Showing the newest 12 of 49 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Zero Loss Coke versions and loaders

4 of 4 releases match

Looking for an older file? The official Vintage Story Mod DB project page is in Resources.