Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

new: Add FogColor #2152

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package org.kamiblue.client.module.modules.render

import org.kamiblue.client.module.Category
import org.kamiblue.client.module.Module
import net.minecraftforge.client.event.EntityViewRenderEvent
import org.kamiblue.event.listener.listener

internal object FogColor : Module(
name = "FogColor",
description = "Recolors render fog",
category = Category.RENDER
) {
private val r by setting("Red", 111, 0..255, 1)
private val g by setting("Green", 166, 0..255, 1)
private val b by setting("Blue", 222, 0..255, 1)

init {
listener<EntityViewRenderEvent.FogColors> {
it.red = r.toFloat() / 255f
it.green = g.toFloat() / 255f
it.blue = b.toFloat() / 255f
}
}
}