Sodium Blending Registry

Sodium Blending Registry

Mod

This is a plugin for sodium, that fixes a sodium "color blending bug", and adds a dynamic way to register blocks for blending.

Client CursedLibraryOptimization

11.9k downloads
73 followers
Createda year ago
Updated9 months ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Sodium Blending Registry

This is a Sodium plugin designed to address a known bug in the Sodium graphics engine that causes incorrect color blending, resulting in visual inconsistencies in many Minecraft mods which make use of color providers. The bug is described in issue 895.

Additionally, it introduces a new tag c:blendable that allows custom blocks or fluids to be registered to use the Sodium blending system.

❗IMPORTANT NOTE❗
Starting from Sodium 0.5, this plugin is a part of Sodium itself, and is not required anymore.
If you use this with Sodium 0.5 or newer releases the game will crash!

Examples of the bug

img1

img2

Installation

To install the mod, follow these steps:

  1. Make sure you have Fabric and Sodium installed.
  2. Download the correct release of the mod file from Modrinth, for the specific Minecraft and Sodium releases.
  3. Move the downloaded mod file into the mods folder.

Usage of the tag

The c:blendable tag can be particularly useful for mod developers when they introduce a block or fluid that utilizes color providers based on the biome. By applying the tag, the new block or fluid will make use of Sodium blending system instead of the vanilla one.

To use the tag, add a new file named blendable.json into resources/data/c/tags/blocks for blocks, or resources/data/c/tags/fluids for fluids.

The file should be similar to this:

{
  "replace": false,
  "values": [
	"testmod:newleaveblock"
  ]
}

Please note that this feature is intended for mod developers and not for end users.

Bug Reporting

Note that this mod fixes only the blending bug of Sodium. For other Sodium bugs, please open an issue on Sodium instead and not here!

To ensure accurate bug reporting, please follow these steps:

  1. Verify that you are using the correct version of the plugin for the specific Minecraft and Sodium release.
  2. Reproduce the issue, noting down any specific steps or circumstances that trigger the bug.
  3. Provide any relevant information, including your Minecraft version, Fabric version, Sodium version, and any other mods you have installed.
  4. Provide the logs if they are relevant.

References

License

Copyright (C) 2023 devpelux (Salvatore Peluso)
Licensed under MIT license.

External resources



Project members

devpelux

Owner


Technical information

License
Client side
required
Server side
unsupported
Project ID