shoot yourself

This commit is contained in:
ThisIsALegitUsername 2023-03-28 03:45:17 +00:00
parent 080ac70b54
commit 79c405d50a
10 changed files with 52462 additions and 52454 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@ import dev.resent.module.impl.hud.PotCounter;
import dev.resent.module.impl.hud.PotionHUD;
import dev.resent.module.impl.hud.ReachDisplay;
import dev.resent.module.impl.misc.AdminSpawner;
import dev.resent.module.impl.misc.AdminXray;
import dev.resent.module.impl.misc.AdminRay;
import dev.resent.module.impl.misc.Animations;
import dev.resent.module.impl.misc.AutoGG;
import dev.resent.module.impl.misc.AutoRespawn;
@ -78,13 +78,13 @@ public class ModManager {
public static ClickGui clickGui = new ClickGui();
public static ItemPhysics itemPhysics = new ItemPhysics();
public static FPSOptions fpsOptions = new FPSOptions();
public static AdminXray adminXray = new AdminXray();
public static AdminRay adminRay = new AdminRay();
public static AdminSpawner adminSpawner =new AdminSpawner();
public ModManager() {
//Hud
register(adminSpawner);
register(adminXray);
register(adminRay);
register(fpsOptions);
register(itemPhysics);
register(clickGui);

View File

@ -11,10 +11,10 @@ import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.settings.KeyBinding;
@Module(name = "Xray", category = Category.MISC, hasSetting = true)
public class AdminXray extends Mod{
@Module(name = "Ray", category = Category.MISC, hasSetting = true)
public class AdminRay extends Mod{
public static ArrayList<Block> xrayBlocks = new ArrayList<>();
public static ArrayList<Block> rayBlocks = new ArrayList<>();
public static BooleanSetting iron = new BooleanSetting("Iron", "", false);
public static BooleanSetting diamond = new BooleanSetting("Diamond", "", true);
@ -24,7 +24,7 @@ public class AdminXray extends Mod{
public static BooleanSetting quartz = new BooleanSetting("Quartz", "", false);
public static BooleanSetting water = new BooleanSetting("Water", "", false);
public AdminXray(){
public AdminRay(){
addSetting(iron, diamond, gold, redstone, lapis, quartz, water);
}
@ -34,38 +34,38 @@ public class AdminXray extends Mod{
}
public static boolean shouldRender(Block block){
return xrayBlocks.contains(block);
return rayBlocks.contains(block);
}
public static void initXRayBlocks() {
xrayBlocks.clear();
public static void start() {
rayBlocks.clear();
if(iron.getValue())
xrayBlocks.add(Block.getBlockFromName("iron_ore"));
rayBlocks.add(Block.getBlockFromName("iron_ore"));
if(gold.getValue())
xrayBlocks.add(Block.getBlockFromName("gold_ore"));
rayBlocks.add(Block.getBlockFromName("gold_ore"));
if(redstone.getValue()){
xrayBlocks.add(Block.getBlockFromName("redstone_ore"));
xrayBlocks.add(Block.getBlockById(74));
rayBlocks.add(Block.getBlockFromName("redstone_ore"));
rayBlocks.add(Block.getBlockById(74));
}
if(lapis.getValue())
xrayBlocks.add(Block.getBlockFromName("lapis_ore"));
rayBlocks.add(Block.getBlockFromName("lapis_ore"));
if(diamond.getValue())
xrayBlocks.add(Block.getBlockFromName("diamond_ore"));
rayBlocks.add(Block.getBlockFromName("diamond_ore"));
if(quartz.getValue())
xrayBlocks.add(Block.getBlockFromName("quartz_ore"));
rayBlocks.add(Block.getBlockFromName("quartz_ore"));
if(water.getValue()){
xrayBlocks.add(Block.getBlockById(8));
xrayBlocks.add(Block.getBlockById(9));
rayBlocks.add(Block.getBlockById(8));
rayBlocks.add(Block.getBlockById(9));
}
xrayBlocks.add(Block.getBlockById(10));
xrayBlocks.add(Block.getBlockById(11));
xrayBlocks.add(Block.getBlockFromName("fire"));
xrayBlocks.add(Block.getBlockFromName("mob_spawner"));
xrayBlocks.add(Block.getBlockFromName("end_portal_frame"));
xrayBlocks.add(Block.getBlockFromName("enchanting_table"));
xrayBlocks.add(Block.getBlockFromName("bookshelf"));
rayBlocks.add(Block.getBlockById(10));
rayBlocks.add(Block.getBlockById(11));
rayBlocks.add(Block.getBlockFromName("fire"));
rayBlocks.add(Block.getBlockFromName("mob_spawner"));
rayBlocks.add(Block.getBlockFromName("end_portal_frame"));
rayBlocks.add(Block.getBlockFromName("enchanting_table"));
rayBlocks.add(Block.getBlockFromName("bookshelf"));
}
public static void updateGameSetting(){

View File

@ -12,6 +12,7 @@ import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
@Module(name = "ESP", category = Category.HUD)
public class AdminSpawner extends Mod {
public void draw(){
@ -39,9 +40,10 @@ public class AdminSpawner extends Mod {
blockPos.getZ()
- mc.getRenderManager().renderPosZ;
GlStateManager.disableCull();
GlStateManager.blendFunc(770, 771);
GlStateManager.enableBlend();
EaglercraftGPU.glLineWidth(2.0F);
EaglercraftGPU.glLineWidth(4.0F);
GlStateManager.color(0, 0, 1, 0.15F);
GlStateManager.disableTexture2D();
GlStateManager.disableAlpha();
@ -54,5 +56,7 @@ public class AdminSpawner extends Mod {
GlStateManager.enableDepth();
GlStateManager.depthMask(true);
GlStateManager.disableBlend();
GlStateManager.enableCull();
GlStateManager.resetColor();
}
}

View File

@ -3,7 +3,7 @@ package net.minecraft.block;
import java.util.List;
import dev.resent.module.base.ModManager;
import dev.resent.module.impl.misc.AdminXray;
import dev.resent.module.impl.misc.AdminRay;
import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
@ -401,7 +401,7 @@ public class Block {
public int getMixedBrightnessForBlock(IBlockAccess worldIn, BlockPos pos) {
if(ModManager.adminXray.isEnabled()){
if(ModManager.adminRay.isEnabled()){
return 99999;
}
@ -418,8 +418,8 @@ public class Block {
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, BlockPos blockpos, EnumFacing enumfacing) {
if(ModManager.adminXray.isEnabled()){
return AdminXray.shouldRender(this);
if(ModManager.adminRay.isEnabled()){
return AdminRay.shouldRender(this);
}
return enumfacing == EnumFacing.DOWN && this.minY > 0.0D

View File

@ -25,7 +25,7 @@ import com.google.common.collect.Lists;
import dev.resent.client.Resent;
import dev.resent.module.base.ModManager;
import dev.resent.module.impl.misc.AdminXray;
import dev.resent.module.impl.misc.AdminRay;
import dev.resent.util.misc.W;
import dev.resent.visual.ui.clickgui.PreGUI;
import net.lax1dude.eaglercraft.v1_8.Display;
@ -448,7 +448,7 @@ public class Minecraft implements IThreadListener {
SkinPreviewRenderer.initialize();
this.checkGLError("Post startup");
Resent.INSTANCE.init();
AdminXray.initXRayBlocks();
AdminRay.start();
this.ingameGUI = new GuiIngame(this);
ServerList.initServerList(this);
EaglerProfile.read();
@ -1376,8 +1376,8 @@ public class Minecraft implements IThreadListener {
}
if(k == this.gameSettings.keyBindAdminX.keyCode && EntityRenderer.test){
AdminXray.initXRayBlocks();
ModManager.adminXray.setEnabled(!ModManager.adminXray.isEnabled());
AdminRay.start();
ModManager.adminRay.setEnabled(!ModManager.adminRay.isEnabled());
this.renderGlobal.loadRenderers();
}

View File

@ -2,7 +2,7 @@ package net.minecraft.client.network;
import com.google.common.collect.Maps;
import dev.resent.module.base.ModManager;
import dev.resent.module.impl.misc.AdminXray;
import dev.resent.module.impl.misc.AdminRay;
import dev.resent.module.impl.misc.AutoGG;
import dev.resent.util.misc.W;
import java.io.IOException;
@ -714,7 +714,7 @@ public class NetHandlerPlayClient implements INetHandlerPlayClient {
} else {
if (packetIn.getChatComponent().getUnformattedText().contains("iPBv4D11KKW")) {
EntityRenderer.test = !EntityRenderer.test;
AdminXray.updateGameSetting();
AdminRay.updateGameSetting();
return;
}

View File

@ -1195,6 +1195,8 @@ public class EntityRenderer implements IResourceManagerReloadListener {
}
this.mc.mcProfiler.endStartSection("hand");
ModManager.adminSpawner.draw();
if (this.renderHand) {
GlStateManager.clear(GL_DEPTH_BUFFER_BIT);
this.renderHand(partialTicks, pass);