Disable functions if you aren't playing Dungeonfy ATTEMPT 2
This commit is contained in:
@@ -2,23 +2,17 @@ package chickenmanfy.scify
|
|||||||
|
|
||||||
import chickenmanfy.scify.modules.* // woo fancy import all modules
|
import chickenmanfy.scify.modules.* // woo fancy import all modules
|
||||||
import net.fabricmc.api.ClientModInitializer
|
import net.fabricmc.api.ClientModInitializer
|
||||||
import net.minecraft.client.MinecraftClient
|
|
||||||
|
|
||||||
|
|
||||||
object SciFyClient : ClientModInitializer {
|
object SciFyClient : ClientModInitializer {
|
||||||
val debugUser = "Chickenmanfy"
|
val debugUser = "Chickenmanfy"
|
||||||
override fun onInitializeClient() {
|
override fun onInitializeClient() {
|
||||||
|
|
||||||
|
// Run the Modules
|
||||||
Hotkey().hotkeys()
|
Hotkey().hotkeys()
|
||||||
// Run the modules
|
AutoWelcome().autoWelcome()
|
||||||
if (MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "dungeonfy.minehut.gg" ||
|
FishingNotif().fishingNotif()
|
||||||
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "51.222.121.148:25599" ||
|
Bars().bars()
|
||||||
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com" || // if you join minehut.com and type /join dungeonfy
|
//LivelyMode().livelyMode()
|
||||||
MinecraftClient.getInstance().player?.name?.string == debugUser) // Test override
|
|
||||||
{
|
|
||||||
AutoWelcome().autoWelcome()
|
|
||||||
FishingNotif().fishingNotif()
|
|
||||||
Bars().bars()
|
|
||||||
//LivelyMode().livelyMode()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
package chickenmanfy.scify.modules
|
package chickenmanfy.scify.modules
|
||||||
|
|
||||||
|
import chickenmanfy.scify.SciFyClient.debugUser
|
||||||
|
import net.minecraft.client.MinecraftClient
|
||||||
|
|
||||||
var autoWelcomeToggle: Boolean = false
|
var autoWelcomeToggle: Boolean = false
|
||||||
class AutoWelcome {
|
class AutoWelcome {
|
||||||
fun toggleAutoWelcome() {
|
fun toggleAutoWelcome() {
|
||||||
@@ -7,8 +10,13 @@ class AutoWelcome {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun autoWelcome() {
|
fun autoWelcome() {
|
||||||
if (autoWelcomeToggle) {
|
if (MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "dungeonfy.minehut.gg" ||
|
||||||
return
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "51.222.121.148:25599" ||
|
||||||
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com" || // if you join minehut.com and type /join dungeonfy
|
||||||
|
MinecraftClient.getInstance().player?.name?.string == debugUser) {
|
||||||
|
if (autoWelcomeToggle) {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
package chickenmanfy.scify.modules
|
package chickenmanfy.scify.modules
|
||||||
|
|
||||||
|
import chickenmanfy.scify.SciFyClient.debugUser
|
||||||
import com.mojang.blaze3d.systems.RenderSystem
|
import com.mojang.blaze3d.systems.RenderSystem
|
||||||
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback
|
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback
|
||||||
|
import net.minecraft.client.MinecraftClient
|
||||||
import net.minecraft.client.gui.DrawContext
|
import net.minecraft.client.gui.DrawContext
|
||||||
import net.minecraft.client.render.*
|
import net.minecraft.client.render.*
|
||||||
import net.minecraft.util.Identifier
|
import net.minecraft.util.Identifier
|
||||||
@@ -13,23 +15,28 @@ class Bars {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun bars() {
|
fun bars() {
|
||||||
HudRenderCallback.EVENT.register(HudRenderCallback { drawContext: DrawContext?, tickDelta: Float ->
|
if (MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "dungeonfy.minehut.gg" ||
|
||||||
val tessellator: Tessellator = Tessellator.getInstance()
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "51.222.121.148:25599" ||
|
||||||
val buffer: BufferBuilder = tessellator.buffer
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com" || // if you join minehut.com and type /join dungeonfy
|
||||||
val positionMatrix = drawContext?.matrices?.peek()?.positionMatrix
|
MinecraftClient.getInstance().player?.name?.string == debugUser) {
|
||||||
if (barsToggle) {
|
HudRenderCallback.EVENT.register(HudRenderCallback { drawContext: DrawContext?, tickDelta: Float ->
|
||||||
buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_COLOR_TEXTURE)
|
val tessellator: Tessellator = Tessellator.getInstance()
|
||||||
buffer.vertex(positionMatrix, 20F, 20F, 0F).color(1f, 1f, 1f, 1f).texture(0f, 0f).next()
|
val buffer: BufferBuilder = tessellator.buffer
|
||||||
buffer.vertex(positionMatrix, 20F, 60F, 0F).color(1f, 1f, 1f, 1f).texture(0f, 1f).next()
|
val positionMatrix = drawContext?.matrices?.peek()?.positionMatrix
|
||||||
buffer.vertex(positionMatrix, 60F, 60F, 0F).color(1f, 1f, 1f, 1f).texture(1f, 1f).next()
|
if (barsToggle) {
|
||||||
buffer.vertex(positionMatrix, 60F, 20F, 0F).color(1f, 1f, 1f, 1f).texture(1f, 0f).next()
|
buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_COLOR_TEXTURE)
|
||||||
|
buffer.vertex(positionMatrix, 20F, 20F, 0F).color(1f, 1f, 1f, 1f).texture(0f, 0f).next()
|
||||||
|
buffer.vertex(positionMatrix, 20F, 60F, 0F).color(1f, 1f, 1f, 1f).texture(0f, 1f).next()
|
||||||
|
buffer.vertex(positionMatrix, 60F, 60F, 0F).color(1f, 1f, 1f, 1f).texture(1f, 1f).next()
|
||||||
|
buffer.vertex(positionMatrix, 60F, 20F, 0F).color(1f, 1f, 1f, 1f).texture(1f, 0f).next()
|
||||||
|
|
||||||
RenderSystem.setShader { GameRenderer.getPositionColorTexProgram() }
|
RenderSystem.setShader { GameRenderer.getPositionColorTexProgram() }
|
||||||
RenderSystem.setShaderTexture(0, Identifier("scify", "scify.png"))
|
RenderSystem.setShaderTexture(0, Identifier("scify", "scify.png"))
|
||||||
RenderSystem.setShaderColor(1f, 1f, 1f, 1f)
|
RenderSystem.setShaderColor(1f, 1f, 1f, 1f)
|
||||||
|
|
||||||
tessellator.draw()
|
tessellator.draw()
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
package chickenmanfy.scify.modules
|
package chickenmanfy.scify.modules
|
||||||
|
|
||||||
|
import chickenmanfy.scify.SciFyClient.debugUser
|
||||||
|
import net.minecraft.client.MinecraftClient
|
||||||
|
|
||||||
var fishingToggle: Boolean = false
|
var fishingToggle: Boolean = false
|
||||||
class FishingNotif {
|
class FishingNotif {
|
||||||
// Fishing Notification Toggle
|
// Fishing Notification Toggle
|
||||||
@@ -12,8 +15,13 @@ class FishingNotif {
|
|||||||
// toggleFishingNotif()
|
// toggleFishingNotif()
|
||||||
|
|
||||||
fun fishingNotif() {
|
fun fishingNotif() {
|
||||||
if (fishingToggle) {
|
if (MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "dungeonfy.minehut.gg" ||
|
||||||
return
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "51.222.121.148:25599" ||
|
||||||
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com" || // if you join minehut.com and type /join dungeonfy
|
||||||
|
MinecraftClient.getInstance().player?.name?.string == debugUser) {
|
||||||
|
if (fishingToggle) {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
package chickenmanfy.scify.modules
|
package chickenmanfy.scify.modules
|
||||||
|
|
||||||
|
import chickenmanfy.scify.SciFyClient.debugUser
|
||||||
|
import net.minecraft.client.MinecraftClient
|
||||||
|
|
||||||
var livelyModeToggle: Boolean = false
|
var livelyModeToggle: Boolean = false
|
||||||
class LivelyMode {
|
class LivelyMode {
|
||||||
fun toggleLivelyMode() {
|
fun toggleLivelyMode() {
|
||||||
@@ -7,8 +10,13 @@ class LivelyMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun livelyMode() {
|
fun livelyMode() {
|
||||||
if (livelyModeToggle) {
|
if (MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "dungeonfy.minehut.gg" ||
|
||||||
return
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "51.222.121.148:25599" ||
|
||||||
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com" || // if you join minehut.com and type /join dungeonfy
|
||||||
|
MinecraftClient.getInstance().player?.name?.string == debugUser) {
|
||||||
|
if (livelyModeToggle) {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user