PotionFX module

PotionFX: Minecraft 26.3 cheat module, full source for every implementation (1 client: LiquidBounce (Kotlin)).

1 implementationRENDER

Clients with this module

Full module source: 1 implementation

Every implementation below is the complete module file, verbatim. Expand a client to read its code.

LiquidBounce (Kotlin)RENDERsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/render/potionfx/ModulePotionFX.ktKotlin · 69 lines · 2.8 KB

Renders visual aura effects around players, splash, and lingering potions.

ModulePotionFX.ktKotlin · Minecraft 26.2 · 69 lines · 2.8 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce)
3
 *
4
 * Copyright (c) 2015 - 2026 CCBlueX
5
 *
6
 * LiquidBounce is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * LiquidBounce is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with LiquidBounce. If not, see <https://www.gnu.org/licenses/>.
18
 */
19
20
package net.ccbluex.liquidbounce.features.module.modules.render.potionfx
21
22
import net.ccbluex.liquidbounce.LiquidBounce
23
import net.ccbluex.liquidbounce.config.utils.TextureMode
24
import net.ccbluex.liquidbounce.features.module.ClientModule
25
import net.ccbluex.liquidbounce.features.module.ModuleCategories
26
import net.ccbluex.liquidbounce.features.module.modules.render.potionfx.modes.PotionFXLingering
27
import net.ccbluex.liquidbounce.features.module.modules.render.potionfx.modes.PotionFXPlayers
28
import net.ccbluex.liquidbounce.features.module.modules.render.potionfx.modes.PotionFXSplash
29
import net.ccbluex.liquidbounce.utils.render.asTexture
30
import net.ccbluex.liquidbounce.utils.render.readNativeImage
31
32
object ModulePotionFX : ClientModule("PotionFX", ModuleCategories.RENDER) {
33
34
    init {
35
        tree(PotionFXPlayers)
36
        tree(PotionFXSplash)
37
        tree(PotionFXLingering)
38
    }
39
40
    val glow = LiquidBounce.resource("particles/glow.png")
41
        .readNativeImage().asTexture { "PotionFX Image glow" }
42
43
    @Suppress("unused")
44
    enum class PresetTexture(override val tag: String, val path: String) : TextureMode.Builtin.Preset {
45
        DASHED("Dashed", "potion_fx/main/dashed.png"),
46
        SOLID("Solid", "potion_fx/main/solid.png"),
47
        RUNES("Runes", "potion_fx/main/runes.png"),
48
        ATLAS("Atlas", "potion_fx/main/atlas.png");
49
50
        override val texture by lazy {
51
            LiquidBounce.resource(this.path)
52
                .readNativeImage().asTexture { "PotionFX Image $tag" }
53
        }
54
    }
55
56
    @Suppress("unused")
57
    enum class SecondaryPresetTexture(override val tag: String, val path: String) : TextureMode.Builtin.Preset {
58
        CRACKED("Cracked", "potion_fx/secondary/cracked.png"),
59
        NEURON("Neuron", "potion_fx/secondary/neuron.png"),
60
        HEXAGON("Hexagon", "potion_fx/secondary/hexagon.png"),
61
        STARDUST("Stardust", "potion_fx/secondary/stardust.png"),;
62
63
        override val texture by lazy {
64
            LiquidBounce.resource(this.path)
65
                .readNativeImage().asTexture { "PotionFX Image $tag" }
66
        }
67
    }
68
}
69