Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Funtimes909 committed Aug 4, 2024
1 parent 7977a46 commit 97e9981
Show file tree
Hide file tree
Showing 14 changed files with 88 additions and 132 deletions.
6 changes: 3 additions & 3 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# (3) This script is generated from the Groovy liveoverflow_utils
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
Expand Down Expand Up @@ -144,15 +144,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down
31 changes: 0 additions & 31 deletions src/main/java/com/example/addon/mixin/ExampleMixin.java

This file was deleted.

66 changes: 0 additions & 66 deletions src/main/java/com/example/addon/modules/ModuleExample.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
package com.example.addon;
package xyz.funtimes909.liveoverflow_utils;

import com.example.addon.commands.CommandExample;
import com.example.addon.hud.HudExample;
import com.example.addon.modules.ModuleExample;
import xyz.funtimes909.liveoverflow_utils.modules.AntiHumanBypass;
import com.mojang.logging.LogUtils;
import meteordevelopment.meteorclient.addons.GithubRepo;
import meteordevelopment.meteorclient.addons.MeteorAddon;
import meteordevelopment.meteorclient.commands.Commands;
import meteordevelopment.meteorclient.systems.hud.Hud;
import meteordevelopment.meteorclient.systems.hud.HudGroup;
import meteordevelopment.meteorclient.systems.modules.Category;
import meteordevelopment.meteorclient.systems.modules.Modules;
import org.slf4j.Logger;

public class AddonTemplate extends MeteorAddon {
public class LiveoverflowUtils extends MeteorAddon {
public static final Logger LOG = LogUtils.getLogger();
public static final Category CATEGORY = new Category("Example");
public static final HudGroup HUD_GROUP = new HudGroup("Example");
Expand All @@ -23,13 +19,7 @@ public void onInitialize() {
LOG.info("Initializing Meteor Addon Template");

// Modules
Modules.get().add(new ModuleExample());

// Commands
Commands.add(new CommandExample());

// HUD
Hud.get().register(HudExample.INFO);
Modules.get().add(new AntiHumanBypass());
}

@Override
Expand All @@ -41,9 +31,4 @@ public void onRegisterCategories() {
public String getPackage() {
return "com.example.addon";
}

@Override
public GithubRepo getRepo() {
return new GithubRepo("MeteorDevelopment", "meteor-addon-template");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.addon.commands;
package xyz.funtimes909.liveoverflow_utils.commands;

import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.addon.hud;
package xyz.funtimes909.liveoverflow_utils.hud;

import com.example.addon.AddonTemplate;
import xyz.funtimes909.liveoverflow_utils.LiveoverflowUtils;
import meteordevelopment.meteorclient.systems.hud.HudElement;
import meteordevelopment.meteorclient.systems.hud.HudElementInfo;
import meteordevelopment.meteorclient.systems.hud.HudRenderer;
Expand All @@ -10,7 +10,7 @@ public class HudExample extends HudElement {
/**
* The {@code name} parameter should be in kebab-case.
*/
public static final HudElementInfo<HudExample> INFO = new HudElementInfo<>(AddonTemplate.HUD_GROUP, "example", "HUD element example.", HudExample::new);
public static final HudElementInfo<HudExample> INFO = new HudElementInfo<>(LiveoverflowUtils.HUD_GROUP, "example", "HUD element example.", HudExample::new);

public HudExample() {
super(INFO);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package xyz.funtimes909.liveoverflow_utils.mixin;

import xyz.funtimes909.liveoverflow_utils.modules.AntiHumanBypass;
import xyz.funtimes909.liveoverflow_utils.util.CoordinateRounder;
import meteordevelopment.meteorclient.systems.modules.Modules;
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(PlayerMoveC2SPacket.class)
public class MovePacketMixin {
@Mutable
@Shadow
@Final
protected double z;

@Mutable
@Shadow
@Final
protected double x;

@Inject(at = @At("TAIL"), method = "<init>")

private void onPlayerMoveC2SPacket(double x, double y, double z, float yaw, float pitch, boolean onGround, boolean changePosition, boolean changeLook, CallbackInfo ci) {
if (!Modules.get().isActive(AntiHumanBypass.class)) {
return;
}

this.x = CoordinateRounder.roundedDown(x);
this.z = CoordinateRounder.roundedDown(z);

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package xyz.funtimes909.liveoverflow_utils.modules;

import xyz.funtimes909.liveoverflow_utils.LiveoverflowUtils;
import meteordevelopment.meteorclient.systems.modules.Module;

public class AntiHumanBypass extends Module {
public AntiHumanBypass() {
super(LiveoverflowUtils.CATEGORY, "Anti Human Bypass", "Bypass anti human plugin");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package xyz.funtimes909.liveoverflow_utils.modules;

import xyz.funtimes909.liveoverflow_utils.LiveoverflowUtils;
import meteordevelopment.meteorclient.systems.modules.Module;

public class WorldguardBypass extends Module {

public WorldguardBypass() {
super(LiveoverflowUtils.CATEGORY, "world-guard-bypass", "Module to bypass the world border at spawn on LiveOverflow's server");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package xyz.funtimes909.liveoverflow_utils.util;

public class CoordinateRounder {

public static double roundedDown(double num) {
double temp = (double) (Math.round(num*100))/100;
return Math.nextAfter(temp, temp + Math.signum(num));
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/main/resources/assets/template/icon.png
Binary file not shown.
14 changes: 7 additions & 7 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"schemaVersion": 1,
"id": "addon-template",
"version": "${version}",
"name": "Addon Template",
"description": "An addon template for Meteor Client addons.",
"version": "0.1.0",
"name": "Anti Human Bypass",
"description": "Meteor Client addon to bypass LiveOverflows AntiHuman plugin",
"authors": [
"seasnail"
"Funtimes909"
],
"contact": {
"repo": "https://github.com/MeteorDevelopment/meteor-addon-template"
},
"icon": "assets/template/icon.png",
"icon": "assets/liveoverflow_utils/icon.png",
"environment": "client",
"entrypoints": {
"meteor": [
"com.example.addon.AddonTemplate"
"xyz.funtimes909.liveoverflow_utils.LiveoverflowUtils"
]
},
"mixins": [
"addon-template.mixins.json"
"liveoverflow_utils.mixins.json"
],
"custom": {
"meteor-client:color": "225,25,25"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"required": true,
"package": "com.example.addon.mixin",
"package": "xyz.funtimes909.liveoverflow_utils.mixin",
"compatibilityLevel": "JAVA_21",
"client": [
"ExampleMixin"
"MovePacketMixin"
],
"injectors": {
"defaultRequire": 1
Expand Down

0 comments on commit 97e9981

Please sign in to comment.