notjavindra2

Create a plugin that is client-sided A client-side mod that allows player trigger Mace's smash attack while surfing

The mod automatically handled the process when player try to make a smash attack while wearing elytra.

How to use:

Wearing elytra and holding Mace in mainhand player in flying with enough fall distances (> 1.5 blocks) manually attack an entity Result -> The mod manages the attack to become a valid smash attack

so basically make so when i do /target playername it will smash thta player everyttime im close to them and dont wait for the mace to charge up just do it

Kodari AI
KodariFeb 21 at 3:57 pm 7,736 (v2)

I’ll create a plugin that automatically triggers mace smash attacks on a targeted player when you’re close to them.

MaceAutoTarget
Automatically performs mace smash attacks on targeted players when in proximity. Players use /target to select a target, and the plugin handles instant smash attacks when wearing elytra, holding a mace, and within range. No charge-up time required - attacks trigger immediately upon proximity detection.

Plugin created! This automatically triggers mace smash attacks on targeted players. Use /target <playername> to set a target, and the plugin will instantly smash them when you’re within range (no charge-up needed).

notjavindra2

a server mod or a player mod?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 440
src/main/java/com/maceautotarget/MaceAutoTarget.java
package com.maceautotarget;

import com.maceautotarget.commands.TargetCommand;
import com.maceautotarget.commands.MainCommand;
import com.maceautotarget.listeners.TargetListener;
import com.maceautotarget.managers.ConfigManager;
import com.maceautotarget.managers.TargetManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MaceAutoTarget extends JavaPlugin {
    
    private ConfigManager configManager;
    private TargetManager targetManager;
    private TargetListener targetListener;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.targetManager = new TargetManager(this);
        this.targetListener = new TargetListener(this);
        
        getCommand("target").setExecutor(new TargetCommand(this));
        getCommand("maceautotarget").setExecutor(new MainCommand(this));
        
        getServer().getPluginManager().registerEvents(targetListener, this);
        
        targetListener.startTask();
        
        getLogger().info("MaceAutoTarget has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (targetListener != null) {
            targetListener.stopTask();
        }
        getLogger().info("MaceAutoTarget has been disabled!");
    }
    
    public void reload() {
        configManager.reload();
        if (targetListener != null) {
            targetListener.stopTask();
            targetListener.startTask();
        }
    }
}