Wiki 9Minecraft Wiki 9Minecraft

Ldlib Wiki & Guide

Java EditionMod

A library mod offering shared code and utilities for other mods, including a test block.

DownloadLdlib

Get the files on 9Minecraft

Contents (6)
  1. Guides
  2. Blocks
  3. Configuration
  4. Font
  5. Frequently asked questions

Guides

Step-by-step, in-game.

Blocks

Configuration

Every setting in the mod config file, with what it changes.

OptionWhat it does
fontAtlasSizeAtlas Page SizeEdge length in pixels of one glyph atlas page. Larger pages fit more glyphs, so a screen full of text costs fewer draw calls.
textLayoutCacheCache Text LayoutReuse where each glyph goes between frames instead of working it out again every frame. Turn off only if text ever renders with the wrong styling.
sdfEmSizeDistance Field ResolutionPixel height one em is rasterized at when building the distance field. Higher keeps sharp corners sharper at large text sizes, at the cost of atlas space.
sdfSharpnessEdge SharpnessMultiplier on the width of the anti aliased edge. Above 1 is crisper, below 1 is softer.
fontRasterMaxSizeRaster Size LimitLargest text size, in device pixels, that will be rasterized at its drawn size. Anything larger uses the distance field instead. A text element's size works out to font size times GUI scale.
fontRasterEvictSecondsRaster Size TimeoutSeconds a rasterized size may go undrawn before its atlas is freed. Keeps zooming through many sizes from using memory without bound.
fontRenderModeRendererVanilla hands text to Minecraft untouched. SDF samples one scalable atlas: smooth at any size or angle, a little soft up close. Raster redraws each glyph at the size it appears at: sharpest, but a separate atlas per size. Auto uses raster for still text on the
sdfWeightStem WeightThickens or thins strokes by a fraction of a pixel. Raise slightly if small text looks too thin.
fontText RenderingHow LDLib draws the text in its own interfaces. Does not affect vanilla screens or other mods.

Font

OptionWhat it does
autoAutomatic
sdfDistance Field
rasterRasterized
vanillaVanilla

Frequently asked questions

What is the primary purpose of Ldlib Mod?
LDLib Mod is a library mod that provides tools for custom rendering and modular GUI creation in Minecraft.
What rendering features does Ldlib Mod support?
LDLib Mod supports emissive textures, custom shaders, and particle systems for enhanced rendering capabilities.
Is Ldlib Mod a standalone mod or a dependency?
LDLib Mod is a library mod, meaning it functions as a dependency for other mods rather than as a standalone mod.
What does the modular GUI framework in Ldlib Mod allow?
The modular GUI framework enables developers to create customizable and flexible graphical user interfaces for their mods.
Can Ldlib Mod be used to create custom particle effects?
Yes, LDLib Mod includes particle system tools that allow for the creation of custom particle effects.
What type of mod developers would benefit from using Ldlib Mod?
Mod developers who need advanced rendering options, custom shaders, or modular GUI systems would benefit from using LDLib Mod as a library foundation.