Back to mods
Asphyxia (Gas API) project artwork

Vintage Story Mod DB · Vintage Story mod

Asphyxia (Gas API)

Ever felt weird being able to put multiple firepits in your enclosed home with no ill effects? Or mine an entire vein of brown coal maskless, without a single cough? With this offshoot of an offshoot, now air quality now has a big impact on you and other livin

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

Quick answer

Which Asphyxia (Gas API) release should I use?

Updated 4 years ago
Latest stable file 1.0.4
Game version 1.16.5
Loader Built-in Vintage Story mod system

Asphyxia (Gas API) 1.0.4 targets 1.16.5. 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 Asphyxia (Gas API) 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 Asphyxia (Gas API) 1.0.4 need?

1.0.4. 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 Asphyxia (Gas API) without breaking your instance.

Built for Asphyxia (Gas API) 1.0.4. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.4. It targets 1.16.5; 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.0.4. It opens that exact file at the source.

About this project

What does Asphyxia (Gas API) add?

Ever felt weird being able to put multiple firepits in your enclosed home with no ill effects? Or mine an entire vein of brown coal maskless, without a single cough? With this offshoot of an offshoot, now air quality now has a big impact on you and other living creatures! This mod adds a semi-realistic gas simulation and offers a library that can be used by other mods.

 

New Mechanics!

Gases can come from a variety of interactions with the world and can have different effects and densities

Players and some mobs now need to breathe and exhale, with some creatures being aquatic

Gases can have toxic effects on entities that breathe them

Some gases when dissolved in liquids will lower their pH, corroding armor and damaging entities at high concentrations

Gases can be explosive and flammable gases burn entities that are in them if an explosion happens

Containers in spaces with poor air quality have lower perish rates

 

Gases

+ Carbon Dioxide: One of the most abundant gases, it is exhaled by breathing living things, and a common product of combustion. It is heavier than air and is absorbed by plants.

+ Carbon Monoxide: While being absorbed by plants and a byproduct of combustion, it is the polar opposite of it’s cousin carbon dioxide, carbon monoxide is extremely dangerous and can cause rapid asphyxiation at concentrations as little as 10%. Its toxic effects likewise further restrict the ability to breath, plus it is near the same density as air so it evenly distributes in a space. In an enclosed, poorly ventilated space, it can kill in seconds.

+ Silica Dust: Lots of this can get in the air when breaking rock or quartz. Makes it hard to catch your breath and takes a bit of wind to get rid of.

+ Coal Dust: Lots of this gets in the air when mining coal or messing with charcoal. Makes it hard to catch your breath and it is flammable and explosive in very high concentrations. Takes a bit of wind to get rid of.

+ Hydrogen Sulfide: A heavy gas produced when mining sulfide ores, while known for its repulsive odor at small concentrations it can be extremely toxic, flammable, and explosive at high concentrations. Its toxic effects cause sluggishness, reducing movement and mining, and making it hard to deal damage in combat. Can be absorbed by plants and takes a fair amount of wind to get rid of.

+ Sulfur Dioxide: A heavy gas produced when blowing up sulfide ores or burning hydrogen sulfide, this gas is toxic and acidic and can cause armor to take greater damage and lower your health. When dissolved in water, it will lower its pH, making it corrosive to armor and can even burn creatures at high concentrations in water. Takes a lot of wind to get rid of it.

+ Nitrogen Dioxide: A heavy gas produced from explosions and mining saltpeter, this gas is toxic and acidic and can cause you to take increased damage and weakens your body’s ability to heal. When dissolved in water, it will lower its pH, making it corrosive to armor and can even burn creatures at high concentrations in water. Takes a lot of wind to get rid of it.

+ Methane: An extremely explosive and light gas, often found when mining coal, this gas is a leading cause of coal mine explosions.

 

Config Options

Explosions: If enabled gas explosions can occur

FlammableGas: Whether entities will burn during an explosion in the presence of flammable gas

PickaxeExplosionChance: The chance for a pickaxe strike to spark explosive gases

ContainerBonus: Whether reducing air quality will lower perish rates for containers

Smoke: Toggles smoke for burning things

Acid: Toggles acidic liquids

Exhaling: Toggles exhaling gases for breathing entities

DefaultSpreadRadius: The default distance for gas to spread up to

SpreadGasonBreakChance: The chance gas spreads when a block is broken

SpreadGasOnPlaceChance: The chance gas spreads when a block is placed

UpdateSpreadGasChance: The chance gas spreads for a block update

AllowScuba: Toggles scuba equipment

AllowMasks: Toggles mask equipment

ToxicEffects: Toggles toxic gas effects

GasesEnabled: Disables most content for that mod, can still be used by other mods though

GasesDebugEnabled: Toggles debug mode, with this mode on, see gas concentrations on block descriptions

BreathingEnabled: Whether breathing is enabled for entities other than the player

PlayerBreathingEnabled: Whether player breathing is enabled.

 

Library For Modders
This mod is hopefully built to be as compatible with other mods as possible. If you are interested in creating your own gas or using the system for other purposes please take a look at the README in the Github repository. It contains information for both content and code modders wanting to use this.

Project description from Vintage Story Mod DB.

Pick your setup

Asphyxia (Gas API) releases for each Vintage Story version.

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

2 available setups

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

Recent files

Asphyxia (Gas API) versions and loaders

5 of 5 releases match

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