- Java 95.2%
- GLSL 4.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Registered through Forge's ClientCommandHandler, so it is client side and works in single player and on servers that do not have the mod. Aliased to /dme, with tab completion, and permission forced open because the inherited level of 4 would otherwise make it unusable when not opped. The reload cannot go through ConfigManager.sync: Forge keeps one Configuration per file for the lifetime of the game and only copies config values into fields while still loading, so once in world it neither re-reads the file nor notices anything edited on disk. DarkConfig.reloadFromDisk therefore reads the file itself with a throwaway Configuration. Reloading also re-reads the shader config and clears the cached blacklist decisions, so edits to either file take effect without restarting. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
| .github | ||
| DME-1.12.2 | ||
| gradle/wrapper | ||
| src/main | ||
| .gitignore | ||
| build.gradle | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| README.md | ||
| settings.gradle | ||
DarkModeEverywhere
Dark Mode Everywhere uses the built in 1.18 Minecraft shaders to transform any GUI texture into a Dark Mode. Thanks to the shaders it will work in any GUI in the game, it will also try to modify the text color so its not hard to read in dark mode. Please report any visual issues so I can fix it.
The mod currently provides with 3 dark modes to suit your needs that can be easily changed.
You can have the possibilty of adding new GUI shaders by modifying the "darkmodeeverywhereshaders.json" and using a Resource Loader mod or a Resource Pack.
Shader Blacklist
#A list of strings that will prevent the dark shader to be used. #Each string consists of the class and the method or any part of it to prevent the use of the dark shader. #The dump will consist of a bunch of string with this style 'net.minecraftforge.client.gui.overlay.ForgeGui:renderHunger' (class:method), any part of that dump (like just using renderHunger) will prevent the hunger bar from using the dark shader. METHOD_SHADER_BLACKLIST = ["mezz.jei.common.render.FluidTankRenderer:drawTextureWithMasking", "renderCrosshair", "net.minecraft.client.gui.screens.TitleScreen", "renderSky", "renderHotbar", "setupOverlayRenderState", "net.minecraftforge.client.gui.overlay.ForgeGui", "renderFood", "renderExperienceBar"] #Enabling this config will dump every 5 seconds which classes & methods were used to render something in the screen and the dark shader was trying to be used METHOD_SHADER_DUMP = false