Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
๐ง OVERVIEW
Chloride is a performance and quality-of-life addon for Sodium. It adds the settings Sodium leaves out: culling
by distance, borderless fullscreen, True Darkness, fog and sky controls, HUD overlays, a zoom key and new settings
screens with search, undo and reset. Everything lives inside the video settings, making Sodium a tasteful
experience (NaCl).
Supports NeoForge and Fabric on Minecraft 1.21.1, 1.21.11, 26.1.2, 26.2 and 26.3 with Sodium, and Forge on 1.20.1 with Embeddium. It is a client mod: servers don't need it.
๐ ๏ธ FEATURES
โก Performance
- ๐ Entity distance culling, with special lists for monsters and block entities, each with its own range and whitelist
(
minecraft:batfor one,create:allfor a whole mod), plus a limit of entities drawn at once - ๐ฟ Leaves culling in five levels, from only the leaves buried deep inside a tree to every hidden face. It also hides the extra planes of Better Leaves resource packs
- ๐ฆ Fast Chests and [1.20.1 to 26.1.2] Fast Beds: solid block models instead of animated ones*
- ๐๏ธ Texture animation toggles: all of them, or only water, lava, fire, portal, sculk or the rest
- ๐ฟ Render toggles for armor stands, item frames, paintings, the enchanting table book and the beacon beam
- โจ Particle toggles for rain, splashes and block breaking, and a searchable list with every particle of every mod
- ๐ฆ Hides JEI, REI or EMI item overlay list until you type in its search bar
- ๐ Fast language reload, no waiting on switch to spanish and chinese.
- ๐ณ Font shadows toggle for plain minimalism style
- ๐ก Light Updates toggle for benchmarks and screenshots
๐ฅ๏ธ Window
- ๐ช Borderless fullscreen: instant alt-tab and no black screen. F11 cycle is configurable
- ๐ Adaptive V-Sync: like V-Sync, but tears instead of stalling when a frame arrives late
- ๐ Live switch between OpenGL and Vulkan on 26.2 and 26.3 without restarting the game*
๐ World
- ๐ฏ๏ธ True Darkness: DIM to BLACKNESS, choose your real darkness, per dimension, with moon phases and a block-light-only mode
- ๐ Fog toggles per dimension, a custom fog with its own start, end and shape, and the blue band of the horizon
- ๐ค๏ธ Sky toggles: sky, sun, moon, stars and biome sky colors
- ๐ง๏ธ Weather toggles: all of it at once, or only the rain sound, the darkening or the lightning flashes
- โ๏ธ Clouds height, void horizon height and a far skybox
- ๐๏ธ Chunk Fade In: new chunks fade in from the fog color instead of popping in* (1.20.1 and 1.21.1, the game has its own from 1.21.11)
- ๐ Extended Brightness, from the vanilla 100% up to Fullbright
- ๐ค๏ธ Shadowyness: brings back the vanilla shadows on path blocks, slabs and stairs
- ๐งฑ Piston Push toggle, to make pistons snap to their final state
๐งฎ HUD
- ๐ Overlays for FPS (current, average and minimum, GPU and memory usage), coordinates, biome and sprinting, each one with its own position, margins and transparency
- ๐ Steady Debug Screen (F3 refreshes on an interval), a persistent profiler pie and advanced item tooltips that stay on after a restart
- ๐ Toast toggles: all of them, or only advancements, recipes, system or tutorial
๐ฎ Player
- ๐ Zoom key with scroll to zoom further and a smooth animation
- ๐ Fast Sneak (no camera smoothing)
- ๐ Clear Spectator view (no screen effects like creeper or enderman)
- ๐ Distortion and FOV effects customization with sliders
โ๏ธ Settings screens
- ๐จ Four styles next to Sodium's own: Chloride, Reese, Populi and Vanilla. One button switches between them
- ๐ Search across every mod, undo and reset per option, Reset All, and nothing is saved until you press Apply
- ๐ Shader Packs page inside the settings: toggle, pack list, pack settings and install by dropping the file (needs Iris, or Oculus on 1.20.1)
- ๐ Modpack makers can lock any setting, see "LOCK SETTINGS IN A MODPACK" below.
*Not on every Minecraft version, the entry says where.
๐งฉ COMPATIBILITY
| Minecraft | Loaders | Requires |
|---|---|---|
| 1.20.1 | Forge | Embeddium |
| 1.21.1 | NeoForge, Fabric | Sodium 0.8.12 or newer |
| 1.21.11 | NeoForge, Fabric | Sodium 0.8.13 or newer |
| 26.1.2 | NeoForge, Fabric | Sodium 0.9.1 or newer |
| 26.2 | NeoForge, Fabric | Sodium 0.9.2 or newer |
| 26.3 | NeoForge, Fabric | Sodium 0.9.3 or newer |
- โ Works together with Iris / Oculus, JEI, REI, EMI, Sable and Valkyrien Skies, where they exist for your Minecraft version
- โ ๏ธ With Just Zoom, Zume, Ok Zoomer, Zoomify or ZoomLens installed, Chloride's zoom turns itself off
- โ ๏ธ With Enhanced Block Entities installed, Fast Chests turns itself off
- โ Incompatible with Sodium Extra / Embeddium Extra (both change the same settings, the game does not start with the two), Cubes Without Borders (both replace the same fullscreen setting) and Smooth Skies (its features are already here)
๐ฎ CREATE YOUR SERVER AT LOW PRICES
KineticHosting, our partners in hosting solutions, are great to make a server and play with your friends.
โ๏ธ FAQ
- ยฟDo I need Sodium?
- Yes. Chloride adds to Sodium's settings and renderer (Embeddium on 1.20.1), it doesn't replace them
- ยฟDoes it go on the server?
- No. Chloride is a client mod, and a server ignores it
- ยฟWhere are the settings?
- In Options > Video Settings. Chloride's pages sit next to Sodium's, and its style button is at the top left
- ยฟWhy is a setting greyed out and won't change?
- Your modpack locked it, it depends on another setting that is off, or your setup has no use for it (another zoom mod, a ships mod). Its description says what it needs
- ยฟWhat happened to Embeddium++?
- It is this mod, under its new name
- ยฟWhere are the dynamic lights?
- They were removed some versions ago and are planned to come back, written from scratch
- ยฟWhy doesn't Chunk Fade In do anything with shaders?
- Shader packs draw the world with their own programs, so the fade is skipped while one is on
- ยฟWhere do I report bugs?
- On GitHub Issues or Discord
๐ FOR USERS
Every setting is in the video settings screen. They are saved in config/chloride-client.toml, inside your game
folder, with a comment above every field. Edit the file while the game is closed.
๐จ SETTINGS SCREEN STYLES
The square button with the Chloride logo, at the top left of the video settings, switches to the next style: Sodium, Chloride, Vanilla, Reese and Populi. The choice is remembered.
- Changes are staged: nothing is saved until you press Apply, and Undo takes them back.
- On the Chloride, Reese and Populi styles every option has its own undo and reset buttons. The Vanilla style has the reset one.
- Reset All stages the default of every option of every mod.
- The search looks into the name and the description of every option of every mod.
- Some options only exist on Chloride's styles, because Sodium's screen cannot draw them: the whitelists, the resolution dropdown, the per-particle toggles (a separate list there) and the Shader Packs page.
๐ LOCK SETTINGS IN A MODPACK
lockedOptions takes the ids of the settings players must not change. A locked setting stays visible, greyed out,
and keeps the value of the config file you ship:
lockedOptions = ["chloride:fast_chests", "chloride:enable_zoom", "sodium:general.vsync", "iris:all"]
modid:alllocks every setting of that mod, andchloride:allevery setting of Chloride.- SETTINGS.md lists every setting of Chloride with its id, screen by screen.
- It works on the settings of any mod listed in the video settings, not only on Chloride's.
- A particle toggle is
chloride:particle/<mod id>/<particle>, likechloride:particle/minecraft/flame. - The lock covers the video settings and the F11 key. Settings that another screen also offers (the vanilla Accessibility screen, the keys of Iris) can still be changed from there.
๐ WHITELISTS
The culling whitelists, the True Darkness dimensions and the disabled particles are lists of ids. minecraft:ghast
names one entry and alexsmobs:all every entry of that mod. Edit them from Chloride's settings screens, or in the
config file:
[entities.culling]
entityWhitelist = ["create:all", "minecraft:armor_stand"]
๐ป FOR DEVELOPERS
Chloride's settings screens can draw option types Sodium doesn't have: text boxes, dropdowns, lists of ids and
action buttons. Any mod can use them through SaltyConfigBuilder, an extension of Sodium's config API in the
package me.srrapero720.chloride.api.config. Everything outside it is internal and changes without notice, except
the events listed under GOOD TO KNOW.
๐ฆ SETUP
Compile against the jar of your loader and Minecraft version, from
JitPack. Every release has one tag per loader,
<version>-<loader>-<minecraft>, and that tag is the version of the dependency. JitPack builds a tag the first
time it is asked for, so that sync takes a few minutes. The license doesn't allow bundling Chloride inside your
jar, so keep it compile-only and let players install it.
repositories {
maven {
url = 'https://jitpack.io'
content { includeGroup 'com.github.SrRapero720' }
}
}
dependencies {
compileOnly "com.github.SrRapero720:chloride:x.y.z-neoforge-1.21.1" // NEOFORGE
modCompileOnly "com.github.SrRapero720:chloride:x.y.z-fabric-1.21.1" // FABRIC UP TO 1.21.11 (LOOM REMAPS IT)
compileOnly "com.github.SrRapero720:chloride:x.y.z-fabric-26.1.2" // FABRIC FROM 26.1
}
Your options are registered the way Sodium asks for: a class implementing ConfigEntryPoint, named in your mod
metadata. In neoforge.mods.toml:
[modproperties.yourmod]
"sodium:config_api_user" = "com.example.ExampleConfig"
And in fabric.mod.json:
"entrypoints": {
"sodium:config_api_user": [ "com.example.ExampleConfig" ]
}
๐งฉ HOW IT WORKS
The ConfigBuilder Sodium hands to registerConfigLate always implements SaltyConfigBuilder while Chloride is
installed, so SaltyConfigBuilder.of(builder) is a safe cast. Two rules follow from how the screens work:
- Check
SaltyConfigBuilder.available()first. It is true while the player uses one of Chloride's styles. On Sodium's own style the extended options cannot be drawn, so don't register them there. Sodium callsregisterConfigLateagain every time the player switches style, and your code picks the right branch each time. - Keep Chloride optional. When Chloride is not installed its classes don't exist. Ask your loader whether the
mod
chlorideis present, and keep every use of the Salty API in a class of its own that only loads then.
An extended option is added to a Sodium option group like any other. Sodium stores a placeholder with its name,
tooltip and enabled state, and the value lives on Chloride's side. For the player it behaves like every other
option: staged until Apply, with undo, reset and Reset All, found by the search, and locked by lockedOptions.
๐๏ธ OPTION TYPES
| Method | Value | Drawn as |
|---|---|---|
createStringOption | String | An edit box on the option row |
createChoiceOption | One String out of a set | A dropdown, or one flag row per value |
createIdentifierListOption | List<ResourceLocation> | A foldable list with a row per entry and one to add more |
createActionOption | None | A button that runs something |
createDropdownEnumOption | An enum | A dropdown here, Sodium's own control on its screen |
Every builder shares these setters:
setNameandsetTooltip: required.setEnabledorsetEnabledProvider(provider, dependencies...): the same ones Sodium has. The provider runs again when one of the options it depends on changes.setStorageHandler: runs once after Apply wrote the option through its binding, however many options share the handler. Save your config file there.setFileDrop: takes the files the player drops on the settings screen while the option is on show.
The three that hold a value add setDefaultValue and setBinding(save, load), both required. After saving, the
value is read back through load, so a binding that clamps or refuses a value shows what it really kept.
StringOptionBuilder.setMaxLength: the characters the edit box accepts, 64 by default.ChoiceOptionBuilder.setEntries: a supplier of the values, asked again every time the list is rebuilt, so the set can change while the screen is open.ChoiceOptionBuilder.setStyle:DROPDOWN(the default) orRADIO, one flag row per value.ActionOptionBuilder.setAction: required.setLabelchanges the text of the button.
createDropdownEnumOption is different: it returns Sodium's own EnumOptionBuilder. The option is a regular one
that works on every screen, and only its looks change on Chloride's. It needs no available() check.
โ๏ธ EXAMPLE
public final class ExampleConfig implements ConfigEntryPoint {
@Override
public void registerConfigLate(final ConfigBuilder builder) {
final OptionGroupBuilder group = builder.createOptionGroup();
// ... YOUR REGULAR SODIUM OPTIONS
// THE SALTY API STAYS IN ITS OWN CLASS, WHICH ONLY LOADS WHILE CHLORIDE IS INSTALLED
if (ExampleMod.CHLORIDE_INSTALLED) ExampleSaltyOptions.add(builder, group);
builder.registerOwnModOptions().addPage(builder.createOptionPage()
.setName(Component.literal("Example"))
.addOptionGroup(group));
}
}
final class ExampleSaltyOptions {
private static final ResourceLocation GREETING = ResourceLocation.fromNamespaceAndPath("example", "greeting");
private static final ResourceLocation THEME = ResourceLocation.fromNamespaceAndPath("example", "theme");
private static final ResourceLocation IGNORED = ResourceLocation.fromNamespaceAndPath("example", "ignored");
private static final ResourceLocation FOLDER = ResourceLocation.fromNamespaceAndPath("example", "folder");
static void add(final ConfigBuilder builder, final OptionGroupBuilder group) {
// SODIUM'S OWN SCREEN CANNOT DRAW THESE
if (!SaltyConfigBuilder.available()) return;
final SaltyConfigBuilder salty = SaltyConfigBuilder.of(builder);
group.addOption(salty.createStringOption(GREETING)
.setName(Component.literal("Greeting"))
.setTooltip(Component.literal("Text shown when you join a world"))
.setStorageHandler(ExampleMod::saveConfig)
.setDefaultValue("Hello")
.setMaxLength(32)
.setBinding(value -> ExampleMod.greeting = value, () -> ExampleMod.greeting));
group.addOption(salty.createChoiceOption(THEME)
.setName(Component.literal("Theme"))
.setTooltip(Component.literal("Colors of the example screen"))
.setStorageHandler(ExampleMod::saveConfig)
.setEntries(() -> List.of("light", "dark", "amoled"))
.setDefaultValue("dark")
.setBinding(value -> ExampleMod.theme = value, () -> ExampleMod.theme));
group.addOption(salty.createIdentifierListOption(IGNORED)
.setName(Component.literal("Ignored entities"))
.setTooltip(Component.literal("Entities the example leaves alone"))
.setStorageHandler(ExampleMod::saveConfig)
.setDefaultValue(List.of(ResourceLocation.withDefaultNamespace("bat")))
.setBinding(value -> ExampleMod.ignored = value, () -> ExampleMod.ignored));
group.addOption(salty.createActionOption(FOLDER)
.setName(Component.literal("Example folder"))
.setTooltip(Component.literal("Opens the folder of the example files"))
.setLabel(Component.literal("Open"))
.setAction(ExampleMod::openFolder));
}
}
๐ FILE DROPS
setFileDrop works on every extended option, action buttons included. When the player drops files on the settings
screen, the first enabled option on show with a handler takes them, and the list is rebuilt afterwards. It is how
the Shader Packs page installs a pack.
salty.createChoiceOption(PACK)
.setStyle(ChoiceOptionBuilder.Style.RADIO)
.setEntries(ExampleMod::installedPacks)
.setFileDrop(files -> files.forEach(ExampleMod::installPack))
// ... NAME, TOOLTIP, DEFAULT AND BINDING
The handler runs on the render thread, inside a window callback. Catch what your file handling can throw, and keep heavy copies off that thread.
๐ช PAGES OF OTHER MODS
Two calls change what another mod registered. They are how Chloride brings the shader pack selection of Iris
into the settings instead of jumping to its screen. Use them only while available() is true.
hideOption(id): hides an option, and its group too when nothing else is left in it. Don't hide an option that another one depends on, or the last option of a page: Sodium refuses to build that config and the game stops.replacePage(configId, name, page): shows your page in place of the pagenameof the modconfigId. The name is matched against the component the mod registered, so it breaks if that mod renames its page.
Call them inside registerConfigLate, before the other mod builds its pages. Entry points run in no fixed order,
so Chloride itself hooks the entry point of Iris for that.
๐ GOOD TO KNOW
- Option ids are unique across every mod in the video settings, extended options included.
- A required setter left out fails as soon as the option is added to its group, with a message naming it.
- The Salty API needs the config API of Sodium, so it is for Minecraft 1.21.1 and newer. On 1.20.1 (Embeddium) Chloride keeps it to its own pages.
ResourceLocationisIdentifierfrom Minecraft 1.21.11 on, in the API too.- NeoForge only:
FastModelSettingsUpdate.ChestEventandBedEventare posted when Fast Chests or Fast Beds change. They are experimental.
๐ฐ DONATIONS
Thank you for using Chloride! ๐ซถ Every donation, big or small, helps us keep it free, updated and growing with every new Minecraft version.
โ๏ธ LICENSE
Chloride is under the Defensive Public Source (Non-Commercial) License v1.0.1. Copyright SrRapero720 (https://github.com/SrRapero720).
Permitted non-commercial usage (included and not limited to modpacks or server packs). Commercial use is forbidden; contact us to use Chloride for commercial purposes.
The libraries Chloride ships keep their own licenses.



