kall_yt48

I need a macro in which if I press left click then 1 click is free usually, but when using that macro, by pressing 1 click I can make 5 clicks, then, I can set multiple keybinds with a single button, like if I click right click then it should place with anchor and glowstick, and the name of the mode should be S1ckKeybinds

Kodari AI
KodariJul 12 at 4:39 pm 3
S1ckKeybinds
A macro plugin that turns a single click into multiple actions. Left-click mode fires 5 clicks per press. Right-click mode places anchor + glowstick simultaneously in a single click. Players toggle modes with commands and customize which keybinds are active. Configurable actions per trigger type with full reload support.

I’ll create S1ckKeybinds — a Minecraft macro plugin that multiplies left-clicks into rapid multi-hits and enables dual-action right-clicks (anchor + glowstick placement).

A Minecraft macro plugin enabling automated keybind actions including left-click multiplication (one physical click registers as five rapid hits), dual-action right-click placement of respawn anchors combined with glowstone deployment simultaneously, configurable modes per-player via toggle command.
A macro plugin that multiplies left-clicks into rapid bursts and enables dual-action right-click keybinds. Left-click mode fires 5 clicks per press, bypassing vanilla click limits. Right-click mode places an anchor block and throws a glowstick simultaneously. Supports full command-based mode switching, toggle on/off, and configurable click speeds. Built for PvP, block minigames, and speed bridging.

The plugin is ready. How it works:

  • Left-click Multi mode (/s1ckkeybinds mode multi) — when toggled on, each left-click triggers 5 total clicks (the original + 4 simulated at 2-tick intervals). The plugin deduplicates to avoid feedback loops.

  • Right-click Dual mode (/s1ckkeybinds mode dual) — right-click places an anchor block at the block you’re facing and throws a glowstick projectile from your eye position.

  • Toggle (/s1ckkeybinds toggle) — enables/disables all macro behavior per-player.

  • Commands: /s1ckkeybinds toggle, /s1ckkeybinds mode normal|multi|dual, /s1ckkeybinds help

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 701
src/main/java/com/s1ckkeybinds/S1ckKeybinds.java
package com.s1ckkeybinds;

import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.HashSet;
import java.util.Set;
import java.util.UUID;

public class S1ckKeybinds extends JavaPlugin {

    private static S1ckKeybinds instance;
    private KeybindManager keybindManager;
    private ClickSimulator clickSimulator;
    private PlayerListener playerListener;
    private MainCommand mainCommand;

    private final Set<UUID> simulating = new HashSet<>();
    private final Set<UUID> activePlayers = new HashSet<>();

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();

        this.keybindManager = new KeybindManager(this);
        this.clickSimulator = new ClickSimulator(this);
        this.playerListener = new PlayerListener(this);
        this.mainCommand = new MainCommand(this);

        getCommand("s1ckkeybinds").setExecutor(mainCommand);
        getServer().getPluginManager().registerEvents(playerListener, this);

        getLogger().info("S1ckKeybinds enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("S1ckKeybinds disabled!");
    }

    public static S1ckKeybinds getInstance() {
        return instance;
    }

    public KeybindManager getKeybindManager() {
        return keybindManager;
    }

    public ClickSimulator getClickSimulator() {
        return clickSimulator;
    }

    public PlayerListener getPlayerListener() {
        return playerListener;
    }

    // --- Simulating flag (prevents event recursion) ---

    public boolean isSimulating(Player player) {
        return simulating.contains(player.getUniqueId());
    }

    public void addSimulating(Player player) {
        simulating.add(player.getUniqueId());
    }

    public void removeSimulating(Player player) {
        simulating.remove(player.getUniqueId());
    }

    // --- Active toggle ---

    public boolean isActive(Player player) {
        return activePlayers.contains(player.getUniqueId());
    }

    public boolean togglePlayer(Player player) {
        UUID uuid = player.getUniqueId();
        if (activePlayers.contains(uuid)) {
            activePlayers.remove(uuid);
            return false;
        } else {
            activePlayers.add(uuid);
            return true;
        }
    }
}