new dev build compatibility
This commit is contained in:
@@ -4,7 +4,6 @@ import cloudburst.rejects.aax.AntiAntiXray;
|
|||||||
import cloudburst.rejects.aax.Etc.Config;
|
import cloudburst.rejects.aax.Etc.Config;
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import minegame159.meteorclient.systems.commands.Command;
|
import minegame159.meteorclient.systems.commands.Command;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
|
import static com.mojang.brigadier.Command.SINGLE_SUCCESS;
|
||||||
@@ -18,7 +17,7 @@ public class AntiAntiXrayCommand extends Command {
|
|||||||
public void build(LiteralArgumentBuilder<CommandSource> builder) {
|
public void build(LiteralArgumentBuilder<CommandSource> builder) {
|
||||||
builder.executes(ctx -> {
|
builder.executes(ctx -> {
|
||||||
AntiAntiXray.scanForFake(Config.rad, Config.delay);
|
AntiAntiXray.scanForFake(Config.rad, Config.delay);
|
||||||
ChatUtils.prefixInfo("AAX", "Refreshing blocks");
|
info("Refreshing blocks");
|
||||||
return SINGLE_SUCCESS;
|
return SINGLE_SUCCESS;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package cloudburst.rejects.commands;
|
|||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import com.mojang.brigadier.exceptions.SimpleCommandExceptionType;
|
import com.mojang.brigadier.exceptions.SimpleCommandExceptionType;
|
||||||
import minegame159.meteorclient.systems.commands.Command;
|
import minegame159.meteorclient.systems.commands.Command;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
|
||||||
import minegame159.meteorclient.utils.player.InvUtils;
|
import minegame159.meteorclient.utils.player.InvUtils;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
@@ -49,7 +48,7 @@ public class BookDupeCommand extends Command {
|
|||||||
@Override
|
@Override
|
||||||
public void build(LiteralArgumentBuilder<CommandSource> builder) {
|
public void build(LiteralArgumentBuilder<CommandSource> builder) {
|
||||||
builder.executes(context -> {
|
builder.executes(context -> {
|
||||||
if (InvUtils.getHand(Items.WRITABLE_BOOK) != Hand.MAIN_HAND) ChatUtils.prefixError("BOOK DUPE", "No book found, you must be holding a writable book!");
|
if (InvUtils.getHand(Items.WRITABLE_BOOK) != Hand.MAIN_HAND) error("No book found, you must be holding a writable book!");
|
||||||
else mc.player.networkHandler.sendPacket(new BookUpdateC2SPacket(DUPE_BOOK, true, mc.player.inventory.selectedSlot));
|
else mc.player.networkHandler.sendPacket(new BookUpdateC2SPacket(DUPE_BOOK, true, mc.player.inventory.selectedSlot));
|
||||||
|
|
||||||
return SINGLE_SUCCESS;
|
return SINGLE_SUCCESS;
|
||||||
|
|||||||
@@ -4,15 +4,12 @@ import com.mojang.brigadier.arguments.StringArgumentType;
|
|||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
|
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
import net.minecraft.command.argument.ItemStackArgument;
|
|
||||||
import net.minecraft.command.argument.ItemStackArgumentType;
|
|
||||||
import net.minecraft.item.*;
|
import net.minecraft.item.*;
|
||||||
import net.minecraft.nbt.*;
|
import net.minecraft.nbt.*;
|
||||||
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
|
import net.minecraft.network.packet.c2s.play.CreativeInventoryActionC2SPacket;
|
||||||
|
|
||||||
import cloudburst.rejects.arguments.EnumStringArgumentType;
|
import cloudburst.rejects.arguments.EnumStringArgumentType;
|
||||||
import minegame159.meteorclient.systems.commands.Command;
|
import minegame159.meteorclient.systems.commands.Command;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
|
||||||
import minegame159.meteorclient.utils.player.SlotUtils;
|
import minegame159.meteorclient.utils.player.SlotUtils;
|
||||||
import net.minecraft.text.LiteralText;
|
import net.minecraft.text.LiteralText;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
@@ -71,7 +68,7 @@ public class GiveCommand extends Command {
|
|||||||
|
|
||||||
builder.then(literal("holo").then(argument("message", StringArgumentType.greedyString()).executes(ctx -> {
|
builder.then(literal("holo").then(argument("message", StringArgumentType.greedyString()).executes(ctx -> {
|
||||||
if (!mc.player.abilities.creativeMode) {
|
if (!mc.player.abilities.creativeMode) {
|
||||||
ChatUtils.error("Not In Creative Mode!");
|
error("Not In Creative Mode!");
|
||||||
return SINGLE_SUCCESS;
|
return SINGLE_SUCCESS;
|
||||||
}
|
}
|
||||||
String message = ctx.getArgument("message", String.class);
|
String message = ctx.getArgument("message", String.class);
|
||||||
@@ -96,7 +93,7 @@ public class GiveCommand extends Command {
|
|||||||
|
|
||||||
builder.then(literal("firework").executes(ctx -> {
|
builder.then(literal("firework").executes(ctx -> {
|
||||||
if (!mc.player.abilities.creativeMode) {
|
if (!mc.player.abilities.creativeMode) {
|
||||||
ChatUtils.error("Not In Creative Mode!");
|
error("Not In Creative Mode!");
|
||||||
return SINGLE_SUCCESS;
|
return SINGLE_SUCCESS;
|
||||||
}
|
}
|
||||||
ItemStack firework = new ItemStack(Items.FIREWORK_ROCKET);
|
ItemStack firework = new ItemStack(Items.FIREWORK_ROCKET);
|
||||||
@@ -128,7 +125,7 @@ public class GiveCommand extends Command {
|
|||||||
|
|
||||||
builder.then(literal("head").then(argument("owner",StringArgumentType.greedyString()).executes(ctx -> {
|
builder.then(literal("head").then(argument("owner",StringArgumentType.greedyString()).executes(ctx -> {
|
||||||
if (!mc.player.abilities.creativeMode) {
|
if (!mc.player.abilities.creativeMode) {
|
||||||
ChatUtils.error("Not In Creative Mode!");
|
error("Not In Creative Mode!");
|
||||||
return SINGLE_SUCCESS;
|
return SINGLE_SUCCESS;
|
||||||
}
|
}
|
||||||
String playerName = ctx.getArgument("owner",String.class);
|
String playerName = ctx.getArgument("owner",String.class);
|
||||||
@@ -143,7 +140,7 @@ public class GiveCommand extends Command {
|
|||||||
builder.then(literal("preset").then(argument("name", new EnumStringArgumentType(PRESETS))
|
builder.then(literal("preset").then(argument("name", new EnumStringArgumentType(PRESETS))
|
||||||
.then(argument("container", new EnumStringArgumentType(CONTAINERS)).executes(context -> {
|
.then(argument("container", new EnumStringArgumentType(CONTAINERS)).executes(context -> {
|
||||||
if (!mc.player.abilities.creativeMode) {
|
if (!mc.player.abilities.creativeMode) {
|
||||||
ChatUtils.error("Not In Creative Mode!");
|
error("Not In Creative Mode!");
|
||||||
return SINGLE_SUCCESS;
|
return SINGLE_SUCCESS;
|
||||||
}
|
}
|
||||||
String name = context.getArgument("name", String.class);
|
String name = context.getArgument("name", String.class);
|
||||||
@@ -160,6 +157,6 @@ public class GiveCommand extends Command {
|
|||||||
mc.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(SlotUtils.indexToId(i), item));
|
mc.player.networkHandler.sendPacket(new CreativeInventoryActionC2SPacket(SlotUtils.indexToId(i), item));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ChatUtils.error("No space in inventory.");
|
error("No space in inventory.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,7 @@ import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
|||||||
import minegame159.meteorclient.systems.commands.Command;
|
import minegame159.meteorclient.systems.commands.Command;
|
||||||
import minegame159.meteorclient.systems.commands.arguments.PlayerArgumentType;
|
import minegame159.meteorclient.systems.commands.arguments.PlayerArgumentType;
|
||||||
import minegame159.meteorclient.utils.network.HttpUtils;
|
import minegame159.meteorclient.utils.network.HttpUtils;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
import net.minecraft.command.argument.GameProfileArgumentType;
|
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
import org.lwjgl.BufferUtils;
|
import org.lwjgl.BufferUtils;
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import minegame159.meteorclient.events.world.TickEvent;
|
|||||||
import minegame159.meteorclient.systems.modules.Categories;
|
import minegame159.meteorclient.systems.modules.Categories;
|
||||||
import minegame159.meteorclient.systems.modules.Module;
|
import minegame159.meteorclient.systems.modules.Module;
|
||||||
import minegame159.meteorclient.utils.entity.EntityUtils;
|
import minegame159.meteorclient.utils.entity.EntityUtils;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.network.packet.s2c.play.PlayerListS2CPacket;
|
import net.minecraft.network.packet.s2c.play.PlayerListS2CPacket;
|
||||||
@@ -63,7 +62,7 @@ public class AntiVanish extends Module {
|
|||||||
try {
|
try {
|
||||||
String name = getPlayerNameFromUUID(lookup);
|
String name = getPlayerNameFromUUID(lookup);
|
||||||
if (name != null) {
|
if (name != null) {
|
||||||
ChatUtils.moduleWarning(this, name + " has gone into vanish.");
|
warning(name + " has gone into vanish.");
|
||||||
}
|
}
|
||||||
} catch (Exception ignore) {}
|
} catch (Exception ignore) {}
|
||||||
lastTick = time;
|
lastTick = time;
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ import minegame159.meteorclient.systems.modules.Categories;
|
|||||||
import minegame159.meteorclient.systems.modules.Module;
|
import minegame159.meteorclient.systems.modules.Module;
|
||||||
import minegame159.meteorclient.utils.Utils;
|
import minegame159.meteorclient.utils.Utils;
|
||||||
import minegame159.meteorclient.utils.player.*;
|
import minegame159.meteorclient.utils.player.*;
|
||||||
|
import minegame159.meteorclient.utils.world.BlockUtils;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.Blocks;
|
import net.minecraft.block.Blocks;
|
||||||
import net.minecraft.client.gui.screen.ingame.Generic3x3ContainerScreen;
|
import net.minecraft.client.gui.screen.ingame.Generic3x3ContainerScreen;
|
||||||
@@ -113,16 +115,14 @@ public class Auto32K extends Module {
|
|||||||
if(sortedIterator.hasNext()) bestBlock = sortedIterator.next();
|
if(sortedIterator.hasNext()) bestBlock = sortedIterator.next();
|
||||||
|
|
||||||
if (bestBlock != null) {
|
if (bestBlock != null) {
|
||||||
mc.player.inventory.selectedSlot = hopperSlot;
|
while (!BlockUtils.place(bestBlock, Hand.MAIN_HAND,hopperSlot,true,100,false)) {
|
||||||
while (!PlayerUtils.placeBlock(bestBlock, Hand.MAIN_HAND)) {
|
|
||||||
if(sortedIterator.hasNext()) {
|
if(sortedIterator.hasNext()) {
|
||||||
bestBlock = sortedIterator.next().up();
|
bestBlock = sortedIterator.next().up();
|
||||||
}else break;
|
}else break;
|
||||||
}
|
}
|
||||||
mc.player.setSneaking(true);
|
mc.player.setSneaking(true);
|
||||||
mc.player.inventory.selectedSlot = shulkerSlot;
|
if (!BlockUtils.place(bestBlock.up(), Hand.MAIN_HAND, shulkerSlot,true,100,false)) {
|
||||||
if (!PlayerUtils.placeBlock(bestBlock.up(), Hand.MAIN_HAND)) {
|
error("Failed to place.");
|
||||||
ChatUtils.moduleError(this,"Failed to place.");
|
|
||||||
this.toggle();
|
this.toggle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -139,10 +139,9 @@ public class Auto32K extends Module {
|
|||||||
return;
|
return;
|
||||||
if (phase == 0) {
|
if (phase == 0) {
|
||||||
bestBlock = findValidBlocksDispenser();
|
bestBlock = findValidBlocksDispenser();
|
||||||
mc.player.inventory.selectedSlot = hopperSlot;
|
|
||||||
if(bestBlock == null) return;
|
if(bestBlock == null) return;
|
||||||
if (!PlayerUtils.placeBlock(bestBlock.add(x, 0, z), Hand.MAIN_HAND)) {
|
if (!BlockUtils.place(bestBlock.add(x, 0, z), Hand.MAIN_HAND, hopperSlot, true, 100, false)) {
|
||||||
ChatUtils.moduleError(this,"Failed to place.");
|
error("Failed to place.");
|
||||||
this.toggle();
|
this.toggle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,10 +7,7 @@ import minegame159.meteorclient.settings.BoolSetting;
|
|||||||
import minegame159.meteorclient.settings.IntSetting;
|
import minegame159.meteorclient.settings.IntSetting;
|
||||||
import minegame159.meteorclient.settings.Setting;
|
import minegame159.meteorclient.settings.Setting;
|
||||||
import minegame159.meteorclient.settings.SettingGroup;
|
import minegame159.meteorclient.settings.SettingGroup;
|
||||||
import minegame159.meteorclient.systems.modules.Categories;
|
|
||||||
import minegame159.meteorclient.systems.modules.Module;
|
import minegame159.meteorclient.systems.modules.Module;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
|
||||||
import minegame159.meteorclient.utils.player.InvUtils;
|
|
||||||
import minegame159.meteorclient.utils.player.PlayerUtils;
|
import minegame159.meteorclient.utils.player.PlayerUtils;
|
||||||
import minegame159.meteorclient.utils.player.RotationUtils;
|
import minegame159.meteorclient.utils.player.RotationUtils;
|
||||||
import minegame159.meteorclient.utils.world.BlockIterator;
|
import minegame159.meteorclient.utils.world.BlockIterator;
|
||||||
@@ -98,13 +95,13 @@ public class AutoExtinguish extends Module {
|
|||||||
private void onTick(TickEvent.Pre event) {
|
private void onTick(TickEvent.Pre event) {
|
||||||
if (mc.world.getDimension().isRespawnAnchorWorking()) {
|
if (mc.world.getDimension().isRespawnAnchorWorking()) {
|
||||||
if (doesWaterBucketWork) {
|
if (doesWaterBucketWork) {
|
||||||
ChatUtils.warning("Water Buckets don't work in this dimension!");
|
warning("Water Buckets don't work in this dimension!");
|
||||||
doesWaterBucketWork = false;
|
doesWaterBucketWork = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!doesWaterBucketWork) {
|
if (!doesWaterBucketWork) {
|
||||||
ChatUtils.warning("Enabled Water Buckets!");
|
warning("Enabled Water Buckets!");
|
||||||
doesWaterBucketWork = true;
|
doesWaterBucketWork = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import minegame159.meteorclient.systems.modules.combat.CrystalAura;
|
|||||||
import minegame159.meteorclient.systems.modules.combat.KillAura;
|
import minegame159.meteorclient.systems.modules.combat.KillAura;
|
||||||
import minegame159.meteorclient.settings.*;
|
import minegame159.meteorclient.settings.*;
|
||||||
import minegame159.meteorclient.utils.Utils;
|
import minegame159.meteorclient.utils.Utils;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
|
||||||
import minegame159.meteorclient.utils.player.Rotations;
|
import minegame159.meteorclient.utils.player.Rotations;
|
||||||
import net.minecraft.entity.effect.StatusEffect;
|
import net.minecraft.entity.effect.StatusEffect;
|
||||||
import net.minecraft.entity.effect.StatusEffectInstance;
|
import net.minecraft.entity.effect.StatusEffectInstance;
|
||||||
@@ -116,7 +115,7 @@ public class AutoPot extends Module {
|
|||||||
if (isNotPotion(mc.player.inventory.getStack(slot))) {
|
if (isNotPotion(mc.player.inventory.getStack(slot))) {
|
||||||
slot = HealingpotionSlot();
|
slot = HealingpotionSlot();
|
||||||
if (slot == -1) {
|
if (slot == -1) {
|
||||||
ChatUtils.moduleInfo(this, "Ran out of Pots while drinking");
|
info("Ran out of Pots while drinking");
|
||||||
stopDrinking();
|
stopDrinking();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -124,7 +123,7 @@ public class AutoPot extends Module {
|
|||||||
}
|
}
|
||||||
drink();
|
drink();
|
||||||
if (ShouldNotDrinkHealth()) {
|
if (ShouldNotDrinkHealth()) {
|
||||||
ChatUtils.moduleInfo(this, "Health Full");
|
info("Health Full");
|
||||||
stopDrinking();
|
stopDrinking();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -134,14 +133,14 @@ public class AutoPot extends Module {
|
|||||||
if (isNotSplashPotion(mc.player.inventory.getStack(slot))) {
|
if (isNotSplashPotion(mc.player.inventory.getStack(slot))) {
|
||||||
slot = HealingSplashpotionSlot();
|
slot = HealingSplashpotionSlot();
|
||||||
if (slot == -1) {
|
if (slot == -1) {
|
||||||
ChatUtils.moduleInfo(this, "Ran out of Pots while splashing");
|
info("Ran out of Pots while splashing");
|
||||||
stopSplashing();
|
stopSplashing();
|
||||||
return;
|
return;
|
||||||
} else changeSlot(slot);
|
} else changeSlot(slot);
|
||||||
}
|
}
|
||||||
splash();
|
splash();
|
||||||
if (ShouldNotDrinkHealth()) {
|
if (ShouldNotDrinkHealth()) {
|
||||||
ChatUtils.moduleInfo(this, "Health Full");
|
info("Health Full");
|
||||||
stopSplashing();
|
stopSplashing();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -169,7 +168,7 @@ public class AutoPot extends Module {
|
|||||||
slot = StrengthpotionSlot();
|
slot = StrengthpotionSlot();
|
||||||
if (slot == -1) {
|
if (slot == -1) {
|
||||||
stopDrinking();
|
stopDrinking();
|
||||||
ChatUtils.moduleInfo(this, "Out of Pots");
|
info("Out of Pots");
|
||||||
return;
|
return;
|
||||||
} else changeSlot(slot);
|
} else changeSlot(slot);
|
||||||
}
|
}
|
||||||
@@ -183,7 +182,7 @@ public class AutoPot extends Module {
|
|||||||
if (isNotSplashPotion(mc.player.inventory.getStack(slot))) {
|
if (isNotSplashPotion(mc.player.inventory.getStack(slot))) {
|
||||||
slot = StrengthSplashpotionSlot();
|
slot = StrengthSplashpotionSlot();
|
||||||
if (slot == -1) {
|
if (slot == -1) {
|
||||||
ChatUtils.moduleInfo(this, "Ran out of Pots while splashing");
|
info("Ran out of Pots while splashing");
|
||||||
stopSplashing();
|
stopSplashing();
|
||||||
return;
|
return;
|
||||||
} else changeSlot(slot);
|
} else changeSlot(slot);
|
||||||
|
|||||||
@@ -4,15 +4,12 @@ import cloudburst.rejects.MeteorRejectsAddon;
|
|||||||
import meteordevelopment.orbit.EventHandler;
|
import meteordevelopment.orbit.EventHandler;
|
||||||
import minegame159.meteorclient.events.render.RenderEvent;
|
import minegame159.meteorclient.events.render.RenderEvent;
|
||||||
import minegame159.meteorclient.events.world.TickEvent;
|
import minegame159.meteorclient.events.world.TickEvent;
|
||||||
import minegame159.meteorclient.systems.modules.Categories;
|
|
||||||
import minegame159.meteorclient.systems.modules.Module;
|
import minegame159.meteorclient.systems.modules.Module;
|
||||||
import minegame159.meteorclient.rendering.Renderer;
|
import minegame159.meteorclient.rendering.Renderer;
|
||||||
import minegame159.meteorclient.rendering.ShapeMode;
|
import minegame159.meteorclient.rendering.ShapeMode;
|
||||||
import minegame159.meteorclient.settings.EnumSetting;
|
|
||||||
import minegame159.meteorclient.settings.IntSetting;
|
import minegame159.meteorclient.settings.IntSetting;
|
||||||
import minegame159.meteorclient.settings.Setting;
|
import minegame159.meteorclient.settings.Setting;
|
||||||
import minegame159.meteorclient.settings.SettingGroup;
|
import minegame159.meteorclient.settings.SettingGroup;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
|
||||||
import minegame159.meteorclient.utils.player.InvUtils;
|
import minegame159.meteorclient.utils.player.InvUtils;
|
||||||
import minegame159.meteorclient.utils.player.Rotations;
|
import minegame159.meteorclient.utils.player.Rotations;
|
||||||
import minegame159.meteorclient.utils.render.color.SettingColor;
|
import minegame159.meteorclient.utils.render.color.SettingColor;
|
||||||
@@ -116,11 +113,11 @@ public class Lavacast extends Module {
|
|||||||
getDistance(new Vec3i(0,0,1));
|
getDistance(new Vec3i(0,0,1));
|
||||||
getDistance(new Vec3i(1,0,-1));
|
getDistance(new Vec3i(1,0,-1));
|
||||||
if (dist<1) {
|
if (dist<1) {
|
||||||
ChatUtils.moduleError(this,"Couldn't locate bottom.");
|
error("Couldn't locate bottom.");
|
||||||
toggle();
|
toggle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ChatUtils.moduleInfo(this,"Distance: (highlight)%d(default).", dist);
|
info("Distance: (highlight)%d(default).", dist);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
@@ -204,7 +201,7 @@ public class Lavacast extends Module {
|
|||||||
private void placeLava() {
|
private void placeLava() {
|
||||||
int slot = InvUtils.findItemInHotbar(Items.LAVA_BUCKET);
|
int slot = InvUtils.findItemInHotbar(Items.LAVA_BUCKET);
|
||||||
if (slot == -1) {
|
if (slot == -1) {
|
||||||
ChatUtils.moduleError(this,"No lava bucket found.");
|
error("No lava bucket found.");
|
||||||
toggle();
|
toggle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -217,7 +214,7 @@ public class Lavacast extends Module {
|
|||||||
private void placeWater() {
|
private void placeWater() {
|
||||||
int slot = InvUtils.findItemInHotbar(Items.WATER_BUCKET);
|
int slot = InvUtils.findItemInHotbar(Items.WATER_BUCKET);
|
||||||
if (slot == -1) {
|
if (slot == -1) {
|
||||||
ChatUtils.moduleError(this,"No water bucket found.");
|
error("No water bucket found.");
|
||||||
toggle();
|
toggle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -230,7 +227,7 @@ public class Lavacast extends Module {
|
|||||||
private void pickupLiquid() {
|
private void pickupLiquid() {
|
||||||
int slot = InvUtils.findItemInHotbar(Items.BUCKET);
|
int slot = InvUtils.findItemInHotbar(Items.BUCKET);
|
||||||
if (slot == -1) {
|
if (slot == -1) {
|
||||||
ChatUtils.moduleError(this,"No bucket found.");
|
error("No bucket found.");
|
||||||
toggle();
|
toggle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import minegame159.meteorclient.settings.SoundEventListSetting;
|
|||||||
import minegame159.meteorclient.systems.modules.Categories;
|
import minegame159.meteorclient.systems.modules.Categories;
|
||||||
import minegame159.meteorclient.systems.modules.Module;
|
import minegame159.meteorclient.systems.modules.Module;
|
||||||
import minegame159.meteorclient.utils.player.ChatUtils;
|
import minegame159.meteorclient.utils.player.ChatUtils;
|
||||||
|
|
||||||
import net.minecraft.client.sound.SoundInstance;
|
import net.minecraft.client.sound.SoundInstance;
|
||||||
import net.minecraft.client.sound.WeightedSoundSet;
|
import net.minecraft.client.sound.WeightedSoundSet;
|
||||||
import net.minecraft.sound.SoundEvent;
|
import net.minecraft.sound.SoundEvent;
|
||||||
@@ -51,6 +52,6 @@ public class SoundLocator extends Module {
|
|||||||
Vec3d pos = new Vec3d(sound.getX(), sound.getY(), sound.getZ());
|
Vec3d pos = new Vec3d(sound.getX(), sound.getY(), sound.getZ());
|
||||||
text.append(ChatUtils.formatCoords(pos));
|
text.append(ChatUtils.formatCoords(pos));
|
||||||
text.append(String.format("%s.", Formatting.RESET));
|
text.append(String.format("%s.", Formatting.RESET));
|
||||||
ChatUtils.moduleInfo(this,text);
|
info(text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import java.util.HashMap;
|
|||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
import cloudburst.rejects.modules.InteractionMenu;
|
import cloudburst.rejects.modules.InteractionMenu;
|
||||||
import minegame159.meteorclient.systems.commands.commands.PeekCommand;
|
|
||||||
import minegame159.meteorclient.systems.modules.Modules;
|
import minegame159.meteorclient.systems.modules.Modules;
|
||||||
|
import minegame159.meteorclient.utils.render.PeekScreen;
|
||||||
|
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.gui.screen.ChatScreen;
|
import net.minecraft.client.gui.screen.ChatScreen;
|
||||||
@@ -18,12 +18,10 @@ import net.minecraft.entity.mob.EndermanEntity;
|
|||||||
import net.minecraft.entity.passive.*;
|
import net.minecraft.entity.passive.*;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.entity.vehicle.StorageMinecartEntity;
|
import net.minecraft.entity.vehicle.StorageMinecartEntity;
|
||||||
import net.minecraft.inventory.SimpleInventory;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.Items;
|
import net.minecraft.item.Items;
|
||||||
import net.minecraft.network.packet.c2s.play.PlayerInputC2SPacket;
|
import net.minecraft.network.packet.c2s.play.PlayerInputC2SPacket;
|
||||||
import net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket;
|
import net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket;
|
||||||
import net.minecraft.screen.ShulkerBoxScreenHandler;
|
|
||||||
import org.lwjgl.glfw.GLFW;
|
import org.lwjgl.glfw.GLFW;
|
||||||
|
|
||||||
import com.mojang.blaze3d.platform.GlStateManager;
|
import com.mojang.blaze3d.platform.GlStateManager;
|
||||||
@@ -81,7 +79,9 @@ public class InteractionScreen extends Screen {
|
|||||||
else {
|
else {
|
||||||
functions.put("Open Inventory", (Entity e) -> {
|
functions.put("Open Inventory", (Entity e) -> {
|
||||||
closeScreen();
|
closeScreen();
|
||||||
client.openScreen(new PeekCommand.PeekShulkerBoxScreen(new ShulkerBoxScreenHandler(0, client.player.inventory, getSimpleInventory(e)), client.player.inventory, entity.getName()));
|
ItemStack container = new ItemStack(Items.CHEST);
|
||||||
|
container.setCustomName(e.getName());
|
||||||
|
client.openScreen(new PeekScreen(container, getInventory(e)));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ public class InteractionScreen extends Screen {
|
|||||||
functions.put("Cancel", (Entity e) -> {closeScreen();});
|
functions.put("Cancel", (Entity e) -> {closeScreen();});
|
||||||
}
|
}
|
||||||
|
|
||||||
private SimpleInventory getSimpleInventory(Entity e) {
|
private ItemStack[] getInventory(Entity e) {
|
||||||
ItemStack[] stack = new ItemStack[27];
|
ItemStack[] stack = new ItemStack[27];
|
||||||
final int[] index = {0};
|
final int[] index = {0};
|
||||||
if (e instanceof EndermanEntity) {
|
if (e instanceof EndermanEntity) {
|
||||||
@@ -161,7 +161,7 @@ public class InteractionScreen extends Screen {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
for (int i = index[0]; i < 27; i++) stack[i] = Items.AIR.getDefaultStack();
|
for (int i = index[0]; i < 27; i++) stack[i] = Items.AIR.getDefaultStack();
|
||||||
return new SimpleInventory(stack);
|
return stack;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void init() {
|
public void init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user