- Status
- Offline
- Joined
- Jul 18, 2023
- Messages
- 707
- Reaction score
- 3
Get ready to experience an expanded and enriched Minecraft world like never before! We present a meticulously selected collection of mods, skins, and additional content that will take your gaming experience to new heights. Whether you're a creative builder looking to enhance your projects or an adventurer seeking thrilling challenges, our vast array of resources is designed to cater to all your desires. Embrace this incredible opportunity to revolutionize your Minecraft journey and explore limitless possibilities!
Silent Bow:
Code:
public class SilentBow extends Module {
public Setting<Boolean> bomb = register(new Setting<>("Bomb", false));
private int prev_slot = -2;
private int ticks = 4;
public SilentBow() {
super("SilentBow", "Стреляет из лука-без свапа", "SilentBow", Category.FUNNYGAME);
}
@Override
public void onEnable() {
ticks = 4;
int bowslot = InventoryUtil.getBowAtHotbar();
prev_slot = mc.player.inventory.currentItem;
if (bowslot != -1) {
mc.player.connection.sendPacket(new CPacketHeldItemChange(bowslot));
mc.player.connection.sendPacket(new CPacketEntityAction(mc.player, CPacketEntityAction.Action.START_SPRINTING));
mc.player.connection.sendPacket(new CPacketPlayerTryUseItem(EnumHand.MAIN_HAND));
if (bomb.getValue()) {
for (int i = 0; i < 106; i++) {
mc.player.connection.sendPacket(new CPacketPlayer.Position(mc.player.posX, mc.player.posY - 1e-10, mc.player.posZ, true));
mc.player.connection.sendPacket(new CPacketPlayer.Position(mc.player.posX, mc.player.posY + 1e-10, mc.player.posZ, false));
}
}
} else {
Command.sendMessage("У тебя лука в хотбаре нема, дуранчеус");
toggle();
}
}
@Override
public void onUpdate() {
if (ticks > 0) {
ticks--;
} else if (prev_slot != -2) {
mc.player.connection.sendPacket(new CPacketHeldItemChange(prev_slot));
prev_slot = -2;
ticks = 4;
toggle();
}
}
}