@CookieChinese 呃,你跪下来给我磕头我就投java区
Gking
Posts
-
[Source Share] Fake New Novoline Notification In Custom LiquidBounce -
[Source Share] Fake New Novoline Notification In Custom LiquidBounceAs the title
/** * SpaceKing OpenSource Free Share */ package net.ccbluex.liquidbounce.ui.client.hud.element.elements import net.ccbluex.liquidbounce.LiquidBounce import net.ccbluex.liquidbounce.features.module.modules.render.HUD import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner import net.ccbluex.liquidbounce.ui.client.hud.element.Border import net.ccbluex.liquidbounce.ui.client.hud.element.Element import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo import net.ccbluex.liquidbounce.ui.client.hud.element.Side import net.ccbluex.liquidbounce.ui.font.Fonts import net.ccbluex.liquidbounce.utils.render.EaseUtils import net.ccbluex.liquidbounce.utils.render.GLUtils import net.ccbluex.liquidbounce.utils.render.RenderUtils import net.minecraft.client.renderer.GlStateManager import org.lwjgl.opengl.GL11 import java.awt.Color import java.math.BigDecimal import kotlin.math.pow /** * CustomHUD Notification element */ @ElementInfo(name = "Notifications", single = true) class Notifications(x: Double = 0.0, y: Double = 0.0, scale: Float = 1F, side: Side = Side(Side.Horizontal.RIGHT, Side.Vertical.DOWN)) : Element(x, y, scale, side) { /** * Example notification for CustomHUD designer */ private val exampleNotification = Notification("Notification", "This is an example notification.", NotifyType.INFO) /** * Draw element */ override fun drawElement(partialTicks: Float): Border? { val notifications = mutableListOf<Notification>() //FUCK YOU java.util.ConcurrentModificationException for ((index, notify) in LiquidBounce.hud.notifications.withIndex()) { GL11.glPushMatrix() if (notify.drawNotification(index)) { notifications.add(notify) } GL11.glPopMatrix() } for (notify in notifications) { LiquidBounce.hud.notifications.remove(notify) } if (mc.currentScreen is GuiHudDesigner) { if (!LiquidBounce.hud.notifications.contains(exampleNotification)) LiquidBounce.hud.addNotification(exampleNotification) exampleNotification.fadeState = FadeState.STAY exampleNotification.displayTime = System.currentTimeMillis() // exampleNotification.x = exampleNotification.textLength + 8F return Border(-exampleNotification.width.toFloat() + 80, -exampleNotification.height.toFloat()-24.5f, 80F, -24.5F) } return null } } class Notification(val title: String, val content: String, val type: NotifyType, val time: Int = 2000, val animeTime: Int = 500) { val height = 30 var fadeState = FadeState.IN var nowY = -height var string = "" var displayTime = System.currentTimeMillis() var animeXTime = System.currentTimeMillis() var animeYTime = System.currentTimeMillis() val width = Fonts.font32.getStringWidth(content) + 53 fun drawCircle(x: Float, y: Float, radius: Float, start: Int, end: Int) { GlStateManager.enableBlend() GlStateManager.disableTexture2D() GlStateManager.tryBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO) GL11.glEnable(GL11.GL_LINE_SMOOTH) GL11.glLineWidth(2f) GL11.glBegin(GL11.GL_LINE_STRIP) var i = end.toFloat() while (i >= start) { var c = RenderUtils.getGradientOffset(Color(HUD.r.get(),HUD.g.get(),HUD.b.get()), Color(HUD.r2.get(),HUD.g2.get(),HUD.b2.get(), 1), (Math.abs(System.currentTimeMillis() / 360.0 + (i* 34 / 360) * 56 / 100) / 10)).rgb val f2 = (c shr 24 and 255).toFloat() / 255.0f val f22 = (c shr 16 and 255).toFloat() / 255.0f val f3 = (c shr 8 and 255).toFloat() / 255.0f val f4 = (c and 255).toFloat() / 255.0f GlStateManager.color(f22, f3, f4, f2) GL11.glVertex2f( (x + Math.cos(i * Math.PI / 180) * (radius * 1.001f)).toFloat(), (y + Math.sin(i * Math.PI / 180) * (radius * 1.001f)).toFloat() ) i -= 360f / 90.0f } GL11.glEnd() GL11.glDisable(GL11.GL_LINE_SMOOTH) GlStateManager.enableTexture2D() GlStateManager.disableBlend() } /** * Draw notification */ /** * SpaceKing OpenSource Free Share */ fun drawNotification(index: Int): Boolean { val realY = -(index + 1) * (height + 10) val nowTime = System.currentTimeMillis() //Y-Axis Animation if (nowY != realY) { var pct = (nowTime - animeYTime) / animeTime.toDouble() if (pct > 1) { nowY = realY pct = 1.0 } else { pct = easeOutBack(pct) } GL11.glTranslated(0.0, (realY - nowY) * pct, 0.0) } else { animeYTime = nowTime } GL11.glTranslated(0.0, nowY.toDouble(), 0.0) //X-Axis Animation var pct = (nowTime - animeXTime) / animeTime.toDouble() when (fadeState) { FadeState.IN -> { if (pct > 1) { fadeState = FadeState.STAY animeXTime = nowTime pct = 1.0 } pct = easeOutBack(pct) } FadeState.STAY -> { pct = 1.0 if ((nowTime - animeXTime) > time) { fadeState = FadeState.OUT animeXTime = nowTime } } FadeState.OUT -> { if (pct > 1) { fadeState = FadeState.END animeXTime = nowTime pct = 1.0 } pct = 1 - easeInBack(pct) } FadeState.END -> { return true } } if (type.toString() == "SUCCESS") { string = "a" } if (type.toString() == "ERROR") { string = "B" } if (type.toString() == "WARNING") { string = "D" } if (type.toString() == "INFO") { string = "C" } GL11.glScaled(pct,pct,pct) GL11.glTranslatef(-width.toFloat()/2 , -height.toFloat()/2, 0F) RenderUtils.drawRect(0F, 0F, width.toFloat(), height.toFloat(), Color(63, 63, 63, 140)) drawGradientSideways(0.0, height - 1.7, (width * ((nowTime - displayTime) / (animeTime * 2F + time))).toDouble(), height.toDouble(), Color(HUD.r.get(),HUD.g.get(),HUD.b.get()).rgb, Color(HUD.r2.get(),HUD.g2.get(),HUD.b2.get()).rgb) Fonts.font37.drawStringWithShadow("$title", 24.5F, 7F, Color.WHITE.rgb) Fonts.font32.drawStringWithShadow("$content" + " (" + BigDecimal(((time - time * ((nowTime - displayTime) / (animeTime * 2F + time))) / 1000).toDouble()).setScale(1, BigDecimal.ROUND_HALF_UP).toString() + "s)", 24.5F, 17.3F, Color.WHITE.rgb) drawFilledCircle(13, 15, 8.5F,Color.BLACK) Fonts.Nicon80.drawString(string, 3, 8, Color.WHITE.rgb) drawCircle(12.9f,15.0f,8.8f, 0,360) GlStateManager.resetColor() return false } fun drawGradientSideways(left: Double, top: Double, right: Double, bottom: Double, col1: Int, col2: Int) { val f = (col1 shr 24 and 0xFF) / 255.0f val f1 = (col1 shr 16 and 0xFF) / 255.0f val f2 = (col1 shr 8 and 0xFF) / 255.0f val f3 = (col1 and 0xFF) / 255.0f val f4 = (col2 shr 24 and 0xFF) / 255.0f val f5 = (col2 shr 16 and 0xFF) / 255.0f val f6 = (col2 shr 8 and 0xFF) / 255.0f val f7 = (col2 and 0xFF) / 255.0f GL11.glEnable(3042) GL11.glDisable(3553) GL11.glBlendFunc(770, 771) GL11.glEnable(2848) GL11.glShadeModel(7425) GL11.glPushMatrix() GL11.glBegin(7) GL11.glColor4f(f1, f2, f3, f) GL11.glVertex2d(left, top) GL11.glVertex2d(left, bottom) GL11.glColor4f(f5, f6, f7, f4) GL11.glVertex2d(right, bottom) GL11.glVertex2d(right, top) GL11.glEnd() GL11.glPopMatrix() GL11.glEnable(3553) GL11.glDisable(3042) GL11.glDisable(2848) GL11.glShadeModel(7424) } fun drawFilledCircle(xx: Int, yy: Int, radius: Float, color: Color) { val sections = 50 val dAngle = 2 * Math.PI / sections var x: Float var y: Float GL11.glPushAttrib(GL11.GL_ENABLE_BIT) GLUtils.glEnable(GL11.GL_BLEND) GLUtils.glDisable(GL11.GL_TEXTURE_2D) GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA) GLUtils.glEnable(GL11.GL_LINE_SMOOTH) GL11.glBegin(GL11.GL_TRIANGLE_FAN) for (i in 0 until sections) { x = (radius * Math.sin(i * dAngle)).toFloat() y = (radius * Math.cos(i * dAngle)).toFloat() GL11.glColor4f(color.red / 255f, color.green / 255f, color.blue / 255f, color.alpha / 255f) GL11.glVertex2f(xx + x, yy + y) } GlStateManager.color(0f, 0f, 0f) GL11.glEnd() GL11.glPopAttrib() } fun easeInBack(x: Double): Double { val c1 = 1.70158 val c3 = c1 + 1 return c3 * x * x * x - c1 * x * x } fun easeOutBack(x: Double): Double { val c1 = 1.70158 val c3 = c1 + 1 return 1 + c3 * (x - 1).pow(3) + c1 * (x - 1).pow(2) } } enum class NotifyType() { SUCCESS(), ERROR(), WARNING(), INFO(); } enum class FadeState { IN, STAY, OUT, END } /** * SpaceKing OpenSource Free Share */
Don't resell it plz,and this is the effect of it
-
TargetStrafeSkid From FDPClient plz
-
ArrayList made on java scriptI love it
-
I Fixed Build errorHello everyone I fixed Build error
-
HELPgradlew clean build --stacktrace
org.gradle.api.GradleScriptException: A problem occurred evaluating project ':1.8.9-Forge'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:92)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:206)
at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:211)
at org.gradle.configuration.BuildOperationScriptPlugin$1$1.run(BuildOperationScriptPlugin.java:69)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.configuration.BuildOperationScriptPlugin$1.execute(BuildOperationScriptPlugin.java:66)
at org.gradle.configuration.BuildOperationScriptPlugin$1.execute(BuildOperationScriptPlugin.java:63)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:48)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:63)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:41)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:105)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:68)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:687)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:140)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:62)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:41)
at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:274)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:182)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:141)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51) at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: java.lang.NullPointerException
at net.minecraftforge.gradle.common.BaseExtension.checkMappings(BaseExtension.java:261)
at net.minecraftforge.gradle.common.BaseExtension.setMappings(BaseExtension.java:240)
at net.minecraftforge.gradle.user.patcherUser.forge.ForgeExtension_Decorated.setMappings(Unknown Source)
at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.setProperty(BeanDynamicObject.java:376)
at org.gradle.internal.metaobject.BeanDynamicObject.trySetProperty(BeanDynamicObject.java:176)
at org.gradle.internal.metaobject.CompositeDynamicObject.trySetProperty(CompositeDynamicObject.java:66)
at org.gradle.internal.metaobject.ConfigureDelegate.setProperty(ConfigureDelegate.java:95)
at build_bscxab9jbq0ihtv2lykrws8ym$_run_closure4.doCall(C:\Users\g1383\Desktop\1\SpaceKing\1.8.9-Forge\build.gradle:63)
at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:71)
at org.gradle.util.ConfigureUtil.configureTarget(ConfigureUtil.java:155)
at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:106)
at org.gradle.util.ConfigureUtil$WrappedConfigureAction.execute(ConfigureUtil.java:167)
at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:197)
at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:69)
at org.gradle.api.internal.plugins.DefaultConvention.configureExtension(DefaultConvention.java:412)
at org.gradle.api.internal.plugins.DefaultConvention.access$500(DefaultConvention.java:45)
at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.tryInvokeMethod(DefaultConvention.java:349)
at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98)
at org.gradle.internal.metaobject.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:30)
at org.gradle.groovy.scripts.BasicScript$ScriptDynamicObject.tryInvokeMethod(BasicScript.java:133)
at org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:160)
at org.gradle.groovy.scripts.BasicScript.invokeMethod(BasicScript.java:82)
at build_bscxab9jbq0ihtv2lykrws8ym.run(C:\Users\g1383\Desktop\1\SpaceKing\1.8.9-Forge\build.gradle:60)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:90)
... 102 more -
SadFace Error -
[Kotlin]ModuleInfo ElementFirse you should add this into Module.kt
var key = false set(key) { field = key if (!LiquidBounce.isStarting) LiquidBounce.fileManager.saveConfig(LiquidBounce.fileManager.modulesConfig) }
Then add this into ModulesConfig.java and register this command
module.setKey(jsonModule.get("KeyShow").getAsBoolean());
/* * LiquidBounce Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/CCBlueX/LiquidBounce/ */ package net.ccbluex.liquidbounce.features.command.commands import net.ccbluex.liquidbounce.LiquidBounce import net.ccbluex.liquidbounce.features.command.Command import net.ccbluex.liquidbounce.ui.client.hud.element.elements.Notification import net.ccbluex.liquidbounce.ui.client.hud.element.elements.NotifyType import org.lwjgl.input.Keyboard class KeyShowCommand : Command("moduleinfo", emptyArray()) { /** * Execute commands with provided [args] */ override fun execute(args: Array<String>) { if (args.size > 1) { // Get module by name val module = LiquidBounce.moduleManager.getModule(args[1]) if (module == null) { chat("Module §a§l" + args[1] + "§3 not found.") return } // Response to user if(!module.key){ module.key = true // LiquidBounce.hud.addNotification(Notification("ModuleInfo","Add Module Show in ModuleInfo Element", NotifyType.INFO)) } else if(module.key){ module.key = false // LiquidBounce.hud.addNotification(Notification("ModuleInfo","Delete Module Show in ModuleInfo Element", NotifyType.INFO)) } return } chatSyntax(arrayOf("<module> <on/off>")) } override fun tabComplete(args: Array<String>): List<String> { if (args.isEmpty()) return emptyList() val moduleName = args[0] return when (args.size) { 1 -> LiquidBounce.moduleManager.modules .map { it.name } .filter { it.startsWith(moduleName, true) } .toList() else -> emptyList() } } }
At last, use this and register elemnt
package net.ccbluex.liquidbounce.ui.client.hud.element.elements import net.ccbluex.liquidbounce.LiquidBounce import net.ccbluex.liquidbounce.ui.client.hud.element.Border import net.ccbluex.liquidbounce.ui.client.hud.element.Element import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo import net.ccbluex.liquidbounce.utils.PlayerListObject import net.ccbluex.liquidbounce.utils.render.GLUtils import net.ccbluex.liquidbounce.utils.render.RenderUtils import net.ccbluex.liquidbounce.value.IntegerValue import net.ccbluex.liquidbounce.value.ListValue import net.minecraft.client.gui.ScaledResolution import net.minecraft.client.renderer.GlStateManager import net.minecraft.util.EnumChatFormatting import org.lwjgl.input.Keyboard import org.lwjgl.opengl.GL11 import java.awt.Color import java.util.concurrent.CopyOnWriteArrayList /** * CustomHUD Armor element * * Shows a horizontal display of current armor */ @ElementInfo(name = "ModuleInfo") class ModuleInfo(x: Double = 10.0, y: Double = 10.0, scale: Float = 1F) : Element(x, y, scale) { /** * Draw element */ override fun drawElement(): Border { var textY: Float = 0f RenderUtils.drawRect(-1f, -11f, mc.fontRendererObj.getStringWidth("Module Info") + 90f, mc.fontRendererObj.FONT_HEIGHT.toFloat() / 2 - 5, Color(30, 30, 35, 220).rgb) mc.fontRendererObj.drawString("Module Info", 2F, -10f,-1,true) for (module in LiquidBounce.moduleManager.modules) { if(!module.key) continue RenderUtils.drawRect(-1f, -1f+textY, mc.fontRendererObj.getStringWidth("Module Info") + 90f, textY + mc.fontRendererObj.FONT_HEIGHT, Color(30, 30, 35, 170).rgb) mc.fontRendererObj.drawString(module.name, 3F, (0 + textY).toInt().toFloat(), -1,true) mc.fontRendererObj.drawString(if(module.state) EnumChatFormatting.GREEN.toString()+ "Enable" else EnumChatFormatting.RED.toString() + "Disable", 83F, (0 + textY).toInt().toFloat(), -1,true) mc.fontRendererObj.drawString(Keyboard.getKeyName(module.keyBind), 123F, (0 + textY).toInt().toFloat(), -1,true) textY += 10.0f } return Border(0f,0f,150f,textY) } }
Like this
-
Please tell me the code for the InventoryDisplay module! -
[Kotlin] New Notificationsok skidit
-
[Kotlin] KeyStrokes好ooooooooooo
-
Build failed with an exception!Plz Help me!!!!! -
[Kotlin]Inventory ElementI fix some bugs and I will send it tomorrow
-
[JAVA] Someone convert this scriptpackage net.ccbluex.liquidbounce.features.module.modules.misc import net.ccbluex.liquidbounce.event.EventTarget import net.ccbluex.liquidbounce.event.PacketEvent import net.ccbluex.liquidbounce.event.UpdateEvent import net.ccbluex.liquidbounce.event.WorldEvent import net.ccbluex.liquidbounce.features.module.Module import net.ccbluex.liquidbounce.features.module.ModuleCategory import net.ccbluex.liquidbounce.features.module.ModuleInfo import net.ccbluex.liquidbounce.value.ListValue import net.minecraft.network.Packet import net.minecraft.network.play.client.* import net.minecraft.network.play.client.C03PacketPlayer.C06PacketPlayerPosLook import org.apache.commons.lang3.ObjectUtils.mode @ModuleInfo(name = "Disabler", description = "Disable Some Anticheat By Rilshrink ", category = ModuleCategory.MISC) class Disabler : Module() { private val Mode = ListValue("AimMode", arrayOf("Lunar", "Kauri", "OnlyMC", "HazelMC", "Verus Combat"), "Lunar") var KeepAlives = ArrayList<Packet<*>>() var Transactions = ArrayList<Packet<*>>() var currentTrans = 0; fun reset(){ currentTrans = 0; KeepAlives.clear(); Transactions.clear(); } @EventTarget fun onWorld(event: WorldEvent) { reset() } @EventTarget fun onPacket(event: PacketEvent) { val packet = event.packet when (Mode.get()) { "Kauri" -> if (packet is C0FPacketConfirmTransaction) { event.cancelEvent() } "Verus Combat" -> if (packet is C0FPacketConfirmTransaction) { if (currentTrans++ > 0) event.cancelEvent() } else if (packet is C0BPacketEntityAction) { event.cancelEvent() } "Lunar", "OnlyMC" -> { if (packet is C0FPacketConfirmTransaction) { Transactions.add(packet) event.cancelEvent() } if (packet is C00PacketKeepAlive) { //Temporary until I can figure out how to packet.key -= 1337; KeepAlives.add(packet) event.cancelEvent() } if (packet is C03PacketPlayer) { mc.thePlayer.sendQueue.addToSendQueue(C0CPacketInput()) } } "HazelMC" -> { if (packet is C0FPacketConfirmTransaction) { Transactions.add(packet) event.cancelEvent() } if (packet is C00PacketKeepAlive) { KeepAlives.add(packet) event.cancelEvent() } if (packet is C03PacketPlayer) { mc.thePlayer.sendQueue.addToSendQueue(C0CPacketInput()) } } } } @EventTarget fun onUpdate(event: UpdateEvent) { when (Mode.get()) { "OnlyMC", "Lunar" -> { if (mc.thePlayer.ticksExisted % 120 == 0 && Transactions.size > currentTrans) { mc.thePlayer.sendQueue.addToSendQueue(Transactions.get(currentTrans++)) } if (mc.thePlayer.ticksExisted % 120 == 0) { var i = 0 while (i < KeepAlives.size) { val packet = KeepAlives[i] if (packet != null) { mc.thePlayer.sendQueue.addToSendQueue(packet) } i++ } KeepAlives.clear() } if (mc.thePlayer.ticksExisted % 25 == 0) { mc.thePlayer.sendQueue.addToSendQueue(C06PacketPlayerPosLook(mc.thePlayer.posX, mc.thePlayer.posY + 21, mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, true)) } if (mc.thePlayer.ticksExisted % 300 == 0) { reset() } } "HazelMC" -> { mc.thePlayer.sendQueue.addToSendQueue(C00PacketKeepAlive(0)) if (Transactions.size > currentTrans) { mc.thePlayer.sendQueue.addToSendQueue(Transactions.get(currentTrans++)) } if (mc.thePlayer.ticksExisted % 100 == 0) { var i = 0 while (i < KeepAlives.size) { val packet = KeepAlives[i] if (packet != null) { mc.thePlayer.sendQueue.addToSendQueue(packet) } i++ } KeepAlives.clear() } } } } override fun onEnable() { } override fun onDisable() { reset(); } }
try this
-
[Kotlin]Inventory ElementThis will put your inventory into your hud like this
/* * LiquidBounce Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/CCBlueX/LiquidBounce/ */ package net.ccbluex.liquidbounce.ui.client.hud.element.elements import net.ccbluex.liquidbounce.ui.client.hud.element.Border import net.ccbluex.liquidbounce.ui.client.hud.element.Element import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo import net.ccbluex.liquidbounce.utils.render.Colors import net.ccbluex.liquidbounce.utils.render.RenderUtils import net.ccbluex.liquidbounce.value.IntegerValue import net.ccbluex.liquidbounce.value.ListValue import net.minecraft.client.gui.Gui import net.minecraft.client.renderer.GlStateManager import net.minecraft.entity.player.EntityPlayer import net.minecraft.inventory.IInventory import net.minecraft.item.ItemStack import org.lwjgl.opengl.GL11 import java.awt.Color /** * CustomHUD Armor element * * Shows a horizontal display of current armor */ @ElementInfo(name = "Inventory") class Inventory(x: Double = 10.0, y: Double = 10.0, scale: Float = 1F) : Element(x, y, scale) { private var inventoryRows = 0 private val lowerInv: IInventory? = null private val Mode = ListValue("Background-Mode", arrayOf("Bordered", "Rounded","Skeet"), "Bordered") private val width = IntegerValue("BorderWidth", 1, 0, 10) private val insidec = IntegerValue("RoundedInsideC", 1, 0, 10) private val redValue = IntegerValue("Red", 255, 0, 255) private val greenValue = IntegerValue("Green", 255, 0, 255) private val blueValue = IntegerValue("Blue", 255, 0, 255) private val alpha = IntegerValue("Alpha", 255, 0, 255) private val bordredValue = IntegerValue("BorderRed", 255, 0, 255) private val bordgreenValue = IntegerValue("BorderGreen", 255, 0, 255) private val bordblueValue = IntegerValue("BorderBlue", 255, 0, 255) private val bordalpha = IntegerValue("BorderAlpha", 255, 0, 255) /** * Draw element */ override fun drawElement(): Border { if (Mode.get() == "Rounded") { drawRoundedRect(0F, this.inventoryRows * 18F + 17F, 176F, 96F, Color(redValue.get(), greenValue.get(), blueValue.get(), alpha.get()).rgb, insidec.get()) } if (Mode.get() == "Bordered") { RenderUtils.drawBorderedRect(0F, this.inventoryRows * 18F + 17F, 176F, 96F, width.get().toFloat(), Color(bordredValue.get(), bordgreenValue.get(), bordblueValue.get(), bordalpha.get()).rgb, Color(redValue.get(), greenValue.get(), blueValue.get(), alpha.get()).rgb) } if(Mode.get() == "Skeet") { autoSkeet(0.0, (this.inventoryRows * 18F + 17F).toDouble(), 176.0, 96.0,1.0) } if (lowerInv != null) { this.inventoryRows = lowerInv.getSizeInventory() } renderInventory1(mc.thePlayer) renderInventory2(mc.thePlayer) renderInventory3(mc.thePlayer) return Border(0F, this.inventoryRows * 18F + 17F, 176F, 96F) } private fun renderInventory1(player: EntityPlayer) { var armourStack: ItemStack? var renderStack = player.inventory.mainInventory var xOffset = 8 renderStack = player.inventory.mainInventory for (index in 17 downTo 9) { armourStack = renderStack[index] if (armourStack == null) continue this.renderItemStack(armourStack, xOffset, 30) xOffset += 18 } } private fun renderInventory2(player: EntityPlayer) { var armourStack: ItemStack? var renderStack = player.inventory.mainInventory var xOffset = 8 renderStack = player.inventory.mainInventory for (index in 26 downTo 18) { armourStack = renderStack[index] if (armourStack == null) continue this.renderItemStack(armourStack, xOffset, 48) xOffset += 18 } } private fun renderInventory3(player: EntityPlayer) { var armourStack: ItemStack? var renderStack = player.inventory.mainInventory var xOffset = 8 renderStack = player.inventory.mainInventory for (index in 35 downTo 27) { armourStack = renderStack[index] if (armourStack == null) continue this.renderItemStack(armourStack, xOffset, 66) xOffset += 18 } } private fun renderItemStack(stack: ItemStack, x: Int, y: Int) { GlStateManager.pushMatrix() mc.renderItem.renderItemAndEffectIntoGUI(stack, x, y) GlStateManager.popMatrix() } fun drawRect(x: Float, y: Float, x2: Float, y2: Float, color: Int) { GL11.glEnable(GL11.GL_BLEND) GL11.glDisable(GL11.GL_TEXTURE_2D) GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA) GL11.glEnable(GL11.GL_LINE_SMOOTH) glColor(color) GL11.glBegin(GL11.GL_QUADS) GL11.glVertex2d(x2.toDouble(), y.toDouble()) GL11.glVertex2d(x.toDouble(), y.toDouble()) GL11.glVertex2d(x.toDouble(), y2.toDouble()) GL11.glVertex2d(x2.toDouble(), y2.toDouble()) GL11.glEnd() GL11.glEnable(GL11.GL_TEXTURE_2D) GL11.glDisable(GL11.GL_BLEND) GL11.glDisable(GL11.GL_LINE_SMOOTH) } fun drawRect(x: Float, y: Double, x2: Double, y2: Double, color: Int) { GL11.glEnable(GL11.GL_BLEND) GL11.glDisable(GL11.GL_TEXTURE_2D) GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA) GL11.glEnable(GL11.GL_LINE_SMOOTH) glColor(color) GL11.glBegin(GL11.GL_QUADS) GL11.glVertex2d(x2, y) GL11.glVertex2d(x.toDouble(), y) GL11.glVertex2d(x.toDouble(), y2) GL11.glVertex2d(x2, y2) GL11.glEnd() GL11.glEnable(GL11.GL_TEXTURE_2D) GL11.glDisable(GL11.GL_BLEND) GL11.glDisable(GL11.GL_LINE_SMOOTH) } fun glColor(red: Int, green: Int, blue: Int, alpha: Int) { GlStateManager.color(red / 255f, green / 255f, blue / 255f, alpha / 255f) } fun glColor(color: Color) { val red = color.red / 255f val green = color.green / 255f val blue = color.blue / 255f val alpha = color.alpha / 255f GlStateManager.color(red, green, blue, alpha) } fun glColor(hex: Int) { val alpha = (hex shr 24 and 0xFF) / 255f val red = (hex shr 16 and 0xFF) / 255f val green = (hex shr 8 and 0xFF) / 255f val blue = (hex and 0xFF) / 255f GlStateManager.color(red, green, blue, alpha) } fun rectangleBordered(x: Double, y: Double, x1: Double, y1: Double, width: Double, internalColor: Int, borderColor: Int) { rectangle(x + width, y + width, x1 - width, y1 - width, internalColor) GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f) rectangle(x + width, y, x1 - width, y + width, borderColor) GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f) rectangle(x, y, x + width, y1, borderColor) GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f) rectangle(x1 - width, y, x1, y1, borderColor) GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f) rectangle(x + width, y1 - width, x1 - width, y1, borderColor) GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f) } fun rectangle(x: Double, y: Double, x2: Double, y2: Double, color: Int) { GL11.glEnable(GL11.GL_BLEND) GL11.glDisable(GL11.GL_TEXTURE_2D) GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA) GL11.glEnable(GL11.GL_LINE_SMOOTH) glColor(color) GL11.glBegin(GL11.GL_QUADS) GL11.glVertex2d(x2, y) GL11.glVertex2d(x, y) GL11.glVertex2d(x, y2) GL11.glVertex2d(x2, y2) GL11.glEnd() GL11.glEnable(GL11.GL_TEXTURE_2D) GL11.glDisable(GL11.GL_BLEND) GL11.glDisable(GL11.GL_LINE_SMOOTH) } fun autoSkeet(x: Double, y: Double, x1: Double, y1: Double, size: Double) { rectangleBordered(x, y, x1 + size, y1 + size, 0.5, Colors.getColor(90), Colors.getColor(0)) rectangleBordered(x + 1.0, y + 1.0, x1 + size - 1.0, y1 + size - 1.0, 1.0, Colors.getColor(90), Colors.getColor(61)) rectangleBordered(x + 2.5, y + 2.5, x1 + size - 2.5, y1 + size - 2.5, 0.5, Colors.getColor(61), Colors.getColor(0)) } fun enableGL2D() { GL11.glDisable(2929) GL11.glEnable(3042) GL11.glDisable(3553) GL11.glBlendFunc(770, 771) GL11.glDepthMask(true) GL11.glEnable(2848) GL11.glHint(3154, 4354) GL11.glHint(3155, 4354) } fun disableGL2D() { GL11.glEnable(3553) GL11.glDisable(3042) GL11.glEnable(2929) GL11.glDisable(2848) GL11.glHint(3154, 4352) GL11.glHint(3155, 4352) } fun drawRoundedRect(x: Float, y: Float, x1: Float, y1: Float, borderC: Int, insideC: Int) { var x = x var y = y var x1 = x1 var y1 = y1 enableGL2D() GL11.glScalef(0.5f, 0.5f, 0.5f) drawVLine(2.0f.let { x *= it; x }, 2.0f.let { y *= it; y } + 1.0f, 2.0f.let { y1 *= it; y1 } - 2.0f, borderC) drawVLine(2.0f.let { x1 *= it; x1 } - 1.0f, y + 1.0f, y1 - 2.0f, borderC) drawHLine(x + 2.0f, x1 - 3.0f, y, borderC) drawHLine(x + 2.0f, x1 - 3.0f, y1 - 1.0f, borderC) drawHLine(x + 1.0f, x + 1.0f, y + 1.0f, borderC) drawHLine(x1 - 2.0f, x1 - 2.0f, y + 1.0f, borderC) drawHLine(x1 - 2.0f, x1 - 2.0f, y1 - 2.0f, borderC) drawHLine(x + 1.0f, x + 1.0f, y1 - 2.0f, borderC) drawRect(x + 1.0f, y + 1.0f, x1 - 1.0f, y1 - 1.0f, insideC) GL11.glScalef(2.0f, 2.0f, 2.0f) disableGL2D() Gui.drawRect(0, 0, 0, 0, 0) } fun drawHLine(par1: Float, par2: Float, par3: Float, par4: Int) { var par1 = par1 var par2 = par2 if (par2 < par1) { val var5 = par1 par1 = par2 par2 = var5 } RenderUtils.drawRect(par1, par3, par2 + 1.0f, par3 + 1.0f, par4) } fun drawVLine(x: Float, y: Float, x1: Float, y1: Int) { var y = y var x1 = x1 if (x1 < y) { val var5 = y y = x1 x1 = var5 } RenderUtils.drawRect(x, y + 1.0f, x + 1.0f, x1, y1) } }
-
How to construct the liquidbounce problemchange master-SNAPSHOT to d0771f42d3
because SNAPSHOT is crashed
you can use this link -
[Shader] Two BackgroundShader ShareThe first is a bubble shader like Flux
uniform float iTime; uniform vec2 iMouse; uniform vec2 iResolution; void main(void){ vec2 uv = -1.0 + 2.0*gl_FragCoord.xy / iResolution.xy; uv.x *= iResolution.x / iResolution.y; vec2 ms = (iMouse.xy / iResolution.xy); // background vec3 color = vec3(0.9 + 0.1*uv.y); // bubbles for( int i=0; i<40; i++ ) { // bubble seeds float pha = sin(float(i)*546.13+1.0)*0.5 + 0.5; float siz = pow( sin(float(i)*651.74+5.0)*0.5 + 0.5, 4.0 ); float pox = sin(float(i)*321.55+4.1) * iResolution.x / iResolution.y; // buble size, position and color float rad = 0.2 + 0.5*siz; vec2 pos = vec2( pox, -1.0-rad + (2.0+2.0*rad)*mod(pha+0.1*iTime*(0.1+0.1*siz),1.0)); float distToMs = length(pos - ms); pos *= length(pos - (ms * 1.5-0.5)); float dis = length( uv - pos ); vec3 col = mix( vec3(0.1,0.2,0.8), vec3(0.1,0.4,0.8), 0.5+0.5*sin(float(i)*1.2+1.9)); // col+= 8.0*smoothstep( rad*0.95, rad, dis ); // render float f = length(uv-pos)/rad; f = sqrt(clamp(1.0-f*f,0.0,1.0)); color -= col.zyx *(1.0-smoothstep( rad*0.95, rad, dis )) * f; } // vigneting color *= sqrt(1.5-0.5*length(uv)); gl_FragColor = vec4(color,1.0); }
the second is a rain shader
uniform float iTime; uniform vec2 iResolution; float rand(vec2 p){ p+=.2127+p.x+.3713*p.y; vec2 r=4.789*sin(789.123*(p)); return fract(r.x*r.y); } float sn(vec2 p){ vec2 i=floor(p-.5); vec2 f=fract(p-.5); f = f*f*f*(f*(f*6.0-15.0)+10.0); float rt=mix(rand(i),rand(i+vec2(1.,0.)),f.x); float rb=mix(rand(i+vec2(0.,1.)),rand(i+vec2(1.,1.)),f.x); return mix(rt,rb,f.y); } void main() { vec2 uv = gl_FragCoord.xy / iResolution.y; vec2 p=uv.xy*vec2(3.,4.3); float f = .5*sn(p) +.25*sn(2.*p) +.125*sn(4.*p) +.0625*sn(8.*p) +.03125*sn(16.*p)+ .015*sn(32.*p) ; float newT = iTime*0.4 + sn(vec2(iTime*1.))*0.1; p.x-=iTime*0.2; p.y*=1.3; float f2= .5*sn(p) +.25*sn(2.04*p+newT*1.1) -.125*sn(4.03*p-iTime*0.3) +.0625*sn(8.02*p-iTime*0.4) +.03125*sn(16.01*p+iTime*0.5)+ .018*sn(24.02*p); float f3= .5*sn(p) +.25*sn(2.04*p+newT*1.1) -.125*sn(4.03*p-iTime*0.3) +.0625*sn(8.02*p-iTime*0.5) +.03125*sn(16.01*p+iTime*0.6)+ .019*sn(18.02*p); float f4 = f2*smoothstep(0.0,1.,uv.y); vec3 clouds = mix(vec3(-0.4,-0.3,-0.15),vec3(1.4,1.4,1.3),f4*f); float lightning = sn((f3)+vec2(pow(sn(vec2(iTime*4.5)),6.))); lightning *= smoothstep(0.0,1.,uv.y+0.5); lightning = smoothstep(0.76,1.,lightning); lightning=lightning*2.; clouds*=0.8; clouds += lightning +0.2; vec2 newUV = uv; newUV.x-=iTime*0.3; newUV.y+=iTime*3.; float strength = sin(iTime*0.5+sn(newUV))*0.1+0.15; vec3 painting = (clouds)+clamp((strength-0.1),0.,1.); float r=1.-length(max(abs(gl_FragCoord.xy / iResolution.xy*2.-1.)-.5,0.)); painting*=r; gl_FragColor = vec4(painting, 1.); }
-
[JAVA]EnchantEffect@tyffeks send your code to me
-
[Kotlin] ArrayList SkyRainbow@neverside Just Copy all the things in the words